(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 ) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 9.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.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_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_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.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.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 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_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.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_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) ------------------------------------------------------- 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_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) ----------------------------------------------------------------- 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.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 4ms (Views: 3.6ms | 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.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) ------------------------------------------------------------------------------- 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"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 1]] Rendered text template (0.0ms) Completed 200 OK in 17ms (Views: 0.3ms | ActiveRecord: 0.2ms) ----------------------------------------------------------------------------------------- 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"=>"4"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 4]] Rendered text 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.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Rendered text 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.1ms) Completed 200 OK in 3ms (Views: 2.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) ---------------------------------------------------- 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_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 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.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_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.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_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 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_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.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) -------------------------------------------------------------------- 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_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_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_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.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 ------------------------- 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_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.7ms | 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.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.1ms) 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.4ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"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) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.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"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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 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.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.107695"], ["updated_at", "2018-06-21 04:51:38.107695"]]  (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.1ms) INSERT INTO "test_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-21 04:51:38.145673"], ["updated_at", "2018-06-21 04:51:38.145673"]]  (0.0ms) commit transaction  (0.0ms) 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.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-21 04:51:38.149372"], ["updated_at", "2018-06-21 04:51:38.149372"]]  (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.4ms) 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 SQL (0.0ms) DELETE 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-21 04:51:38.164968"], ["updated_at", "2018-06-21 04:51:38.164968"]]  (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-21 04:51:38.166171"], ["updated_at", "2018-06-21 04:51:38.166171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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.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 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-21 04:51:38.200392"], ["updated_at", "2018-06-21 04:51:38.200392"]]  (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.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 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 "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 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_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.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 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.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", 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.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 04:51:38.236179"], ["updated_at", "2018-06-21 04:51:38.236179"]]  (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  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin 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", "2018-06-21 04:51:38.244581"], ["updated_at", "2018-06-21 04:51:38.244581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER 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_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.248165"], ["updated_at", "2018-06-21 04:51:38.248165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.248921"], ["updated_at", "2018-06-21 04:51:38.248921"]]  (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" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "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-21 04:51:38.254612"], ["updated_at", "2018-06-21 04:51:38.254612"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.255858"], ["updated_at", "2018-06-21 04:51:38.255858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 04:51:38.260709"], ["updated_at", "2018-06-21 04:51:38.260709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.261564"], ["updated_at", "2018-06-21 04:51:38.261564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.262293"], ["updated_at", "2018-06-21 04:51:38.262293"]]  (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-21 04:51:38.264533"], ["updated_at", "2018-06-21 04:51:38.264533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:38.266406"], ["updated_at", "2018-06-21 04:51:38.266406"]]  (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", "2018-06-21 04:51:38.269562"], ["updated_at", "2018-06-21 04:51:38.269562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_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 "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.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", "2018-06-21 04:51:38.282839"], ["updated_at", "2018-06-21 04:51:38.282839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.283675"], ["updated_at", "2018-06-21 04:51:38.283675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.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')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.295596"], ["updated_at", "2018-06-21 04:51:38.295596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.296423"], ["updated_at", "2018-06-21 04:51:38.296423"]]  (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-21 04:51:38.298127"], ["updated_at", "2018-06-21 04:51:38.298127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:38.300112"], ["updated_at", "2018-06-21 04:51:38.300112"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.303110"], ["updated_at", "2018-06-21 04:51:38.303110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.303860"], ["updated_at", "2018-06-21 04:51:38.303860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) 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.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-21 04:51:38.312534"], ["updated_at", "2018-06-21 04:51:38.312534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.313348"], ["updated_at", "2018-06-21 04:51:38.313348"]]  (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-21 04:51:38.315653"], ["updated_at", "2018-06-21 04:51:38.315653"]]  (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-21 04:51:38.316433"], ["updated_at", "2018-06-21 04:51:38.316433"]]  (0.0ms) commit 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 "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-21 04:51:38.322674"], ["updated_at", "2018-06-21 04:51:38.322674"]]  (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  (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_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.332588"], ["updated_at", "2018-06-21 04:51:38.332588"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.333395"], ["updated_at", "2018-06-21 04:51:38.333395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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-21 04:51:38.335843"], ["updated_at", "2018-06-21 04:51:38.335843"]]  (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", "test_1_1"], ["created_at", "2018-06-21 04:51:38.340539"], ["updated_at", "2018-06-21 04:51:38.340539"]]  (0.0ms) commit 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-21 04:51:38.341643"], ["updated_at", "2018-06-21 04:51:38.341643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:51:38.343732"], ["updated_at", "2018-06-21 04:51:38.343732"]]  (0.0ms) commit 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-21 04:51:38.344661"], ["updated_at", "2018-06-21 04:51:38.344661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "2018-06-21 04:51:38.351418"], ["updated_at", "2018-06-21 04:51:38.351418"]]  (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-21 04:51:38.352323"], ["updated_at", "2018-06-21 04:51:38.352323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.353062"], ["updated_at", "2018-06-21 04:51:38.353062"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:51:38.355003"], ["updated_at", "2018-06-21 04:51:38.355003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.359545"], ["updated_at", "2018-06-21 04:51:38.359545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.360315"], ["updated_at", "2018-06-21 04:51:38.360315"]]  (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-21 04:51:38.362033"], ["updated_at", "2018-06-21 04:51:38.362033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.362767"], ["updated_at", "2018-06-21 04:51:38.362767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:38.364540"], ["updated_at", "2018-06-21 04:51:38.364540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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-21 04:51:38.368057"], ["updated_at", "2018-06-21 04:51:38.368057"]]  (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-21 04:51:38.370543"], ["updated_at", "2018-06-21 04:51:38.370543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.371659"], ["updated_at", "2018-06-21 04:51:38.371659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.372438"], ["updated_at", "2018-06-21 04:51:38.372438"]]  (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-21 04:51:38.374881"], ["updated_at", "2018-06-21 04:51:38.374881"]]  (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-21 04:51:38.379765"], ["updated_at", "2018-06-21 04:51:38.379765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 04:51:38.381832"], ["updated_at", "2018-06-21 04:51:38.381832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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-21 04:51:38.385669"], ["updated_at", "2018-06-21 04:51:38.385669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.386762"], ["updated_at", "2018-06-21 04:51:38.386762"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (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-21 04:51:38.392064"], ["updated_at", "2018-06-21 04:51:38.392064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:38.394045"], ["updated_at", "2018-06-21 04:51:38.394045"]]  (0.0ms) commit 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-21 04:51:38.397700"], ["updated_at", "2018-06-21 04:51:38.397700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:38.399560"], ["updated_at", "2018-06-21 04:51:38.399560"]]  (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-21 04:51:38.403224"], ["updated_at", "2018-06-21 04:51:38.403224"]]  (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", "2018-06-21 04:51:38.408603"], ["updated_at", "2018-06-21 04:51:38.408603"]]  (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-21 04:51:38.409756"], ["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-21 04:51:38.410645"], ["updated_at", "2018-06-21 04:51:38.410645"]]  (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-21 04:51:38.411609"], ["updated_at", "2018-06-21 04:51:38.411609"]]  (0.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-21 04:51:38.415099"], ["updated_at", "2018-06-21 04:51:38.415099"]]  (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" 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-21 04:51:38.423277"], ["updated_at", "2018-06-21 04:51:38.423277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.424167"], ["updated_at", "2018-06-21 04:51:38.424167"]]  (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-21 04:51:38.426008"], ["updated_at", "2018-06-21 04:51:38.426008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.426860"], ["updated_at", "2018-06-21 04:51:38.426860"]]  (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-21 04:51:38.429104"], ["updated_at", "2018-06-21 04:51:38.429104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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-21 04:51:38.432259"], ["updated_at", "2018-06-21 04:51:38.432259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.433021"], ["updated_at", "2018-06-21 04:51:38.433021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (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" SQL (0.0ms) DELETE FROM "test_models" SQL (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.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-21 04:51:38.442561"], ["updated_at", "2018-06-21 04:51:38.442561"]]  (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", "2018-06-21 04:51:38.446666"], ["updated_at", "2018-06-21 04:51:38.446666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_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", "2018-06-21 04:51:38.451461"], ["updated_at", "2018-06-21 04:51:38.451461"]]  (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", "first test"], ["created_at", "2018-06-21 04:51:38.456546"], ["updated_at", "2018-06-21 04:51:38.456546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:51:38.458942"], ["updated_at", "2018-06-21 04:51:38.458942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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_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-21 04:51:38.468563"], ["updated_at", "2018-06-21 04:51:38.468563"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:51:38.473826"], ["updated_at", "2018-06-21 04:51:38.473826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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" 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", "2018-06-21 04:51:38.489576"], ["updated_at", "2018-06-21 04:51:38.489576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:38.490346"], ["updated_at", "2018-06-21 04:51:38.490346"]]  (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", "2018-06-21 04:51:38.492499"], ["updated_at", "2018-06-21 04:51:38.492499"]]  (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-21 04:51:38.493264"], ["updated_at", "2018-06-21 04:51:38.493264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:51:38.494896"], ["updated_at", "2018-06-21 04:51:38.494896"]]  (0.0ms) commit 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-21 04:51:38.495666"], ["updated_at", "2018-06-21 04:51:38.495666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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" -------------------------------------- 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) ------------------------------------------------------- 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) ----------------------------------------------------- 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.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.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 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.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------------------------------------------------- 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.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) -------------------------------------------------------------- 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 4ms (Views: 3.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.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.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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:42.937482"], ["updated_at", "2018-06-21 04:51:42.937482"]]  (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-21 04:51:42.942703"], ["updated_at", "2018-06-21 04:51:42.942703"]]  (0.0ms) commit 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 "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-21 04:51:42.958188"], ["updated_at", "2018-06-21 04:51:42.958188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 04:51:42.990204"], ["updated_at", "2018-06-21 04:51:42.990204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:42.991146"], ["updated_at", "2018-06-21 04:51:42.991146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (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 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", "2018-06-21 04:51:42.999881"], ["updated_at", "2018-06-21 04:51:42.999881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_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", "2018-06-21 04:51:43.006161"], ["updated_at", "2018-06-21 04:51:43.006161"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.007539"], ["updated_at", "2018-06-21 04:51:43.007539"]]  (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", "2018-06-21 04:51:43.013734"], ["updated_at", "2018-06-21 04:51:43.013734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.014584"], ["updated_at", "2018-06-21 04:51:43.014584"]]  (0.0ms) commit transaction TestModel 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-21 04:51:43.016364"], ["updated_at", "2018-06-21 04:51:43.016364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.017160"], ["updated_at", "2018-06-21 04:51:43.017160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.017930"], ["updated_at", "2018-06-21 04:51:43.017930"]]  (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-21 04:51:43.020543"], ["updated_at", "2018-06-21 04:51:43.020543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.021324"], ["updated_at", "2018-06-21 04:51:43.021324"]]  (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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.023753"], ["updated_at", "2018-06-21 04:51:43.023753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.024596"], ["updated_at", "2018-06-21 04:51:43.024596"]]  (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.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-21 04:51:43.035198"], ["updated_at", "2018-06-21 04:51:43.035198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-21 04:51:43.041241"], ["updated_at", "2018-06-21 04:51:43.041241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:43.044005"], ["updated_at", "2018-06-21 04:51:43.044005"]]  (0.0ms) commit 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-21 04:51:43.048883"], ["updated_at", "2018-06-21 04:51:43.048883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.049911"], ["updated_at", "2018-06-21 04:51:43.049911"]]  (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.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("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", 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 "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.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" ("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 "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-21 04:51:43.094871"], ["updated_at", "2018-06-21 04:51:43.094871"]]  (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-21 04:51:43.096949"], ["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-21 04:51:43.098632"], ["updated_at", "2018-06-21 04:51:43.098632"]]  (0.0ms) commit transaction  (0.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-21 04:51:43.099712"], ["updated_at", "2018-06-21 04:51:43.099712"]]  (0.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 "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-21 04:51:43.105494"], ["updated_at", "2018-06-21 04:51:43.105494"]]  (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.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.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", "2018-06-21 04:51:43.117496"], ["updated_at", "2018-06-21 04:51:43.117496"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:43.119973"], ["updated_at", "2018-06-21 04:51:43.119973"]]  (0.0ms) commit 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", "2018-06-21 04:51:43.124426"], ["updated_at", "2018-06-21 04:51:43.124426"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.125355"], ["updated_at", "2018-06-21 04:51:43.125355"]]  (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-21 04:51:43.127334"], ["updated_at", "2018-06-21 04:51:43.127334"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.128488"], ["updated_at", "2018-06-21 04:51:43.128488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:43.130838"], ["updated_at", "2018-06-21 04:51:43.130838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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-21 04:51:43.134684"], ["updated_at", "2018-06-21 04:51:43.134684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.135638"], ["updated_at", "2018-06-21 04:51:43.135638"]]  (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-21 04:51:43.138501"], ["updated_at", "2018-06-21 04:51:43.138501"]]  (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-21 04:51:43.144451"], ["updated_at", "2018-06-21 04:51:43.144451"]]  (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-21 04:51:43.146717"], ["updated_at", "2018-06-21 04:51:43.146717"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.150042"], ["updated_at", "2018-06-21 04:51:43.150042"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.150898"], ["updated_at", "2018-06-21 04:51:43.150898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.151697"], ["updated_at", "2018-06-21 04:51:43.151697"]]  (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", "2018-06-21 04:51:43.154713"], ["updated_at", "2018-06-21 04:51:43.154713"]]  (0.0ms) commit transaction  (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" ("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.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.162226"], ["updated_at", "2018-06-21 04:51:43.162226"]]  (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.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.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 04:51:43.169862"], ["updated_at", "2018-06-21 04:51:43.169862"]]  (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-21 04:51:43.171267"], ["updated_at", "2018-06-21 04:51:43.171267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.172446"], ["updated_at", "2018-06-21 04:51:43.172446"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:51:43.175142"], ["updated_at", "2018-06-21 04:51:43.175142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.176121"], ["updated_at", "2018-06-21 04:51:43.176121"]]  (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-21 04:51:43.178630"], ["updated_at", "2018-06-21 04:51:43.178630"]]  (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", "test_1_1"], ["created_at", "2018-06-21 04:51:43.183054"], ["updated_at", "2018-06-21 04:51:43.183054"]]  (0.0ms) commit 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-21 04:51:43.183981"], ["updated_at", "2018-06-21 04:51:43.183981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:51:43.185983"], ["updated_at", "2018-06-21 04:51:43.185983"]]  (0.0ms) commit 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-21 04:51:43.186930"], ["updated_at", "2018-06-21 04:51:43.186930"]]  (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_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_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-21 04:51:43.193061"], ["updated_at", "2018-06-21 04:51:43.193061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.193975"], ["updated_at", "2018-06-21 04:51:43.193975"]]  (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", "2018-06-21 04:51:43.196970"], ["updated_at", "2018-06-21 04:51:43.196970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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", "2018-06-21 04:51:43.199435"], ["updated_at", "2018-06-21 04:51:43.199435"]]  (0.0ms) commit transaction  (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.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_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.210117"], ["updated_at", "2018-06-21 04:51:43.210117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.211161"], ["updated_at", "2018-06-21 04:51:43.211161"]]  (0.0ms) commit transaction  (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-21 04:51:43.213524"], ["updated_at", "2018-06-21 04:51:43.213524"]]  (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" 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-21 04:51:43.217286"], ["updated_at", "2018-06-21 04:51:43.217286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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" 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-21 04:51:43.228560"], ["updated_at", "2018-06-21 04:51:43.228560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.229592"], ["updated_at", "2018-06-21 04:51:43.229592"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_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-21 04:51:43.232639"], ["updated_at", "2018-06-21 04:51:43.232639"]]  (0.0ms) commit 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-21 04:51:43.233626"], ["updated_at", "2018-06-21 04:51:43.233626"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:51:43.235673"], ["updated_at", "2018-06-21 04:51:43.235673"]]  (0.0ms) commit 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-21 04:51:43.236637"], ["updated_at", "2018-06-21 04:51:43.236637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "2018-06-21 04:51:43.243610"], ["updated_at", "2018-06-21 04:51:43.243610"]]  (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_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-21 04:51:43.247075"], ["updated_at", "2018-06-21 04:51:43.247075"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:51:43.252739"], ["updated_at", "2018-06-21 04:51:43.252739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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", 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-21 04:51:43.266753"], ["updated_at", "2018-06-21 04:51:43.266753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:43.269061"], ["updated_at", "2018-06-21 04:51:43.269061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 04:51:43.271472"], ["updated_at", "2018-06-21 04:51:43.271472"]]  (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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.275095"], ["updated_at", "2018-06-21 04:51:43.275095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:43.277464"], ["updated_at", "2018-06-21 04:51:43.277464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* 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", "2018-06-21 04:51:43.284232"], ["updated_at", "2018-06-21 04:51:43.284232"]]  (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-21 04:51:43.289550"], ["updated_at", "2018-06-21 04:51:43.289550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.290814"], ["updated_at", "2018-06-21 04:51:43.290814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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" ----------------------------------------------------------------- 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_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.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.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"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) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.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"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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 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.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_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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- 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_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_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 ------------------------- 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) ---------------------------------------------------------------------- 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 3ms (Views: 2.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 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.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_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.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)  (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]] 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", "2018-06-21 04:51:43.407957"], ["updated_at", "2018-06-21 04:51:43.407957"]]  (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-21 04:51:43.409169"], ["updated_at", "2018-06-21 04:51:43.409169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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_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 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 "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 "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.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 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  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:43.449559"], ["updated_at", "2018-06-21 04:51:43.449559"]]  (0.0ms) commit 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 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_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]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 04:51:43.461476"], ["updated_at", "2018-06-21 04:51:43.461476"]]  (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-21 04:51:43.463639"], ["updated_at", "2018-06-21 04:51:43.463639"]]  (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.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-21 04:51:43.468872"], ["updated_at", "2018-06-21 04:51:43.468872"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:51:43.471679"], ["updated_at", "2018-06-21 04:51:43.471679"]]  (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 ------------------------------------------------ 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) ------------------------------------------------------------------------------- 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"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 1]] Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.3ms | 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.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.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 4]] 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.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.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Rendered text 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: 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) ------------------------------------------------------------------------------------ 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 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) ------------------------------------------------------------ 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) ------------------------------------------ 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.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- 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.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.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.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_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.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: 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) ---------------------------------------------------- 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.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.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 ) ---------------------------------------------- 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 5ms (Views: 5.0ms | 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) --------------------------------------------------- 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 6ms (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.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_object_load_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_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.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) ------------------------------------------------------- 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 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.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_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_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_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) ------------------------------------------------------------ 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.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_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 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_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 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.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) ----------------------------------------------------------------------------------------------- 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.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) ------------------------------------------------------------------------------- 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"=>"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 13ms (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.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) ----------------------------------------------------------------------------------------- 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"=>"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) -------------------------------------------------------------------------------- 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) ------------------------------------------------------------ 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) -------------------------------------------------------------- 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.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.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) ---------------------------------------------------- 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.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) 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-21 04:51:48.497601"], ["updated_at", "2018-06-21 04:51:48.497601"]]  (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-21 04:51:48.498801"], ["updated_at", "2018-06-21 04:51:48.498801"]]  (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_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.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_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.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  (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.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" 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.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.6ms) 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.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", 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" 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", 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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.610697"], ["updated_at", "2018-06-21 04:51:48.610697"]]  (0.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-21 04:51:48.619319"], ["updated_at", "2018-06-21 04:51:48.619319"]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:51:48.622210"], ["updated_at", "2018-06-21 04:51:48.622210"]]  (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", "2018-06-21 04:51:48.627292"], ["updated_at", "2018-06-21 04:51:48.627292"]]  (0.0ms) commit 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 "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", 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 ? [["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.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.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]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 04:51:48.644760"], ["updated_at", "2018-06-21 04:51:48.644760"]]  (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-21 04:51:48.648950"], ["updated_at", "2018-06-21 04:51:48.648950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.651461"], ["updated_at", "2018-06-21 04:51:48.651461"]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:51:48.661578"], ["updated_at", "2018-06-21 04:51:48.661578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.662740"], ["updated_at", "2018-06-21 04:51:48.662740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (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)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("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.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-21 04:51:48.675074"], ["updated_at", "2018-06-21 04:51:48.675074"]]  (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-21 04:51:48.678030"], ["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-21 04:51:48.679413"], ["updated_at", "2018-06-21 04:51:48.679413"]]  (0.0ms) commit transaction  (0.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-21 04:51:48.680425"], ["updated_at", "2018-06-21 04:51:48.680425"]]  (0.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-21 04:51:48.684914"], ["updated_at", "2018-06-21 04:51:48.684914"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.685900"], ["updated_at", "2018-06-21 04:51:48.685900"]]  (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.2ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-06-21 04:51:48.692379"], ["updated_at", "2018-06-21 04:51:48.692379"]]  (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", "2018-06-21 04:51:48.697894"], ["updated_at", "2018-06-21 04:51:48.697894"]]  (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", "2018-06-21 04:51:48.702830"], ["updated_at", "2018-06-21 04:51:48.702830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.703729"], ["updated_at", "2018-06-21 04:51:48.703729"]]  (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-21 04:51:48.706053"], ["updated_at", "2018-06-21 04:51:48.706053"]]  (0.0ms) commit transaction  (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-21 04:51:48.708263"], ["updated_at", "2018-06-21 04:51:48.708263"]]  (0.0ms) commit transaction  (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", "2018-06-21 04:51:48.710490"], ["updated_at", "2018-06-21 04:51:48.710490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* 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-21 04:51:48.714206"], ["updated_at", "2018-06-21 04:51:48.714206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.715091"], ["updated_at", "2018-06-21 04:51:48.715091"]]  (0.0ms) commit transaction  (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"  (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-21 04:51:48.726893"], ["updated_at", "2018-06-21 04:51:48.726893"]]  (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", "2018-06-21 04:51:48.732193"], ["updated_at", "2018-06-21 04:51:48.732193"]]  (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-21 04:51:48.735684"], ["updated_at", "2018-06-21 04:51:48.735684"]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:51:48.743933"], ["updated_at", "2018-06-21 04:51:48.743933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.745107"], ["updated_at", "2018-06-21 04:51:48.745107"]]  (0.0ms) commit transaction TestModel 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-21 04:51:48.747374"], ["updated_at", "2018-06-21 04:51:48.747374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.748257"], ["updated_at", "2018-06-21 04:51:48.748257"]]  (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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.754412"], ["updated_at", "2018-06-21 04:51:48.754412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.755398"], ["updated_at", "2018-06-21 04:51:48.755398"]]  (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-21 04:51:48.758198"], ["updated_at", "2018-06-21 04:51:48.758198"]]  (0.0ms) commit 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-21 04:51:48.759137"], ["updated_at", "2018-06-21 04:51:48.759137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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-21 04:51:48.761339"], ["updated_at", "2018-06-21 04:51:48.761339"]]  (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-21 04:51:48.762631"], ["updated_at", "2018-06-21 04:51:48.762631"]]  (0.0ms) 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-21 04:51:48.766979"], ["updated_at", "2018-06-21 04:51:48.766979"]]  (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-21 04:51:48.767947"], ["updated_at", "2018-06-21 04:51:48.767947"]]  (0.0ms) commit 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_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-21 04:51:48.776167"], ["updated_at", "2018-06-21 04:51:48.776167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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", "pickle"], ["created_at", "2018-06-21 04:51:48.783031"], ["updated_at", "2018-06-21 04:51:48.783031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:48.785570"], ["updated_at", "2018-06-21 04:51:48.785570"]]  (0.0ms) commit 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-21 04:51:48.790388"], ["updated_at", "2018-06-21 04:51:48.790388"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.791543"], ["updated_at", "2018-06-21 04:51:48.791543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.794097"], ["updated_at", "2018-06-21 04:51:48.794097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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.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-21 04:51:48.798174"], ["updated_at", "2018-06-21 04:51:48.798174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.799325"], ["updated_at", "2018-06-21 04:51:48.799325"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) 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-21 04:51:48.802571"], ["updated_at", "2018-06-21 04:51:48.802571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.803700"], ["updated_at", "2018-06-21 04:51:48.803700"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 04:51:48.808216"], ["updated_at", "2018-06-21 04:51:48.808216"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.809778"], ["updated_at", "2018-06-21 04:51:48.809778"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.810905"], ["updated_at", "2018-06-21 04:51:48.810905"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."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-21 04:51:48.814809"], ["updated_at", "2018-06-21 04:51:48.814809"]]  (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_attr_throughs" ("test_attr_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-21 04:51:48.821648"], ["updated_at", "2018-06-21 04:51:48.821648"]]  (0.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.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", "2018-06-21 04:51:48.829442"], ["updated_at", "2018-06-21 04:51:48.829442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:51:48.832233"], ["updated_at", "2018-06-21 04:51:48.832233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.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.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-21 04:51:48.860326"], ["updated_at", "2018-06-21 04:51:48.860326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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" ("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.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-21 04:51:48.870381"], ["updated_at", "2018-06-21 04:51:48.870381"]]  (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"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.887190"], ["updated_at", "2018-06-21 04:51:48.887190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_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-21 04:51:48.893235"], ["updated_at", "2018-06-21 04:51:48.893235"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.903190"], ["updated_at", "2018-06-21 04:51:48.903190"]]  (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 "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.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.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-21 04:51:48.917896"], ["updated_at", "2018-06-21 04:51:48.917896"]]  (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-21 04:51:48.918974"], ["updated_at", "2018-06-21 04:51:48.918974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.919870"], ["updated_at", "2018-06-21 04:51:48.919870"]]  (0.0ms) commit transaction TestModel Load (0.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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.922416"], ["updated_at", "2018-06-21 04:51:48.922416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.923595"], ["updated_at", "2018-06-21 04:51:48.923595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.926360"], ["updated_at", "2018-06-21 04:51:48.926360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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-21 04:51:48.930412"], ["updated_at", "2018-06-21 04:51:48.930412"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.931324"], ["updated_at", "2018-06-21 04:51:48.931324"]]  (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-21 04:51:48.933340"], ["updated_at", "2018-06-21 04:51:48.933340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.934194"], ["updated_at", "2018-06-21 04:51:48.934194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.935045"], ["updated_at", "2018-06-21 04:51:48.935045"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) 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", "2018-06-21 04:51:48.940474"], ["updated_at", "2018-06-21 04:51:48.940474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.941937"], ["updated_at", "2018-06-21 04:51:48.941937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "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", "2018-06-21 04:51:48.951826"], ["updated_at", "2018-06-21 04:51:48.951826"]]  (0.0ms) commit 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-21 04:51:48.952752"], ["updated_at", "2018-06-21 04:51:48.952752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:51:48.954418"], ["updated_at", "2018-06-21 04:51:48.954418"]]  (0.0ms) commit 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-21 04:51:48.955269"], ["updated_at", "2018-06-21 04:51:48.955269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_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-21 04:51:48.964686"], ["updated_at", "2018-06-21 04:51:48.964686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:51:48.967131"], ["updated_at", "2018-06-21 04:51:48.967131"]]  (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-21 04:51:48.970338"], ["updated_at", "2018-06-21 04:51:48.970338"]]  (0.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-21 04:51:48.977148"], ["updated_at", "2018-06-21 04:51:48.977148"]]  (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-21 04:51:48.982785"], ["updated_at", "2018-06-21 04:51:48.982785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:51:48.983628"], ["updated_at", "2018-06-21 04:51:48.983628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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" ----------------------------------------------------------------- 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 --------------------------------------- ------------------------------------------------------- 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.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)  (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_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} 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 NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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: {"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_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) ---------------------------------------------------- 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.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.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: 2.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_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.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.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.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.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.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) ----------------------------------------------------------------- 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) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------- 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.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.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.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_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.4ms | 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 1 [["id", 2]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 2]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 11ms (Views: 0.3ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------- 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 1 [["id", 3]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 3]] 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"=>"5"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] Rendered text 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.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) ----------------------------------------------- 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 3ms (Views: 2.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_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) ------------------------- 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_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) -------------------------------------- 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 6ms (Views: 0.4ms | 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_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | 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_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_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.2ms | 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.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.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 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.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.131502"], ["updated_at", "2018-06-21 04:53:42.131502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.133213"], ["updated_at", "2018-06-21 04:53:42.133213"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 04:53:42.139109"], ["updated_at", "2018-06-21 04:53:42.139109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.140494"], ["updated_at", "2018-06-21 04:53:42.140494"]]  (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-21 04:53:42.144908"], ["updated_at", "2018-06-21 04:53:42.144908"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.146694"], ["updated_at", "2018-06-21 04:53:42.146694"]]  (0.0ms) commit transaction TestModel 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-21 04:53:42.149880"], ["updated_at", "2018-06-21 04:53:42.149880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.150975"], ["updated_at", "2018-06-21 04:53:42.150975"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 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", "2018-06-21 04:53:42.167162"], ["updated_at", "2018-06-21 04:53:42.167162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.168264"], ["updated_at", "2018-06-21 04:53:42.168264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.169387"], ["updated_at", "2018-06-21 04:53:42.169387"]]  (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-21 04:53:42.172371"], ["updated_at", "2018-06-21 04:53:42.172371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.173477"], ["updated_at", "2018-06-21 04:53:42.173477"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (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.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" = ? 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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.198856"], ["updated_at", "2018-06-21 04:53:42.198856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.199986"], ["updated_at", "2018-06-21 04:53:42.199986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_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 "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-21 04:53:42.211215"], ["updated_at", "2018-06-21 04:53:42.211215"]]  (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.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", "2018-06-21 04:53:42.229586"], ["updated_at", "2018-06-21 04:53:42.229586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:42.231938"], ["updated_at", "2018-06-21 04:53:42.231938"]]  (0.0ms) commit 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.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-21 04:53:42.242474"], ["updated_at", "2018-06-21 04:53:42.242474"]]  (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-21 04:53:42.247760"], ["updated_at", "2018-06-21 04:53:42.247760"]]  (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-21 04:53:42.253224"], ["updated_at", "2018-06-21 04:53:42.253224"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.254230"], ["updated_at", "2018-06-21 04:53:42.254230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.255145"], ["updated_at", "2018-06-21 04:53:42.255145"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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", "2018-06-21 04:53:42.257915"], ["updated_at", "2018-06-21 04:53:42.257915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.265753"], ["updated_at", "2018-06-21 04:53:42.265753"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.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 TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_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", "test_1_1"], ["created_at", "2018-06-21 04:53:42.278225"], ["updated_at", "2018-06-21 04:53:42.278225"]]  (0.0ms) commit 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-21 04:53:42.279347"], ["updated_at", "2018-06-21 04:53:42.279347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:53:42.281575"], ["updated_at", "2018-06-21 04:53:42.281575"]]  (0.0ms) commit 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-21 04:53:42.282568"], ["updated_at", "2018-06-21 04:53:42.282568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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-21 04:53:42.286307"], ["updated_at", "2018-06-21 04:53:42.286307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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" 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-21 04:53:42.293761"], ["updated_at", "2018-06-21 04:53:42.293761"]]  (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-21 04:53:42.295192"], ["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", "2018-06-21 04:53:42.296733"], ["updated_at", "2018-06-21 04:53:42.296733"]]  (0.0ms) commit transaction  (0.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-21 04:53:42.297621"], ["updated_at", "2018-06-21 04:53:42.297621"]]  (0.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-21 04:53:42.301455"], ["updated_at", "2018-06-21 04:53:42.301455"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.302386"], ["updated_at", "2018-06-21 04:53:42.302386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("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-21 04:53:42.309009"], ["updated_at", "2018-06-21 04:53:42.309009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.309886"], ["updated_at", "2018-06-21 04:53:42.309886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_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-21 04:53:42.315241"], ["updated_at", "2018-06-21 04:53:42.315241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.316126"], ["updated_at", "2018-06-21 04:53:42.316126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:42.318320"], ["updated_at", "2018-06-21 04:53:42.318320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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-21 04:53:42.322120"], ["updated_at", "2018-06-21 04:53:42.322120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_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-21 04:53:42.326816"], ["updated_at", "2018-06-21 04:53:42.326816"]]  (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-21 04:53:42.329103"], ["updated_at", "2018-06-21 04:53:42.329103"]]  (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.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-21 04:53:42.333602"], ["updated_at", "2018-06-21 04:53:42.333602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.334447"], ["updated_at", "2018-06-21 04:53:42.334447"]]  (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", "2018-06-21 04:53:42.336238"], ["updated_at", "2018-06-21 04:53:42.336238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.337017"], ["updated_at", "2018-06-21 04:53:42.337017"]]  (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-21 04:53:42.338878"], ["updated_at", "2018-06-21 04:53:42.338878"]]  (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-21 04:53:42.339703"], ["updated_at", "2018-06-21 04:53:42.339703"]]  (0.0ms) commit 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" = 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", "2018-06-21 04:53:42.345986"], ["updated_at", "2018-06-21 04:53:42.345986"]]  (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_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", "2018-06-21 04:53:42.352699"], ["updated_at", "2018-06-21 04:53:42.352699"]]  (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.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-21 04:53:42.360376"], ["updated_at", "2018-06-21 04:53:42.360376"]]  (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-21 04:53:42.362654"], ["updated_at", "2018-06-21 04:53:42.362654"]]  (0.0ms) commit 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-21 04:53:42.367334"], ["updated_at", "2018-06-21 04:53:42.367334"]]  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.368507"], ["updated_at", "2018-06-21 04:53:42.368507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:42.370621"], ["updated_at", "2018-06-21 04:53:42.370621"]]  (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.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", "bla"], ["created_at", "2018-06-21 04:53:42.374128"], ["updated_at", "2018-06-21 04:53:42.374128"]]  (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-21 04:53:42.375019"], ["updated_at", "2018-06-21 04:53:42.375019"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.375861"], ["updated_at", "2018-06-21 04:53:42.375861"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:53:42.377830"], ["updated_at", "2018-06-21 04:53:42.377830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.378800"], ["updated_at", "2018-06-21 04:53:42.378800"]]  (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-21 04:53:42.381363"], ["updated_at", "2018-06-21 04:53:42.381363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER 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-21 04:53:42.385150"], ["updated_at", "2018-06-21 04:53:42.385150"]]  (0.0ms) commit transaction  (0.0ms) 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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.390425"], ["updated_at", "2018-06-21 04:53:42.390425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:42.392889"], ["updated_at", "2018-06-21 04:53:42.392889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 04:53:42.395446"], ["updated_at", "2018-06-21 04:53:42.395446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 04:53:42.401791"], ["updated_at", "2018-06-21 04:53:42.401791"]]  (0.0ms) commit 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-21 04:53:42.402775"], ["updated_at", "2018-06-21 04:53:42.402775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:53:42.404680"], ["updated_at", "2018-06-21 04:53:42.404680"]]  (0.0ms) commit 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-21 04:53:42.405936"], ["updated_at", "2018-06-21 04:53:42.405936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "2018-06-21 04:53:42.414233"], ["updated_at", "2018-06-21 04:53:42.414233"]]  (0.0ms) commit transaction  (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-21 04:53:42.416676"], ["updated_at", "2018-06-21 04:53:42.416676"]]  (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" ("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_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-21 04:53:42.426525"], ["updated_at", "2018-06-21 04:53:42.426525"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:53:42.431808"], ["updated_at", "2018-06-21 04:53:42.431808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:42.434268"], ["updated_at", "2018-06-21 04:53:42.434268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 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-21 04:53:42.438580"], ["updated_at", "2018-06-21 04:53:42.438580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:42.441978"], ["updated_at", "2018-06-21 04:53:42.441978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" 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.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 "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", 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-21 04:53:42.469141"], ["updated_at", "2018-06-21 04:53:42.469141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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" ------------------------------------------------------------ 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) ------------------------------------------------------------------------------------ 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.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.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) ------------------------------------------------ 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: 1.9ms | 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 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.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.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)  (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", "2018-06-21 04:53:42.528989"], ["updated_at", "2018-06-21 04:53:42.528989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 04:53:42.541367"], ["updated_at", "2018-06-21 04:53:42.541367"]]  (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", 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 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" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback 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.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:42.556554"], ["updated_at", "2018-06-21 04:53:42.556554"]]  (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.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", "2018-06-21 04:53:42.562462"], ["updated_at", "2018-06-21 04:53:42.562462"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:53:42.565265"], ["updated_at", "2018-06-21 04:53:42.565265"]]  (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", "2018-06-21 04:53:42.570684"], ["updated_at", "2018-06-21 04:53:42.570684"]]  (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-21 04:53:42.571527"], ["updated_at", "2018-06-21 04:53:42.571527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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.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" ("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 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_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 --------------------------------------------------- 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.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) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_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.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.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)  (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 ) --------------------------------------------------------------------------------------------------- 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 1 [["id", 1]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 3.9ms | 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.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 2], ["id", 3]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.2ms | 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"=>"4"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 4]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"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) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.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"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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 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 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 4ms (Views: 2.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_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.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) --------------------------------------------------------------------------------------------- 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) -------------------------------------------------------------- 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: 2.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_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.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.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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.530292"], ["updated_at", "2018-06-21 04:53:46.530292"]]  (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", "2018-06-21 04:53:46.564268"], ["updated_at", "2018-06-21 04:53:46.564268"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:53:46.567502"], ["updated_at", "2018-06-21 04:53:46.567502"]]  (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.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-21 04:53:46.573214"], ["updated_at", "2018-06-21 04:53:46.573214"]]  (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", "2018-06-21 04:53:46.576478"], ["updated_at", "2018-06-21 04:53:46.576478"]]  (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-21 04:53:46.577420"], ["updated_at", "2018-06-21 04:53:46.577420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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.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", 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_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" 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.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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.618958"], ["updated_at", "2018-06-21 04:53:46.618958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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.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 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.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", 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 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" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit 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 1ms (Views: 0.5ms | 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_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.9ms | 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.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_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.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.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.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.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) ------------------------------------------------------- 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.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.679754"], ["updated_at", "2018-06-21 04:53:46.679754"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.681499"], ["updated_at", "2018-06-21 04:53:46.681499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("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" 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-21 04:53:46.704058"], ["updated_at", "2018-06-21 04:53:46.704058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 04:53:46.706562"], ["updated_at", "2018-06-21 04:53:46.706562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.710650"], ["updated_at", "2018-06-21 04:53:46.710650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.711834"], ["updated_at", "2018-06-21 04:53:46.711834"]]  (0.0ms) commit transaction TestModel 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-21 04:53:46.715001"], ["updated_at", "2018-06-21 04:53:46.715001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_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", "2018-06-21 04:53:46.721450"], ["updated_at", "2018-06-21 04:53:46.721450"]]  (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.1ms) DELETE FROM "test_attr_throughs" 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", "2018-06-21 04:53:46.729719"], ["updated_at", "2018-06-21 04:53:46.729719"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:53:46.732713"], ["updated_at", "2018-06-21 04:53:46.732713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 04:53:46.742827"], ["updated_at", "2018-06-21 04:53:46.742827"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.744055"], ["updated_at", "2018-06-21 04:53:46.744055"]]  (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 "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.746735"], ["updated_at", "2018-06-21 04:53:46.746735"]]  (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-21 04:53:46.749115"], ["updated_at", "2018-06-21 04:53:46.749115"]]  (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-21 04:53:46.750191"], ["updated_at", "2018-06-21 04:53:46.750191"]]  (0.0ms) commit 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", "2018-06-21 04:53:46.754033"], ["updated_at", "2018-06-21 04:53:46.754033"]]  (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 "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-21 04:53:46.762609"], ["updated_at", "2018-06-21 04:53:46.762609"]]  (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.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", "2018-06-21 04:53:46.782538"], ["updated_at", "2018-06-21 04:53:46.782538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) 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" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.788645"], ["updated_at", "2018-06-21 04:53:46.788645"]]  (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_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-21 04:53:46.796097"], ["updated_at", "2018-06-21 04:53:46.796097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.797079"], ["updated_at", "2018-06-21 04:53:46.797079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_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", "2018-06-21 04:53:46.806747"], ["updated_at", "2018-06-21 04:53:46.806747"]]  (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-21 04:53:46.807736"], ["updated_at", "2018-06-21 04:53:46.807736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.808539"], ["updated_at", "2018-06-21 04:53:46.808539"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:53:46.810492"], ["updated_at", "2018-06-21 04:53:46.810492"]]  (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 "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", "2018-06-21 04:53:46.826098"], ["updated_at", "2018-06-21 04:53:46.826098"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.827445"], ["updated_at", "2018-06-21 04:53:46.827445"]]  (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.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_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-21 04:53:46.833547"], ["updated_at", "2018-06-21 04:53:46.833547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.834470"], ["updated_at", "2018-06-21 04:53:46.834470"]]  (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-21 04:53:46.836958"], ["updated_at", "2018-06-21 04:53:46.836958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 04:53:46.842150"], ["updated_at", "2018-06-21 04:53:46.842150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.843034"], ["updated_at", "2018-06-21 04:53:46.843034"]]  (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-21 04:53:46.845401"], ["updated_at", "2018-06-21 04:53:46.845401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.846254"], ["updated_at", "2018-06-21 04:53:46.846254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:46.848127"], ["updated_at", "2018-06-21 04:53:46.848127"]]  (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.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-21 04:53:46.851388"], ["updated_at", "2018-06-21 04:53:46.851388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.852198"], ["updated_at", "2018-06-21 04:53:46.852198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.852988"], ["updated_at", "2018-06-21 04:53:46.852988"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* 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-21 04:53:46.856513"], ["updated_at", "2018-06-21 04:53:46.856513"]]  (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-21 04:53:46.857720"], ["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-21 04:53:46.858636"], ["updated_at", "2018-06-21 04:53:46.858636"]]  (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-21 04:53:46.859454"], ["updated_at", "2018-06-21 04:53:46.859454"]]  (0.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", "2018-06-21 04:53:46.862981"], ["updated_at", "2018-06-21 04:53:46.862981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.863874"], ["updated_at", "2018-06-21 04:53:46.863874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.864601"], ["updated_at", "2018-06-21 04:53:46.864601"]]  (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-21 04:53:46.866791"], ["updated_at", "2018-06-21 04:53:46.866791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 04:53:46.870368"], ["updated_at", "2018-06-21 04:53:46.870368"]]  (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-21 04:53:46.874902"], ["updated_at", "2018-06-21 04:53:46.874902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.875929"], ["updated_at", "2018-06-21 04:53:46.875929"]]  (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-21 04:53:46.878560"], ["updated_at", "2018-06-21 04:53:46.878560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:46.880620"], ["updated_at", "2018-06-21 04:53:46.880620"]]  (0.0ms) commit 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", "2018-06-21 04:53:46.883842"], ["updated_at", "2018-06-21 04:53:46.883842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.884618"], ["updated_at", "2018-06-21 04:53:46.884618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:46.886568"], ["updated_at", "2018-06-21 04:53:46.886568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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", "2018-06-21 04:53:46.890276"], ["updated_at", "2018-06-21 04:53:46.890276"]]  (0.0ms) commit 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-21 04:53:46.891225"], ["updated_at", "2018-06-21 04:53:46.891225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:53:46.893165"], ["updated_at", "2018-06-21 04:53:46.893165"]]  (0.0ms) commit 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-21 04:53:46.894241"], ["updated_at", "2018-06-21 04:53:46.894241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.901808"], ["updated_at", "2018-06-21 04:53:46.901808"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.902686"], ["updated_at", "2018-06-21 04:53:46.902686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["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.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.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-21 04:53:46.916128"], ["updated_at", "2018-06-21 04:53:46.916128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.917025"], ["updated_at", "2018-06-21 04:53:46.917025"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_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", "2018-06-21 04:53:46.924327"], ["updated_at", "2018-06-21 04:53:46.924327"]]  (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", "2018-06-21 04:53:46.928392"], ["updated_at", "2018-06-21 04:53:46.928392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.929191"], ["updated_at", "2018-06-21 04:53:46.929191"]]  (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-21 04:53:46.931018"], ["updated_at", "2018-06-21 04:53:46.931018"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:46.933348"], ["updated_at", "2018-06-21 04:53:46.933348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "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", "2018-06-21 04:53:46.936892"], ["updated_at", "2018-06-21 04:53:46.936892"]]  (0.0ms) commit 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-21 04:53:46.937911"], ["updated_at", "2018-06-21 04:53:46.937911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:53:46.939752"], ["updated_at", "2018-06-21 04:53:46.939752"]]  (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-21 04:53:46.941006"], ["updated_at", "2018-06-21 04:53:46.941006"]]  (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.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-21 04:53:46.946280"], ["updated_at", "2018-06-21 04:53:46.946280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:46.948618"], ["updated_at", "2018-06-21 04:53:46.948618"]]  (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 SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" 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-21 04:53:46.952702"], ["updated_at", "2018-06-21 04:53:46.952702"]]  (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-21 04:53:46.957041"], ["updated_at", "2018-06-21 04:53:46.957041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:46.959161"], ["updated_at", "2018-06-21 04:53:46.959161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 04:53:46.961096"], ["updated_at", "2018-06-21 04:53:46.961096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.969685"], ["updated_at", "2018-06-21 04:53:46.969685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:46.970594"], ["updated_at", "2018-06-21 04:53:46.970594"]]  (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_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" -------------------------------------- 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) ----------------------------- HelperTest: test_has_any_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_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 ----------------------- 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.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 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 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) ----------------------------------------------------------------------------------- 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.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.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.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) ------------------------------------------------------------ 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.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_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_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.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) ------------------------------------------------------ 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_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_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_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 --------------------------------------- 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) --------------------------------------------------------------- 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.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 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.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------------------------------------- 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.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) ------------------------------------------------------------------------------------- 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 (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.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.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER 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.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) ------------------------------------------------------------------------------------ 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) --------------------------------------------------------------------------------- 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_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 7ms (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 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.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.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)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.167650"], ["updated_at", "2018-06-21 04:53:51.167650"]]  (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-21 04:53:51.202482"], ["updated_at", "2018-06-21 04:53:51.202482"]]  (0.0ms) commit transaction  (0.0ms) 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.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-21 04:53:51.221082"], ["updated_at", "2018-06-21 04:53:51.221082"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.222231"], ["updated_at", "2018-06-21 04:53:51.222231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.238007"], ["updated_at", "2018-06-21 04:53:51.238007"]]  (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", "2018-06-21 04:53:51.244703"], ["updated_at", "2018-06-21 04:53:51.244703"]]  (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-21 04:53:51.245845"], ["updated_at", "2018-06-21 04:53:51.245845"]]  (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-21 04:53:51.248173"], ["updated_at", "2018-06-21 04:53:51.248173"]]  (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-21 04:53:51.249369"], ["updated_at", "2018-06-21 04:53:51.249369"]]  (0.0ms) 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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.254651"], ["updated_at", "2018-06-21 04:53:51.254651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.255888"], ["updated_at", "2018-06-21 04:53:51.255888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_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"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.270011"], ["updated_at", "2018-06-21 04:53:51.270011"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.271076"], ["updated_at", "2018-06-21 04:53:51.271076"]]  (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.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-21 04:53:51.274041"], ["updated_at", "2018-06-21 04:53:51.274041"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.276345"], ["updated_at", "2018-06-21 04:53:51.276345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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-21 04:53:51.280538"], ["updated_at", "2018-06-21 04:53:51.280538"]]  (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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.285695"], ["updated_at", "2018-06-21 04:53:51.285695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.286823"], ["updated_at", "2018-06-21 04:53:51.286823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.289560"], ["updated_at", "2018-06-21 04:53:51.289560"]]  (0.0ms) commit transaction  (0.0ms) 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 "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-21 04:53:51.299892"], ["updated_at", "2018-06-21 04:53:51.299892"]]  (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.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.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.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.318774"], ["updated_at", "2018-06-21 04:53:51.318774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.326954"], ["updated_at", "2018-06-21 04:53:51.326954"]]  (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-21 04:53:51.329745"], ["updated_at", "2018-06-21 04:53:51.329745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:51.333259"], ["updated_at", "2018-06-21 04:53:51.333259"]]  (0.0ms) commit 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.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.0ms) commit transaction  (0.0ms) begin transaction SQL (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_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.2ms) 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-21 04:53:51.353255"], ["updated_at", "2018-06-21 04:53:51.353255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.354342"], ["updated_at", "2018-06-21 04:53:51.354342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:53:51.363265"], ["updated_at", "2018-06-21 04:53:51.363265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.364308"], ["updated_at", "2018-06-21 04:53:51.364308"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) 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", "2018-06-21 04:53:51.367571"], ["updated_at", "2018-06-21 04:53:51.367571"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.372562"], ["updated_at", "2018-06-21 04:53:51.372562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.373605"], ["updated_at", "2018-06-21 04:53:51.373605"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) 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-21 04:53:51.376433"], ["updated_at", "2018-06-21 04:53:51.376433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.377380"], ["updated_at", "2018-06-21 04:53:51.377380"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 04:53:51.380589"], ["updated_at", "2018-06-21 04:53:51.380589"]]  (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-21 04:53:51.384118"], ["updated_at", "2018-06-21 04:53:51.384118"]]  (0.0ms) commit 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" SQL (0.0ms) DELETE FROM "test_models" SQL (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-21 04:53:51.401899"], ["updated_at", "2018-06-21 04:53:51.401899"]]  (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-21 04:53:51.407609"], ["updated_at", "2018-06-21 04:53:51.407609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.408702"], ["updated_at", "2018-06-21 04:53:51.408702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (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.2ms) 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.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-21 04:53:51.422560"], ["updated_at", "2018-06-21 04:53:51.422560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.423565"], ["updated_at", "2018-06-21 04:53:51.423565"]]  (0.0ms) commit transaction TestModel 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-21 04:53:51.425658"], ["updated_at", "2018-06-21 04:53:51.425658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 04:53:51.431890"], ["updated_at", "2018-06-21 04:53:51.431890"]]  (0.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-21 04:53:51.437040"], ["updated_at", "2018-06-21 04:53:51.437040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.437936"], ["updated_at", "2018-06-21 04:53:51.437936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (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-21 04:53:51.440379"], ["updated_at", "2018-06-21 04:53:51.440379"]]  (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-21 04:53:51.441240"], ["updated_at", "2018-06-21 04:53:51.441240"]]  (0.0ms) commit 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-21 04:53:51.444297"], ["updated_at", "2018-06-21 04:53:51.444297"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.445270"], ["updated_at", "2018-06-21 04:53:51.445270"]]  (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-21 04:53:51.448367"], ["updated_at", "2018-06-21 04:53:51.448367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.449659"], ["updated_at", "2018-06-21 04:53:51.449659"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.450743"], ["updated_at", "2018-06-21 04:53:51.450743"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (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-21 04:53:51.453377"], ["updated_at", "2018-06-21 04:53:51.453377"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.454219"], ["updated_at", "2018-06-21 04:53:51.454219"]]  (0.0ms) commit transaction  (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)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.460255"], ["updated_at", "2018-06-21 04:53:51.460255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.461169"], ["updated_at", "2018-06-21 04:53:51.461169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.461988"], ["updated_at", "2018-06-21 04:53:51.461988"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."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-21 04:53:51.465064"], ["updated_at", "2018-06-21 04:53:51.465064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.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", "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-21 04:53:51.471870"], ["updated_at", "2018-06-21 04:53:51.471870"]]  (0.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" 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-21 04:53:51.479103"], ["updated_at", "2018-06-21 04:53:51.479103"]]  (0.0ms) commit transaction  (0.0ms) 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.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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 04:53:51.498032"], ["updated_at", "2018-06-21 04:53:51.498032"]]  (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-21 04:53:51.499391"], ["updated_at", "2018-06-21 04:53:51.499391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:53:51.500518"], ["updated_at", "2018-06-21 04:53:51.500518"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:53:51.502520"], ["updated_at", "2018-06-21 04:53:51.502520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:51.504714"], ["updated_at", "2018-06-21 04:53:51.504714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."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-21 04:53:51.507951"], ["updated_at", "2018-06-21 04:53:51.507951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:53:51.510088"], ["updated_at", "2018-06-21 04:53:51.510088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "test_1_1"], ["created_at", "2018-06-21 04:53:51.518548"], ["updated_at", "2018-06-21 04:53:51.518548"]]  (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-21 04:53:51.519572"], ["updated_at", "2018-06-21 04:53:51.519572"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:53:51.521522"], ["updated_at", "2018-06-21 04:53:51.521522"]]  (0.0ms) commit 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-21 04:53:51.522347"], ["updated_at", "2018-06-21 04:53:51.522347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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-21 04:53:51.529100"], ["updated_at", "2018-06-21 04:53:51.529100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 04:53:51.534347"], ["updated_at", "2018-06-21 04:53:51.534347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 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-21 04:53:51.540402"], ["updated_at", "2018-06-21 04:53:51.540402"]]  (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-21 04:53:51.541919"], ["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-21 04:53:51.543345"], ["updated_at", "2018-06-21 04:53:51.543345"]]  (0.0ms) commit transaction  (0.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-21 04:53:51.544150"], ["updated_at", "2018-06-21 04:53:51.544150"]]  (0.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", "2018-06-21 04:53:51.547527"], ["updated_at", "2018-06-21 04:53:51.547527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:53:51.549679"], ["updated_at", "2018-06-21 04:53:51.549679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 04:53:51.551651"], ["updated_at", "2018-06-21 04:53:51.551651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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" -------------------------------------------------------------------- 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 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 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) ------------------------------------------- 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.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 0ms (Views: 0.1ms | 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.1ms | 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) ------------------------------------------ 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) ----------------------------------------------------------------------------------------- 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 4ms (Views: 0.3ms | 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.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", 3], ["id", 3], ["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"=>"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) -------------------------------------- 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) ------------------------- 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 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_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) --------------------------------------- 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 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 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.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.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) ------------------------------------------------------- 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.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) ----------------------------------------------------------------- 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.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.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 --------------------------------------- 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_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 1ms (Views: 0.3ms | 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.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.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.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)  (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-21 04:53:51.732922"], ["updated_at", "2018-06-21 04:53:51.732922"]]  (0.0ms) commit transaction  (0.0ms) 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.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.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-21 04:53:51.749698"], ["updated_at", "2018-06-21 04:53:51.749698"]]  (0.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.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-21 04:53:51.755924"], ["updated_at", "2018-06-21 04:53:51.755924"]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:53:51.759265"], ["updated_at", "2018-06-21 04:53:51.759265"]]  (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" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit 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-21 04:53:51.769092"], ["updated_at", "2018-06-21 04:53:51.769092"]]  (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-21 04:53:51.770076"], ["updated_at", "2018-06-21 04:53:51.770076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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_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.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", 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-21 04:53:51.797530"], ["updated_at", "2018-06-21 04:53:51.797530"]]  (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  (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.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_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_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", 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", 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]] ------------------------------------------------------------ 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.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) ---------------------------------------------------- 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)  (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 ) ----------------------------------------------------------------- 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.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.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 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.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.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) ----------------------------------------------------------------------------------------- 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 1 [["id", 2]] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 2]] 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.4ms) ------------------------------------------------------------------------------- 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.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 3]] 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.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"params"=>{"id"=>"5"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (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 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.3ms | 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: 3.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 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 3ms (Views: 2.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.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.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------- 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 4ms (Views: 4.0ms | 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 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_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_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) --------------------------------------------------------------------------------------------- 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.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.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_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 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) -------------------------------------------------------------------- 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 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 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_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.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) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show 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 2ms (Views: 1.8ms | 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 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 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_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 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 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_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.2ms) 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 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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-21 04:54:28.914200"], ["updated_at", "2018-06-21 04:54:28.914200"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:28.915566"], ["updated_at", "2018-06-21 04:54:28.915566"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 04:54:28.919115"], ["updated_at", "2018-06-21 04:54:28.919115"]]  (0.0ms) commit 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-21 04:54:28.920264"], ["updated_at", "2018-06-21 04:54:28.920264"]]  (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-21 04:54:28.933545"], ["updated_at", "2018-06-21 04:54:28.933545"]]  (0.0ms) commit 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-21 04:54:28.934679"], ["updated_at", "2018-06-21 04:54:28.934679"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 04:54:28.949692"], ["updated_at", "2018-06-21 04:54:28.949692"]]  (0.0ms) commit 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-21 04:54:28.950740"], ["updated_at", "2018-06-21 04:54:28.950740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:54:28.952724"], ["updated_at", "2018-06-21 04:54:28.952724"]]  (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-21 04:54:28.953692"], ["updated_at", "2018-06-21 04:54:28.953692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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-21 04:54:28.958254"], ["updated_at", "2018-06-21 04:54:28.958254"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:28.959572"], ["updated_at", "2018-06-21 04:54:28.959572"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 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-21 04:54:28.966204"], ["updated_at", "2018-06-21 04:54:28.966204"]]  (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.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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:28.981627"], ["updated_at", "2018-06-21 04:54:28.981627"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 04:54:28.988971"], ["updated_at", "2018-06-21 04:54:28.988971"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:28.990009"], ["updated_at", "2018-06-21 04:54:28.990009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["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.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-21 04:54:29.001742"], ["updated_at", "2018-06-21 04:54:29.001742"]]  (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-21 04:54:29.003064"], ["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-21 04:54:29.004757"], ["updated_at", "2018-06-21 04:54:29.004757"]]  (0.0ms) commit transaction  (0.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-21 04:54:29.005638"], ["updated_at", "2018-06-21 04:54:29.005638"]]  (0.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_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-21 04:54:29.011255"], ["updated_at", "2018-06-21 04:54:29.011255"]]  (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_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" ("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", "2018-06-21 04:54:29.020714"], ["updated_at", "2018-06-21 04:54:29.020714"]]  (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", "2018-06-21 04:54:29.028326"], ["updated_at", "2018-06-21 04:54:29.028326"]]  (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-21 04:54:29.031551"], ["updated_at", "2018-06-21 04:54:29.031551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 04:54:29.034186"], ["updated_at", "2018-06-21 04:54:29.034186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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-21 04:54:29.038597"], ["updated_at", "2018-06-21 04:54:29.038597"]]  (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) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.041314"], ["updated_at", "2018-06-21 04:54:29.041314"]]  (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-21 04:54:29.044854"], ["updated_at", "2018-06-21 04:54:29.044854"]]  (0.0ms) commit 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-21 04:54:29.049826"], ["updated_at", "2018-06-21 04:54:29.049826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.055334"], ["updated_at", "2018-06-21 04:54:29.055334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.056327"], ["updated_at", "2018-06-21 04:54:29.056327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 04:54:29.062135"], ["updated_at", "2018-06-21 04:54:29.062135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.063068"], ["updated_at", "2018-06-21 04:54:29.063068"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_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", "2018-06-21 04:54:29.065877"], ["updated_at", "2018-06-21 04:54:29.065877"]]  (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", "2018-06-21 04:54:29.068365"], ["updated_at", "2018-06-21 04:54:29.068365"]]  (0.0ms) commit 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-21 04:54:29.073299"], ["updated_at", "2018-06-21 04:54:29.073299"]]  (0.2ms) 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.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.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", "2018-06-21 04:54:29.083077"], ["updated_at", "2018-06-21 04:54:29.083077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER 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.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.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 04:54:29.091976"], ["updated_at", "2018-06-21 04:54:29.091976"]]  (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-21 04:54:29.093382"], ["updated_at", "2018-06-21 04:54:29.093382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.094544"], ["updated_at", "2018-06-21 04:54:29.094544"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:54:29.097037"], ["updated_at", "2018-06-21 04:54:29.097037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.098083"], ["updated_at", "2018-06-21 04:54:29.098083"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_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-21 04:54:29.101132"], ["updated_at", "2018-06-21 04:54:29.101132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:54:29.103618"], ["updated_at", "2018-06-21 04:54:29.103618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", 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.2ms) 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.1ms) 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" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.134471"], ["updated_at", "2018-06-21 04:54:29.134471"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.135422"], ["updated_at", "2018-06-21 04:54:29.135422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:29.137589"], ["updated_at", "2018-06-21 04:54:29.137589"]]  (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_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-21 04:54:29.142495"], ["updated_at", "2018-06-21 04:54:29.142495"]]  (0.0ms) commit transaction  (0.0ms) 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" SQL (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-21 04:54:29.148225"], ["updated_at", "2018-06-21 04:54:29.148225"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.149458"], ["updated_at", "2018-06-21 04:54:29.149458"]]  (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-21 04:54:29.151628"], ["updated_at", "2018-06-21 04:54:29.151628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.152497"], ["updated_at", "2018-06-21 04:54:29.152497"]]  (0.0ms) commit transaction  (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-21 04:54:29.154596"], ["updated_at", "2018-06-21 04:54:29.154596"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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-21 04:54:29.158424"], ["updated_at", "2018-06-21 04:54:29.158424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.159659"], ["updated_at", "2018-06-21 04:54:29.159659"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.160888"], ["updated_at", "2018-06-21 04:54:29.160888"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (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-21 04:54:29.163929"], ["updated_at", "2018-06-21 04:54:29.163929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.164799"], ["updated_at", "2018-06-21 04:54:29.164799"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:54:29.173801"], ["updated_at", "2018-06-21 04:54:29.173801"]]  (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-21 04:54:29.178335"], ["updated_at", "2018-06-21 04:54:29.178335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_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-21 04:54:29.181756"], ["updated_at", "2018-06-21 04:54:29.181756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.182504"], ["updated_at", "2018-06-21 04:54:29.182504"]]  (0.0ms) commit transaction TestModel 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-21 04:54:29.184221"], ["updated_at", "2018-06-21 04:54:29.184221"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.185093"], ["updated_at", "2018-06-21 04:54:29.185093"]]  (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-21 04:54:29.187328"], ["updated_at", "2018-06-21 04:54:29.187328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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", "2018-06-21 04:54:29.191349"], ["updated_at", "2018-06-21 04:54:29.191349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.192280"], ["updated_at", "2018-06-21 04:54:29.192280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.198642"], ["updated_at", "2018-06-21 04:54:29.198642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.200814"], ["updated_at", "2018-06-21 04:54:29.200814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.203904"], ["updated_at", "2018-06-21 04:54:29.203904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:29.205674"], ["updated_at", "2018-06-21 04:54:29.205674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 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.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", "2018-06-21 04:54:29.215577"], ["updated_at", "2018-06-21 04:54:29.215577"]]  (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-21 04:54:29.216403"], ["updated_at", "2018-06-21 04:54:29.216403"]]  (0.0ms) commit 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", "2018-06-21 04:54:29.218552"], ["updated_at", "2018-06-21 04:54:29.218552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.219243"], ["updated_at", "2018-06-21 04:54:29.219243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (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]] TestModel Load (0.1ms) SELECT "test_models".* 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_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.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-21 04:54:29.229561"], ["updated_at", "2018-06-21 04:54:29.229561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.230501"], ["updated_at", "2018-06-21 04:54:29.230501"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.231265"], ["updated_at", "2018-06-21 04:54:29.231265"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."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-21 04:54:29.236204"], ["updated_at", "2018-06-21 04:54:29.236204"]]  (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" --------------------------------------------------------------------------------- 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.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) -------------------------------------------------------------- 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.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_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)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.265587"], ["updated_at", "2018-06-21 04:54:29.265587"]]  (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", "2018-06-21 04:54:29.270894"], ["updated_at", "2018-06-21 04:54:29.270894"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:54:29.273488"], ["updated_at", "2018-06-21 04:54:29.273488"]]  (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.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.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 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" ("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.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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:29.300320"], ["updated_at", "2018-06-21 04:54:29.300320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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", 7]]  (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_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", 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]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 04:54:29.319030"], ["updated_at", "2018-06-21 04:54:29.319030"]]  (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 "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.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" SQL (0.0ms) DELETE 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-21 04:54:29.333024"], ["updated_at", "2018-06-21 04:54:29.333024"]]  (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-21 04:54:29.334615"], ["updated_at", "2018-06-21 04:54:29.334615"]]  (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.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 ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"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) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.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"} 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"} 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.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 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.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 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)  (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 ) ----------------------------------------------------------------------------------------------- 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.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.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.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 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) ------------------------------------------------------------------------------------- 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.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.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} 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 Rendered text template (0.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) ------------------------------------------------------------- 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.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.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 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.3ms | 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) --------------------------------------------------------------------------------------------------- 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: {"params"=>{"id"=>"1"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 7ms (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.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 1 [["id", 2]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 2], ["id", 2]] Rendered text template (0.0ms) Completed 200 OK in 11ms (Views: 0.3ms | 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.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"=>"5"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 5]] 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) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- 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_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 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_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_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) ------------------------------------------------ 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 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 5ms (Views: 4.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.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.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.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.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.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 3ms (Views: 2.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.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_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) ------------------------------------------ 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.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) ------------------------------------------------------- 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) -------------------------------------- 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.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) ----------------------------------------------------------------------------------------- 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_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.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_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)  (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.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_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-21 04:54:33.602028"], ["updated_at", "2018-06-21 04:54:33.602028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (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", 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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-21 04:54:33.617309"], ["updated_at", "2018-06-21 04:54:33.617309"]]  (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-21 04:54:33.618457"], ["updated_at", "2018-06-21 04:54:33.618457"]]  (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.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]] 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.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 04:54:33.638010"], ["updated_at", "2018-06-21 04:54:33.638010"]]  (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", 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  (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 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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.654453"], ["updated_at", "2018-06-21 04:54:33.654453"]]  (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.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.663054"], ["updated_at", "2018-06-21 04:54:33.663054"]]  (0.0ms) commit transaction  (0.0ms) 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.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", "2018-06-21 04:54:33.666193"], ["updated_at", "2018-06-21 04:54:33.666193"]]  (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.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.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.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.1ms) 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" ("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", 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]] ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.0ms | 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_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 --------------------------------------- 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_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.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_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 3ms (Views: 2.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) ---------------------------------------------------- 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.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)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.775144"], ["updated_at", "2018-06-21 04:54:33.775144"]]  (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-21 04:54:33.776526"], ["updated_at", "2018-06-21 04:54:33.776526"]]  (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.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') SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.783587"], ["updated_at", "2018-06-21 04:54:33.783587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.784880"], ["updated_at", "2018-06-21 04:54:33.784880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.787196"], ["updated_at", "2018-06-21 04:54:33.787196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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-21 04:54:33.791557"], ["updated_at", "2018-06-21 04:54:33.791557"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.792537"], ["updated_at", "2018-06-21 04:54:33.792537"]]  (0.0ms) commit transaction TestModel 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_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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-21 04:54:33.799289"], ["updated_at", "2018-06-21 04:54:33.799289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:33.801612"], ["updated_at", "2018-06-21 04:54:33.801612"]]  (0.0ms) commit 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-21 04:54:33.805516"], ["updated_at", "2018-06-21 04:54:33.805516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.806338"], ["updated_at", "2018-06-21 04:54:33.806338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["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", "2018-06-21 04:54:33.813914"], ["updated_at", "2018-06-21 04:54:33.813914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:33.816548"], ["updated_at", "2018-06-21 04:54:33.816548"]]  (0.0ms) commit 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-21 04:54:33.819869"], ["updated_at", "2018-06-21 04:54:33.819869"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.820687"], ["updated_at", "2018-06-21 04:54:33.820687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.821438"], ["updated_at", "2018-06-21 04:54:33.821438"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (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-21 04:54:33.823678"], ["updated_at", "2018-06-21 04:54:33.823678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:33.825646"], ["updated_at", "2018-06-21 04:54:33.825646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.828842"], ["updated_at", "2018-06-21 04:54:33.828842"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "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_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-21 04:54:33.837019"], ["updated_at", "2018-06-21 04:54:33.837019"]]  (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-21 04:54:33.841158"], ["updated_at", "2018-06-21 04:54:33.841158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.841984"], ["updated_at", "2018-06-21 04:54:33.841984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.844323"], ["updated_at", "2018-06-21 04:54:33.844323"]]  (0.0ms) commit transaction  (0.0ms) 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", "bla"], ["created_at", "2018-06-21 04:54:33.848975"], ["updated_at", "2018-06-21 04:54:33.848975"]]  (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-21 04:54:33.849908"], ["updated_at", "2018-06-21 04:54:33.849908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.850763"], ["updated_at", "2018-06-21 04:54:33.850763"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:54:33.853296"], ["updated_at", "2018-06-21 04:54:33.853296"]]  (0.0ms) commit transaction  (0.0ms) 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 "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", "2018-06-21 04:54:33.867067"], ["updated_at", "2018-06-21 04:54:33.867067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:33.868996"], ["updated_at", "2018-06-21 04:54:33.868996"]]  (0.0ms) commit transaction  (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-21 04:54:33.870920"], ["updated_at", "2018-06-21 04:54:33.870920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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-21 04:54:33.874400"], ["updated_at", "2018-06-21 04:54:33.874400"]]  (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-21 04:54:33.876202"], ["updated_at", "2018-06-21 04:54:33.876202"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.877057"], ["updated_at", "2018-06-21 04:54:33.877057"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 04:54:33.880428"], ["updated_at", "2018-06-21 04:54:33.880428"]]  (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", "test_1_1"], ["created_at", "2018-06-21 04:54:33.885409"], ["updated_at", "2018-06-21 04:54:33.885409"]]  (0.0ms) commit 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-21 04:54:33.886335"], ["updated_at", "2018-06-21 04:54:33.886335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:54:33.888141"], ["updated_at", "2018-06-21 04:54:33.888141"]]  (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-21 04:54:33.889211"], ["updated_at", "2018-06-21 04:54:33.889211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "2018-06-21 04:54:33.895944"], ["updated_at", "2018-06-21 04:54:33.895944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 04:54:33.901385"], ["updated_at", "2018-06-21 04:54:33.901385"]]  (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", "2018-06-21 04:54:33.904978"], ["updated_at", "2018-06-21 04:54:33.904978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.905773"], ["updated_at", "2018-06-21 04:54:33.905773"]]  (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-21 04:54:33.908196"], ["updated_at", "2018-06-21 04:54:33.908196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.909210"], ["updated_at", "2018-06-21 04:54:33.909210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) 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", "2018-06-21 04:54:33.918565"], ["updated_at", "2018-06-21 04:54:33.918565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.919424"], ["updated_at", "2018-06-21 04:54:33.919424"]]  (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" ("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.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-21 04:54:33.930327"], ["updated_at", "2018-06-21 04:54:33.930327"]]  (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", "2018-06-21 04:54:33.935688"], ["updated_at", "2018-06-21 04:54:33.935688"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_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", "2018-06-21 04:54:33.940893"], ["updated_at", "2018-06-21 04:54:33.940893"]]  (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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-21 04:54:33.947372"], ["updated_at", "2018-06-21 04:54:33.947372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:54:33.949838"], ["updated_at", "2018-06-21 04:54:33.949838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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.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-21 04:54:33.965646"], ["updated_at", "2018-06-21 04:54:33.965646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.966794"], ["updated_at", "2018-06-21 04:54:33.966794"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 04:54:33.972513"], ["updated_at", "2018-06-21 04:54:33.972513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.973521"], ["updated_at", "2018-06-21 04:54:33.973521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" 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-21 04:54:33.981820"], ["updated_at", "2018-06-21 04:54:33.981820"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.983374"], ["updated_at", "2018-06-21 04:54:33.983374"]]  (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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:33.987140"], ["updated_at", "2018-06-21 04:54:33.987140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:33.989686"], ["updated_at", "2018-06-21 04:54:33.989686"]]  (0.0ms) commit transaction  (0.0ms) 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.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 04:54:33.993505"], ["updated_at", "2018-06-21 04:54:33.993505"]]  (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-21 04:54:33.995366"], ["updated_at", "2018-06-21 04:54:33.995366"]]  (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.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-21 04:54:33.998921"], ["updated_at", "2018-06-21 04:54:33.998921"]]  (0.0ms) commit 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-21 04:54:33.999978"], ["updated_at", "2018-06-21 04:54:33.999978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-21 04:54:34.006889"], ["updated_at", "2018-06-21 04:54:34.006889"]]  (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.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", "2018-06-21 04:54:34.017734"], ["updated_at", "2018-06-21 04:54:34.017734"]]  (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", "2018-06-21 04:54:34.023366"], ["updated_at", "2018-06-21 04:54:34.023366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:34.024317"], ["updated_at", "2018-06-21 04:54:34.024317"]]  (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-21 04:54:34.026808"], ["updated_at", "2018-06-21 04:54:34.026808"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:54:34.032178"], ["updated_at", "2018-06-21 04:54:34.032178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:34.033290"], ["updated_at", "2018-06-21 04:54:34.033290"]]  (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", "2018-06-21 04:54:34.035702"], ["updated_at", "2018-06-21 04:54:34.035702"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:34.036575"], ["updated_at", "2018-06-21 04:54:34.036575"]]  (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", "2018-06-21 04:54:34.039583"], ["updated_at", "2018-06-21 04:54:34.039583"]]  (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-21 04:54:34.040910"], ["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-21 04:54:34.042028"], ["updated_at", "2018-06-21 04:54:34.042028"]]  (0.0ms) commit transaction  (0.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-21 04:54:34.043116"], ["updated_at", "2018-06-21 04:54:34.043116"]]  (0.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 "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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:34.059922"], ["updated_at", "2018-06-21 04:54:34.059922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:34.061611"], ["updated_at", "2018-06-21 04:54:34.061611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:34.062695"], ["updated_at", "2018-06-21 04:54:34.062695"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."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 --------------------------------------- ------------------------------------------------------------------------- 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.7ms | 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.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.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"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) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.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"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendered text template (0.0ms) Completed 200 OK in 0ms (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.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER 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.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_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) ----------------------------------------------------------------------------------------- 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.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 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) ------------------------------------------- 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 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 7ms (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 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.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) ----------------------------------------------------------------- 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 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.0ms) commit transaction  (0.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.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_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-21 04:54:38.271615"], ["updated_at", "2018-06-21 04:54:38.271615"]]  (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-21 04:54:38.272858"], ["updated_at", "2018-06-21 04:54:38.272858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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 ? [["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.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.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.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-21 04:54:38.306304"], ["updated_at", "2018-06-21 04:54:38.306304"]]  (0.0ms) commit transaction 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_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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.331133"], ["updated_at", "2018-06-21 04:54:38.331133"]]  (0.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-21 04:54:38.339380"], ["updated_at", "2018-06-21 04:54:38.339380"]]  (0.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-21 04:54:38.343114"], ["updated_at", "2018-06-21 04:54:38.343114"]]  (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 "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.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.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.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" 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", "2018-06-21 04:54:38.364866"], ["updated_at", "2018-06-21 04:54:38.364866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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" ------------------------------------------ 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_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_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_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.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)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.390685"], ["updated_at", "2018-06-21 04:54:38.390685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.391695"], ["updated_at", "2018-06-21 04:54:38.391695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.392473"], ["updated_at", "2018-06-21 04:54:38.392473"]]  (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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-21 04:54:38.399567"], ["updated_at", "2018-06-21 04:54:38.399567"]]  (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.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-21 04:54:38.410854"], ["updated_at", "2018-06-21 04:54:38.410854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.415157"], ["updated_at", "2018-06-21 04:54:38.415157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.416046"], ["updated_at", "2018-06-21 04:54:38.416046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:54:38.421942"], ["updated_at", "2018-06-21 04:54:38.421942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 04:54:38.427276"], ["updated_at", "2018-06-21 04:54:38.427276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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", "2018-06-21 04:54:38.431338"], ["updated_at", "2018-06-21 04:54:38.431338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.432321"], ["updated_at", "2018-06-21 04:54:38.432321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:38.435448"], ["updated_at", "2018-06-21 04:54:38.435448"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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.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", "2018-06-21 04:54:38.441558"], ["updated_at", "2018-06-21 04:54:38.441558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.442438"], ["updated_at", "2018-06-21 04:54:38.442438"]]  (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", 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.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-21 04:54:38.456653"], ["updated_at", "2018-06-21 04:54:38.456653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.457797"], ["updated_at", "2018-06-21 04:54:38.457797"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (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-21 04:54:38.460706"], ["updated_at", "2018-06-21 04:54:38.460706"]]  (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-21 04:54:38.461553"], ["updated_at", "2018-06-21 04:54:38.461553"]]  (0.0ms) commit 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 TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.468287"], ["updated_at", "2018-06-21 04:54:38.468287"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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-21 04:54:38.474291"], ["updated_at", "2018-06-21 04:54:38.474291"]]  (0.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-21 04:54:38.480312"], ["updated_at", "2018-06-21 04:54:38.480312"]]  (0.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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.487898"], ["updated_at", "2018-06-21 04:54:38.487898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.488696"], ["updated_at", "2018-06-21 04:54:38.488696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("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_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-21 04:54:38.502413"], ["updated_at", "2018-06-21 04:54:38.502413"]]  (0.0ms) commit transaction  (0.0ms) 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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.508993"], ["updated_at", "2018-06-21 04:54:38.508993"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.509988"], ["updated_at", "2018-06-21 04:54:38.509988"]]  (0.0ms) commit transaction TestModel 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", "2018-06-21 04:54:38.512439"], ["updated_at", "2018-06-21 04:54:38.512439"]]  (0.0ms) commit 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-21 04:54:38.513483"], ["updated_at", "2018-06-21 04:54:38.513483"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 04:54:38.515638"], ["updated_at", "2018-06-21 04:54:38.515638"]]  (0.0ms) commit 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-21 04:54:38.516671"], ["updated_at", "2018-06-21 04:54:38.516671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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 ? [["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.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.524718"], ["updated_at", "2018-06-21 04:54:38.524718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.525633"], ["updated_at", "2018-06-21 04:54:38.525633"]]  (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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.536602"], ["updated_at", "2018-06-21 04:54:38.536602"]]  (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", "2018-06-21 04:54:38.541333"], ["updated_at", "2018-06-21 04:54:38.541333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.542288"], ["updated_at", "2018-06-21 04:54:38.542288"]]  (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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.547797"], ["updated_at", "2018-06-21 04:54:38.547797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.549094"], ["updated_at", "2018-06-21 04:54:38.549094"]]  (0.0ms) commit transaction  (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-21 04:54:38.552671"], ["updated_at", "2018-06-21 04:54:38.552671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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", "2018-06-21 04:54:38.556592"], ["updated_at", "2018-06-21 04:54:38.556592"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.557539"], ["updated_at", "2018-06-21 04:54:38.557539"]]  (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.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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.568469"], ["updated_at", "2018-06-21 04:54:38.568469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.569444"], ["updated_at", "2018-06-21 04:54:38.569444"]]  (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.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", "2018-06-21 04:54:38.575267"], ["updated_at", "2018-06-21 04:54:38.575267"]]  (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.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.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-21 04:54:38.590663"], ["updated_at", "2018-06-21 04:54:38.590663"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.591693"], ["updated_at", "2018-06-21 04:54:38.591693"]]  (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-21 04:54:38.594744"], ["updated_at", "2018-06-21 04:54:38.594744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (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-21 04:54:38.601150"], ["updated_at", "2018-06-21 04:54:38.601150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.604131"], ["updated_at", "2018-06-21 04:54:38.604131"]]  (0.0ms) commit 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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.609795"], ["updated_at", "2018-06-21 04:54:38.609795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.611027"], ["updated_at", "2018-06-21 04:54:38.611027"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.611925"], ["updated_at", "2018-06-21 04:54:38.611925"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* 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.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-21 04:54:38.616889"], ["updated_at", "2018-06-21 04:54:38.616889"]]  (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-21 04:54:38.618622"], ["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-21 04:54:38.619997"], ["updated_at", "2018-06-21 04:54:38.619997"]]  (0.0ms) commit transaction  (0.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-21 04:54:38.621206"], ["updated_at", "2018-06-21 04:54:38.621206"]]  (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.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_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-21 04:54:38.628528"], ["updated_at", "2018-06-21 04:54:38.628528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:54:38.631456"], ["updated_at", "2018-06-21 04:54:38.631456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:54:38.642449"], ["updated_at", "2018-06-21 04:54:38.642449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.645731"], ["updated_at", "2018-06-21 04:54:38.645731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.649982"], ["updated_at", "2018-06-21 04:54:38.649982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.650991"], ["updated_at", "2018-06-21 04:54:38.650991"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (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-21 04:54:38.653975"], ["updated_at", "2018-06-21 04:54:38.653975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:54:38.656382"], ["updated_at", "2018-06-21 04:54:38.656382"]]  (0.0ms) commit 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-21 04:54:38.660422"], ["updated_at", "2018-06-21 04:54:38.660422"]]  (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-21 04:54:38.666848"], ["updated_at", "2018-06-21 04:54:38.666848"]]  (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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.669598"], ["updated_at", "2018-06-21 04:54:38.669598"]]  (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-21 04:54:38.672901"], ["updated_at", "2018-06-21 04:54:38.672901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 04:54:38.675336"], ["updated_at", "2018-06-21 04:54:38.675336"]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:54:38.679477"], ["updated_at", "2018-06-21 04:54:38.679477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.680514"], ["updated_at", "2018-06-21 04:54:38.680514"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 04:54:38.683537"], ["updated_at", "2018-06-21 04:54:38.683537"]]  (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-21 04:54:38.684832"], ["updated_at", "2018-06-21 04:54:38.684832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:54:38.687299"], ["updated_at", "2018-06-21 04:54:38.687299"]]  (0.0ms) commit 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-21 04:54:38.688325"], ["updated_at", "2018-06-21 04:54:38.688325"]]  (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", 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", "2018-06-21 04:54:38.692198"], ["updated_at", "2018-06-21 04:54:38.692198"]]  (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-21 04:54:38.693245"], ["updated_at", "2018-06-21 04:54:38.693245"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.694186"], ["updated_at", "2018-06-21 04:54:38.694186"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:54:38.696513"], ["updated_at", "2018-06-21 04:54:38.696513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:54:38.699863"], ["updated_at", "2018-06-21 04:54:38.699863"]]  (0.0ms) commit transaction  (0.0ms) 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.2ms) 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.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.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.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.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 4ms (Views: 0.5ms | 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", 3], ["id", 3], ["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"=>"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) ----------------------------------------------------------------- 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.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_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.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_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 --------------------------------------- ----------------------- 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 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.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 ------------------------- Processing by HelperMocksController#action 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) -------------------------------------------------------------------------------------------- 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 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.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.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER 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 ) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.2ms) 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 1 [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 1]] Rendered text template (0.0ms) Completed 200 OK in 17ms (Views: 3.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: {"params"=>{"id"=>"3"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (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.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 1 [["id", 5]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 5]] 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) ------------------------------------------------------- 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 5ms (Views: 2.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.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.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.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.4ms | 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.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) ----------------------------------------------------------------- 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_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.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 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- 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_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 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.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.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_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.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 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.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", 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.2ms) 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.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 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.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 "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", 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  (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.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 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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-06-21 04:56:57.379526"], ["updated_at", "2018-06-21 04:56:57.379526"]]  (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-21 04:56:57.380785"], ["updated_at", "2018-06-21 04:56:57.380785"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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.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.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 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", "2018-06-21 04:56:57.408539"], ["updated_at", "2018-06-21 04:56:57.408539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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", "2018-06-21 04:56:57.414217"], ["updated_at", "2018-06-21 04:56:57.414217"]]  (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-21 04:56:57.416865"], ["updated_at", "2018-06-21 04:56:57.416865"]]  (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.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-21 04:56:57.422799"], ["updated_at", "2018-06-21 04:56:57.422799"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:56:57.425990"], ["updated_at", "2018-06-21 04:56:57.425990"]]  (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.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" ("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]] ------------------------------------------------------------------------------------ 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 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) ------------------------------------------ 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.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) ------------------------------------------------------------ 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) ------------------------------------------------ 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 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 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.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) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.2ms) 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.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) ------------------------------------------------------------------------- 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) ---------------------------------------------------- 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) ----------------------------------------------------- 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 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) ----------------------------------------------------------------- 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) ----------------------------------------------------------------------------------------- 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.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_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 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 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)  (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-21 04:56:57.584361"], ["updated_at", "2018-06-21 04:56:57.584361"]]  (0.0ms) commit 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-21 04:56:57.585539"], ["updated_at", "2018-06-21 04:56:57.585539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:56:57.587741"], ["updated_at", "2018-06-21 04:56:57.587741"]]  (0.0ms) commit 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-21 04:56:57.588585"], ["updated_at", "2018-06-21 04:56:57.588585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "2018-06-21 04:56:57.595053"], ["updated_at", "2018-06-21 04:56:57.595053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.595860"], ["updated_at", "2018-06-21 04:56:57.595860"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["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", "2018-06-21 04:56:57.604282"], ["updated_at", "2018-06-21 04:56:57.604282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.605030"], ["updated_at", "2018-06-21 04:56:57.605030"]]  (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", "2018-06-21 04:56:57.607266"], ["updated_at", "2018-06-21 04:56:57.607266"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.607967"], ["updated_at", "2018-06-21 04:56:57.607967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:56:57.609969"], ["updated_at", "2018-06-21 04:56:57.609969"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_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  (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 "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "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-21 04:56:57.620283"], ["updated_at", "2018-06-21 04:56:57.620283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.621116"], ["updated_at", "2018-06-21 04:56:57.621116"]]  (0.0ms) commit transaction TestModel 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", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.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", "2018-06-21 04:56:57.632988"], ["updated_at", "2018-06-21 04:56:57.632988"]]  (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", "2018-06-21 04:56:57.634535"], ["updated_at", "2018-06-21 04:56:57.634535"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:56:57.636180"], ["updated_at", "2018-06-21 04:56:57.636180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["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", "2018-06-21 04:56:57.638742"], ["updated_at", "2018-06-21 04:56:57.638742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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", "2018-06-21 04:56:57.642041"], ["updated_at", "2018-06-21 04:56:57.642041"]]  (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-21 04:56:57.642778"], ["updated_at", "2018-06-21 04:56:57.642778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.643453"], ["updated_at", "2018-06-21 04:56:57.643453"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:56:57.645079"], ["updated_at", "2018-06-21 04:56:57.645079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.649255"], ["updated_at", "2018-06-21 04:56:57.649255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:56:57.651284"], ["updated_at", "2018-06-21 04:56:57.651284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 04:56:57.652916"], ["updated_at", "2018-06-21 04:56:57.652916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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-21 04:56:57.655695"], ["updated_at", "2018-06-21 04:56:57.655695"]]  (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" ("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", "2018-06-21 04:56:57.667653"], ["updated_at", "2018-06-21 04:56:57.667653"]]  (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-21 04:56:57.672042"], ["updated_at", "2018-06-21 04:56:57.672042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.672769"], ["updated_at", "2018-06-21 04:56:57.672769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_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", "2018-06-21 04:56:57.677107"], ["updated_at", "2018-06-21 04:56:57.677107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_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", "2018-06-21 04:56:57.681292"], ["updated_at", "2018-06-21 04:56:57.681292"]]  (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" SQL (0.0ms) DELETE FROM "test_models" SQL (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-21 04:56:57.688504"], ["updated_at", "2018-06-21 04:56:57.688504"]]  (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", "2018-06-21 04:56:57.692006"], ["updated_at", "2018-06-21 04:56:57.692006"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:56:57.693797"], ["updated_at", "2018-06-21 04:56:57.693797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 04:56:57.702752"], ["updated_at", "2018-06-21 04:56:57.702752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.703566"], ["updated_at", "2018-06-21 04:56:57.703566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.704290"], ["updated_at", "2018-06-21 04:56:57.704290"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_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-21 04:56:57.706767"], ["updated_at", "2018-06-21 04:56:57.706767"]]  (0.0ms) commit 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-21 04:56:57.707558"], ["updated_at", "2018-06-21 04:56:57.707558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:56:57.712155"], ["updated_at", "2018-06-21 04:56:57.712155"]]  (0.0ms) commit 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-21 04:56:57.712997"], ["updated_at", "2018-06-21 04:56:57.712997"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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-21 04:56:57.716380"], ["updated_at", "2018-06-21 04:56:57.716380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:56:57.718381"], ["updated_at", "2018-06-21 04:56:57.718381"]]  (0.0ms) commit 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-21 04:56:57.722264"], ["updated_at", "2018-06-21 04:56:57.722264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.726160"], ["updated_at", "2018-06-21 04:56:57.726160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.726940"], ["updated_at", "2018-06-21 04:56:57.726940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:56:57.728791"], ["updated_at", "2018-06-21 04:56:57.728791"]]  (0.0ms) commit transaction  (0.0ms) 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 "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.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-21 04:56:57.738147"], ["updated_at", "2018-06-21 04:56:57.738147"]]  (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-21 04:56:57.739918"], ["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-21 04:56:57.740941"], ["updated_at", "2018-06-21 04:56:57.740941"]]  (0.0ms) commit transaction  (0.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-21 04:56:57.741794"], ["updated_at", "2018-06-21 04:56:57.741794"]]  (0.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_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-21 04:56:57.745807"], ["updated_at", "2018-06-21 04:56:57.745807"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 04:56:57.750359"], ["updated_at", "2018-06-21 04:56:57.750359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.755303"], ["updated_at", "2018-06-21 04:56:57.755303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.756065"], ["updated_at", "2018-06-21 04:56:57.756065"]]  (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-21 04:56:57.758003"], ["updated_at", "2018-06-21 04:56:57.758003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:56:57.760469"], ["updated_at", "2018-06-21 04:56:57.760469"]]  (0.0ms) commit 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-21 04:56:57.763994"], ["updated_at", "2018-06-21 04:56:57.763994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.765105"], ["updated_at", "2018-06-21 04:56:57.765105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.766066"], ["updated_at", "2018-06-21 04:56:57.766066"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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", "2018-06-21 04:56:57.770897"], ["updated_at", "2018-06-21 04:56:57.770897"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.771728"], ["updated_at", "2018-06-21 04:56:57.771728"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.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" 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", "2018-06-21 04:56:57.781010"], ["updated_at", "2018-06-21 04:56:57.781010"]]  (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-21 04:56:57.782020"], ["updated_at", "2018-06-21 04:56:57.782020"]]  (0.0ms) commit 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", "2018-06-21 04:56:57.784411"], ["updated_at", "2018-06-21 04:56:57.784411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.785128"], ["updated_at", "2018-06-21 04:56:57.785128"]]  (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-21 04:56:57.786856"], ["updated_at", "2018-06-21 04:56:57.786856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.787581"], ["updated_at", "2018-06-21 04:56:57.787581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 04:56:57.792257"], ["updated_at", "2018-06-21 04:56:57.792257"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.793012"], ["updated_at", "2018-06-21 04:56:57.793012"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (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-21 04:56:57.795732"], ["updated_at", "2018-06-21 04:56:57.795732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.796627"], ["updated_at", "2018-06-21 04:56:57.796627"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 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", "2018-06-21 04:56:57.799706"], ["updated_at", "2018-06-21 04:56:57.799706"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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-21 04:56:57.803451"], ["updated_at", "2018-06-21 04:56:57.803451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.804266"], ["updated_at", "2018-06-21 04:56:57.804266"]]  (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", "2018-06-21 04:56:57.807609"], ["updated_at", "2018-06-21 04:56:57.807609"]]  (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", "2018-06-21 04:56:57.816237"], ["updated_at", "2018-06-21 04:56:57.816237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:56:57.818089"], ["updated_at", "2018-06-21 04:56:57.818089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.820845"], ["updated_at", "2018-06-21 04:56:57.820845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:56:57.821565"], ["updated_at", "2018-06-21 04:56:57.821565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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"} Rendered text template (0.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"=>"100"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#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.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.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.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_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)  (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 ) ------------------------------------------------------------ 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 5ms (Views: 4.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_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.1ms) 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.1ms) 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.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_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_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)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.873281"], ["updated_at", "2018-06-21 04:57:01.873281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.876484"], ["updated_at", "2018-06-21 04:57:01.876484"]]  (0.0ms) commit transaction  (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 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.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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.921116"], ["updated_at", "2018-06-21 04:57:01.921116"]]  (0.1ms) 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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.924893"], ["updated_at", "2018-06-21 04:57:01.924893"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.926616"], ["updated_at", "2018-06-21 04:57:01.926616"]]  (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" ("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.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.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 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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 04:57:01.948712"], ["updated_at", "2018-06-21 04:57:01.948712"]]  (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-21 04:57:01.950219"], ["updated_at", "2018-06-21 04:57:01.950219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.951295"], ["updated_at", "2018-06-21 04:57:01.951295"]]  (0.0ms) 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-21 04:57:01.954390"], ["updated_at", "2018-06-21 04:57:01.954390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.955548"], ["updated_at", "2018-06-21 04:57:01.955548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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 "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-21 04:57:01.966809"], ["updated_at", "2018-06-21 04:57:01.966809"]]  (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-21 04:57:01.970800"], ["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-21 04:57:01.973546"], ["updated_at", "2018-06-21 04:57:01.973546"]]  (0.0ms) commit transaction  (0.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-21 04:57:01.975057"], ["updated_at", "2018-06-21 04:57:01.975057"]]  (0.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-21 04:57:01.979901"], ["updated_at", "2018-06-21 04:57:01.979901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.981008"], ["updated_at", "2018-06-21 04:57:01.981008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (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.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:01.990681"], ["updated_at", "2018-06-21 04:57:01.990681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (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 TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_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-21 04:57:01.997546"], ["updated_at", "2018-06-21 04:57:01.997546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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-21 04:57:02.002454"], ["updated_at", "2018-06-21 04:57:02.002454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.003757"], ["updated_at", "2018-06-21 04:57:02.003757"]]  (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", "2018-06-21 04:57:02.007284"], ["updated_at", "2018-06-21 04:57:02.007284"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:02.009835"], ["updated_at", "2018-06-21 04:57:02.009835"]]  (0.0ms) commit 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-21 04:57:02.014205"], ["updated_at", "2018-06-21 04:57:02.014205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.015136"], ["updated_at", "2018-06-21 04:57:02.015136"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* 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-21 04:57:02.019195"], ["updated_at", "2018-06-21 04:57:02.019195"]]  (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.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.0ms) DELETE FROM "test_models" SQL (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-21 04:57:02.039068"], ["updated_at", "2018-06-21 04:57:02.039068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:57:02.041667"], ["updated_at", "2018-06-21 04:57:02.041667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 04:57:02.050787"], ["updated_at", "2018-06-21 04:57:02.050787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.058177"], ["updated_at", "2018-06-21 04:57:02.058177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.059159"], ["updated_at", "2018-06-21 04:57:02.059159"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_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-21 04:57:02.062489"], ["updated_at", "2018-06-21 04:57:02.062489"]]  (0.0ms) commit 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-21 04:57:02.063621"], ["updated_at", "2018-06-21 04:57:02.063621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:57:02.065821"], ["updated_at", "2018-06-21 04:57:02.065821"]]  (0.0ms) commit 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-21 04:57:02.066889"], ["updated_at", "2018-06-21 04:57:02.066889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "2018-06-21 04:57:02.074233"], ["updated_at", "2018-06-21 04:57:02.074233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:02.076937"], ["updated_at", "2018-06-21 04:57:02.076937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 04:57:02.079261"], ["updated_at", "2018-06-21 04:57:02.079261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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.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", "2018-06-21 04:57:02.096226"], ["updated_at", "2018-06-21 04:57:02.096226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.097141"], ["updated_at", "2018-06-21 04:57:02.097141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.097942"], ["updated_at", "2018-06-21 04:57:02.097942"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (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-21 04:57:02.100453"], ["updated_at", "2018-06-21 04:57:02.100453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:02.102493"], ["updated_at", "2018-06-21 04:57:02.102493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.105589"], ["updated_at", "2018-06-21 04:57:02.105589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.106453"], ["updated_at", "2018-06-21 04:57:02.106453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:02.108364"], ["updated_at", "2018-06-21 04:57:02.108364"]]  (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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.112199"], ["updated_at", "2018-06-21 04:57:02.112199"]]  (0.0ms) commit transaction  (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", "test_1_1"], ["created_at", "2018-06-21 04:57:02.116175"], ["updated_at", "2018-06-21 04:57:02.116175"]]  (0.0ms) commit 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-21 04:57:02.117412"], ["updated_at", "2018-06-21 04:57:02.117412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:57:02.119643"], ["updated_at", "2018-06-21 04:57:02.119643"]]  (0.0ms) commit 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-21 04:57:02.120600"], ["updated_at", "2018-06-21 04:57:02.120600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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-21 04:57:02.124252"], ["updated_at", "2018-06-21 04:57:02.124252"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.125117"], ["updated_at", "2018-06-21 04:57:02.125117"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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 "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", "2018-06-21 04:57:02.134777"], ["updated_at", "2018-06-21 04:57:02.134777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.135584"], ["updated_at", "2018-06-21 04:57:02.135584"]]  (0.0ms) commit transaction TestModel 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-21 04:57:02.137850"], ["updated_at", "2018-06-21 04:57:02.137850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_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", "2018-06-21 04:57:02.144835"], ["updated_at", "2018-06-21 04:57:02.144835"]]  (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", "2018-06-21 04:57:02.152940"], ["updated_at", "2018-06-21 04:57:02.152940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:02.156199"], ["updated_at", "2018-06-21 04:57:02.156199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.160805"], ["updated_at", "2018-06-21 04:57:02.160805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 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.0ms) commit transaction  (0.0ms) begin transaction SQL (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", "2018-06-21 04:57:02.176170"], ["updated_at", "2018-06-21 04:57:02.176170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.177272"], ["updated_at", "2018-06-21 04:57:02.177272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) 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.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", "2018-06-21 04:57:02.189313"], ["updated_at", "2018-06-21 04:57:02.189313"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.190544"], ["updated_at", "2018-06-21 04:57:02.190544"]]  (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", "2018-06-21 04:57:02.192930"], ["updated_at", "2018-06-21 04:57:02.192930"]]  (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.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.195339"], ["updated_at", "2018-06-21 04:57:02.195339"]]  (0.0ms) commit 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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.200676"], ["updated_at", "2018-06-21 04:57:02.200676"]]  (0.0ms) commit transaction  (0.0ms) 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_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-21 04:57:02.210799"], ["updated_at", "2018-06-21 04:57:02.210799"]]  (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-21 04:57:02.215580"], ["updated_at", "2018-06-21 04:57:02.215580"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.216587"], ["updated_at", "2018-06-21 04:57:02.216587"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."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-21 04:57:02.220047"], ["updated_at", "2018-06-21 04:57:02.220047"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.221035"], ["updated_at", "2018-06-21 04:57:02.221035"]]  (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-21 04:57:02.223480"], ["updated_at", "2018-06-21 04:57:02.223480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.224454"], ["updated_at", "2018-06-21 04:57:02.224454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:02.227188"], ["updated_at", "2018-06-21 04:57:02.227188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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-21 04:57:02.231324"], ["updated_at", "2018-06-21 04:57:02.231324"]]  (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-21 04:57:02.232339"], ["updated_at", "2018-06-21 04:57:02.232339"]]  (0.0ms) commit 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.4ms) 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-21 04:57:02.236229"], ["updated_at", "2018-06-21 04:57:02.236229"]]  (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-21 04:57:02.242570"], ["updated_at", "2018-06-21 04:57:02.242570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.248172"], ["updated_at", "2018-06-21 04:57:02.248172"]]  (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" ------------------------------------------------------------------------ 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.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.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_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.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.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) ------------------------------------------------ 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)  (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.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 04:57:02.289171"], ["updated_at", "2018-06-21 04:57:02.289171"]]  (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-21 04:57:02.291739"], ["updated_at", "2018-06-21 04:57:02.291739"]]  (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.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.297480"], ["updated_at", "2018-06-21 04:57:02.297480"]]  (0.0ms) commit transaction  (0.0ms) 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.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-21 04:57:02.300660"], ["updated_at", "2018-06-21 04:57:02.300660"]]  (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" SQL (0.0ms) DELETE 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-21 04:57:02.309027"], ["updated_at", "2018-06-21 04:57:02.309027"]]  (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-21 04:57:02.310038"], ["updated_at", "2018-06-21 04:57:02.310038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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.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", 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.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_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (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", 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.1ms) begin transaction  (0.0ms) rollback transaction  (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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:02.345277"], ["updated_at", "2018-06-21 04:57:02.345277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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.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.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.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 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]] -------------------------------------- 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.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) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- 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) ---------------------------------------------------- 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) ----------------------------------------------------------------------- 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.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) ------------------------------------------------------- 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) -------------------------------------------------------------------------------------------- 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.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.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) ------------------------------------------------------------------------- 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) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"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) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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: {"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.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#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 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) ----------------------------------------------------------------------------------------- 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 1 [["id", 2]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["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.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: {"params"=>{"id"=>"3"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (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"=>"4"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 4]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_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_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 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.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.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 4ms (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.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_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.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.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_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) ---------------------------------------------------------------------- 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) ----------------------------------------------------------- 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 ------------------------------------------------------  (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.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 4ms (Views: 2.9ms | 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 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_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_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 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) ------------------------------------------------------------------------------------- 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) ------------------------------------------------------------------------------------ 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) ----------------------------------------------------- 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)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.677376"], ["updated_at", "2018-06-21 04:57:06.677376"]]  (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-21 04:57:06.717539"], ["updated_at", "2018-06-21 04:57:06.717539"]]  (0.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-21 04:57:06.721398"], ["updated_at", "2018-06-21 04:57:06.721398"]]  (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.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.2ms) 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" 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.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-21 04:57:06.756702"], ["updated_at", "2018-06-21 04:57:06.756702"]]  (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.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.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.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-21 04:57:06.776604"], ["updated_at", "2018-06-21 04:57:06.776604"]]  (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-21 04:57:06.777788"], ["updated_at", "2018-06-21 04:57:06.777788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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.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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.811194"], ["updated_at", "2018-06-21 04:57:06.811194"]]  (0.0ms) commit 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.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.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.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 "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.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  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------- 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.3ms | 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.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 3ms (Views: 0.5ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- 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"=>"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) ----------------------------------------------------------------- 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.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 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 --------------------------------------- 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) ----------------------------------------------------------- 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)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.915490"], ["updated_at", "2018-06-21 04:57:06.915490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.916679"], ["updated_at", "2018-06-21 04:57:06.916679"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 04:57:06.920281"], ["updated_at", "2018-06-21 04:57:06.920281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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", "pickle"], ["created_at", "2018-06-21 04:57:06.927009"], ["updated_at", "2018-06-21 04:57:06.927009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:06.929308"], ["updated_at", "2018-06-21 04:57:06.929308"]]  (0.0ms) commit 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", "2018-06-21 04:57:06.933574"], ["updated_at", "2018-06-21 04:57:06.933574"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.934389"], ["updated_at", "2018-06-21 04:57:06.934389"]]  (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-21 04:57:06.936211"], ["updated_at", "2018-06-21 04:57:06.936211"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.937318"], ["updated_at", "2018-06-21 04:57:06.937318"]]  (0.0ms) commit transaction TestModel 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-21 04:57:06.939747"], ["updated_at", "2018-06-21 04:57:06.939747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.940749"], ["updated_at", "2018-06-21 04:57:06.940749"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.941604"], ["updated_at", "2018-06-21 04:57:06.941604"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (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-21 04:57:06.944086"], ["updated_at", "2018-06-21 04:57:06.944086"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.944886"], ["updated_at", "2018-06-21 04:57:06.944886"]]  (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-21 04:57:06.947108"], ["updated_at", "2018-06-21 04:57:06.947108"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.947890"], ["updated_at", "2018-06-21 04:57:06.947890"]]  (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", "2018-06-21 04:57:06.953410"], ["updated_at", "2018-06-21 04:57:06.953410"]]  (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.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_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-21 04:57:06.964304"], ["updated_at", "2018-06-21 04:57:06.964304"]]  (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-21 04:57:06.969452"], ["updated_at", "2018-06-21 04:57:06.969452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.970489"], ["updated_at", "2018-06-21 04:57:06.970489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:06.971747"], ["updated_at", "2018-06-21 04:57:06.971747"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) 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-21 04:57:06.975809"], ["updated_at", "2018-06-21 04:57:06.975809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 04:57:06.978779"], ["updated_at", "2018-06-21 04:57:06.978779"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 04:57:06.987175"], ["updated_at", "2018-06-21 04:57:06.987175"]]  (0.0ms) commit 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-21 04:57:06.988052"], ["updated_at", "2018-06-21 04:57:06.988052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 04:57:06.989777"], ["updated_at", "2018-06-21 04:57:06.989777"]]  (0.0ms) commit 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-21 04:57:06.990632"], ["updated_at", "2018-06-21 04:57:06.990632"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "2018-06-21 04:57:06.997221"], ["updated_at", "2018-06-21 04:57:06.997221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:06.999326"], ["updated_at", "2018-06-21 04:57:06.999326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 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.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", "2018-06-21 04:57:07.016527"], ["updated_at", "2018-06-21 04:57:07.016527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 04:57:07.018660"], ["updated_at", "2018-06-21 04:57:07.018660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 04:57:07.020876"], ["updated_at", "2018-06-21 04:57:07.020876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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-21 04:57:07.024267"], ["updated_at", "2018-06-21 04:57:07.024267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "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", "2018-06-21 04:57:07.029550"], ["updated_at", "2018-06-21 04:57:07.029550"]]  (0.0ms) commit transaction  (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.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-21 04:57:07.040087"], ["updated_at", "2018-06-21 04:57:07.040087"]]  (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.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("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-21 04:57:07.047453"], ["updated_at", "2018-06-21 04:57:07.047453"]]  (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-21 04:57:07.048607"], ["updated_at", "2018-06-21 04:57:07.048607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.049583"], ["updated_at", "2018-06-21 04:57:07.049583"]]  (0.0ms) commit transaction TestModel Load (0.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-21 04:57:07.052048"], ["updated_at", "2018-06-21 04:57:07.052048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.053373"], ["updated_at", "2018-06-21 04:57:07.053373"]]  (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)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.062051"], ["updated_at", "2018-06-21 04:57:07.062051"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.063122"], ["updated_at", "2018-06-21 04:57:07.063122"]]  (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-21 04:57:07.065940"], ["updated_at", "2018-06-21 04:57:07.065940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_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.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-21 04:57:07.073175"], ["updated_at", "2018-06-21 04:57:07.073175"]]  (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-21 04:57:07.075410"], ["updated_at", "2018-06-21 04:57:07.075410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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-21 04:57:07.079872"], ["updated_at", "2018-06-21 04:57:07.079872"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.080802"], ["updated_at", "2018-06-21 04:57:07.080802"]]  (0.0ms) commit transaction  (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", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "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.0ms) DELETE FROM "test_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 "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", "2018-06-21 04:57:07.105276"], ["updated_at", "2018-06-21 04:57:07.105276"]]  (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", "2018-06-21 04:57:07.107747"], ["updated_at", "2018-06-21 04:57:07.107747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* 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.3ms) 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-21 04:57:07.114567"], ["updated_at", "2018-06-21 04:57:07.114567"]]  (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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.119069"], ["updated_at", "2018-06-21 04:57:07.119069"]]  (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-21 04:57:07.121363"], ["updated_at", "2018-06-21 04:57:07.121363"]]  (0.0ms) commit 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" 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-21 04:57:07.126419"], ["updated_at", "2018-06-21 04:57:07.126419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.128422"], ["updated_at", "2018-06-21 04:57:07.128422"]]  (0.0ms) commit transaction  (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-21 04:57:07.131154"], ["updated_at", "2018-06-21 04:57:07.131154"]]  (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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 04:57:07.135251"], ["updated_at", "2018-06-21 04:57:07.135251"]]  (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-21 04:57:07.136670"], ["updated_at", "2018-06-21 04:57:07.136670"]]  (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-21 04:57:07.139803"], ["updated_at", "2018-06-21 04:57:07.139803"]]  (0.0ms) commit 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-21 04:57:07.141043"], ["updated_at", "2018-06-21 04:57:07.141043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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-21 04:57:07.145068"], ["updated_at", "2018-06-21 04:57:07.145068"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.145986"], ["updated_at", "2018-06-21 04:57:07.145986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_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", "2018-06-21 04:57:07.153391"], ["updated_at", "2018-06-21 04:57:07.153391"]]  (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-21 04:57:07.154916"], ["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-21 04:57:07.156146"], ["updated_at", "2018-06-21 04:57:07.156146"]]  (0.0ms) commit transaction  (0.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-21 04:57:07.157090"], ["updated_at", "2018-06-21 04:57:07.157090"]]  (0.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" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "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-21 04:57:07.164015"], ["updated_at", "2018-06-21 04:57:07.164015"]]  (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-21 04:57:07.165010"], ["updated_at", "2018-06-21 04:57:07.165010"]]  (0.0ms) commit 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-21 04:57:07.168701"], ["updated_at", "2018-06-21 04:57:07.168701"]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:57:07.176296"], ["updated_at", "2018-06-21 04:57:07.176296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.177401"], ["updated_at", "2018-06-21 04:57:07.177401"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (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-21 04:57:07.180711"], ["updated_at", "2018-06-21 04:57:07.180711"]]  (0.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.3ms) 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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.191167"], ["updated_at", "2018-06-21 04:57:07.191167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.192680"], ["updated_at", "2018-06-21 04:57:07.192680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.196065"], ["updated_at", "2018-06-21 04:57:07.196065"]]  (0.0ms) commit transaction  (0.0ms) 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-21 04:57:07.201870"], ["updated_at", "2018-06-21 04:57:07.201870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.203117"], ["updated_at", "2018-06-21 04:57:07.203117"]]  (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_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("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-21 04:57:07.213069"], ["updated_at", "2018-06-21 04:57:07.213069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 04:57:07.218989"], ["updated_at", "2018-06-21 04:57:07.218989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 04:57:07.220386"], ["updated_at", "2018-06-21 04:57:07.220386"]]  (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.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]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_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" ------------------------------------------------ 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.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.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.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.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.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.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 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.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML 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) ---------------------------------------------------------------------- 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) ------------------------------------------------------- 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 8ms (Views: 7.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.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) --------------------------------------------------------------------------------------------- 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.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.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) --------------------------------------- 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) -------------------------------------------------------------- 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_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.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) ----------------------------------------------------------------------- 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) ------------------------------------------ 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.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 ) ------------------------------------------------------------- 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 12ms (Views: 10.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.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.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.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.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) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | 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 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.2ms) 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"=>"2"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 2]] Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 29ms (Views: 0.5ms | 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.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 1 [["id", 3]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 3]] Rendered text template (0.1ms) Completed 200 OK in 3ms (Views: 0.5ms | 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: {"params"=>{"id"=>"5"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms) ----------------------------------------------------------------------- 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: 3.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.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 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 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 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 7ms (Views: 6.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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | 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) ------------------------------------------------------------ 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.3ms | 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) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.1ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | 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) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.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"} Rendered text template (0.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"} 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"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 6.1ms | 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: 3.3ms | 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 22ms (Views: 7.6ms | 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 4ms (Views: 3.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.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 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 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 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_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.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 1ms (Views: 0.6ms | 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.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.6ms | 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)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:30.828537"], ["updated_at", "2018-06-21 05:32:30.828537"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.2ms) 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.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.6ms) 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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:30.899128"], ["updated_at", "2018-06-21 05:32:30.899128"]]  (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  (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-21 05:32:30.906731"], ["updated_at", "2018-06-21 05:32:30.906731"]]  (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.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.2ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.3ms) 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.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 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.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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:30.955608"], ["updated_at", "2018-06-21 05:32:30.955608"]]  (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.2ms) DELETE FROM "test_models" SQL (0.2ms) 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.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.2ms) 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" 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-21 05:32:31.013848"], ["updated_at", "2018-06-21 05:32:31.013848"]]  (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-21 05:32:31.016800"], ["updated_at", "2018-06-21 05:32:31.016800"]]  (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.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (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  (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 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.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.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (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  (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.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" 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.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 1 [["id", 6]]  (0.1ms) begin transaction  (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-21 05:32:31.111350"], ["updated_at", "2018-06-21 05:32:31.111350"]]  (0.1ms) commit transaction SQL (0.1ms) DELETE FROM "test_models"  (0.1ms) 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", 7], ["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", 7]]  (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", 7]]  (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 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.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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (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", 7]]  (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 1 [["id", 7]]  (0.2ms) begin transaction SQL (0.1ms) 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]] ----------------------------------------------------------------- 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 19ms (Views: 16.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 4ms (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 2ms (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.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.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: 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.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 19ms (Views: 16.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.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.5ms | 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.5ms | 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.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.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.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML 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"} 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 CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} 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"}} Rendered text template (0.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"}} 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.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | 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) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------- 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 4ms (Views: 3.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.3ms | 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 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.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.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_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)  (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-21 05:32:31.465491"], ["updated_at", "2018-06-21 05:32:31.465491"]]  (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-21 05:32:31.467248"], ["updated_at", "2018-06-21 05:32:31.467248"]]  (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-21 05:32:31.470923"], ["updated_at", "2018-06-21 05:32:31.470923"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (2.7ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-21 05:32:31.472659"], ["updated_at", "2018-06-21 05:32:31.472659"]]  (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.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 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" = 4)) 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-21 05:32:31.488275"], ["updated_at", "2018-06-21 05:32:31.488275"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.494055"], ["updated_at", "2018-06-21 05:32:31.494055"]]  (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.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.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-21 05:32:31.508274"], ["updated_at", "2018-06-21 05:32:31.508274"]]  (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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.515566"], ["updated_at", "2018-06-21 05:32:31.515566"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.517912"], ["updated_at", "2018-06-21 05:32:31.517912"]]  (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-21 05:32:31.525463"], ["updated_at", "2018-06-21 05:32:31.525463"]]  (0.4ms) 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.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.531795"], ["updated_at", "2018-06-21 05:32:31.531795"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.533137"], ["updated_at", "2018-06-21 05:32:31.533137"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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 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.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-21 05:32:31.543127"], ["updated_at", "2018-06-21 05:32:31.543127"]]  (0.1ms) 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"  (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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.557262"], ["updated_at", "2018-06-21 05:32:31.557262"]]  (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-21 05:32:31.561596"], ["updated_at", "2018-06-21 05:32:31.561596"]]  (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-21 05:32:31.567115"], ["updated_at", "2018-06-21 05:32:31.567115"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.568956"], ["updated_at", "2018-06-21 05:32:31.568956"]]  (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" 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-21 05:32:31.574699"], ["updated_at", "2018-06-21 05:32:31.574699"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.576601"], ["updated_at", "2018-06-21 05:32:31.576601"]]  (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-21 05:32:31.580159"], ["updated_at", "2018-06-21 05:32:31.580159"]]  (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.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-21 05:32:31.585498"], ["updated_at", "2018-06-21 05:32:31.585498"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.586947"], ["updated_at", "2018-06-21 05:32:31.586947"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:32:31.591097"], ["updated_at", "2018-06-21 05:32:31.591097"]]  (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-21 05:32:31.592653"], ["updated_at", "2018-06-21 05:32:31.592653"]]  (0.0ms) commit 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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.596693"], ["updated_at", "2018-06-21 05:32:31.596693"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.598158"], ["updated_at", "2018-06-21 05:32:31.598158"]]  (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" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["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  (0.1ms) begin transaction SQL (0.2ms) 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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-21 05:32:31.617873"], ["updated_at", "2018-06-21 05:32:31.617873"]]  (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-21 05:32:31.621857"], ["updated_at", "2018-06-21 05:32:31.621857"]]  (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.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.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" 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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.636939"], ["updated_at", "2018-06-21 05:32:31.636939"]]  (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 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.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-21 05:32:31.645233"], ["updated_at", "2018-06-21 05:32:31.645233"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.646686"], ["updated_at", "2018-06-21 05:32:31.646686"]]  (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.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.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.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.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-21 05:32:31.667081"], ["updated_at", "2018-06-21 05:32:31.667081"]]  (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-21 05:32:31.668558"], ["updated_at", "2018-06-21 05:32:31.668558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "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-21 05:32:31.671577"], ["updated_at", "2018-06-21 05:32:31.671577"]]  (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-21 05:32:31.673359"], ["updated_at", "2018-06-21 05:32:31.673359"]]  (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.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.678729"], ["updated_at", "2018-06-21 05:32:31.678729"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.680235"], ["updated_at", "2018-06-21 05:32:31.680235"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.681599"], ["updated_at", "2018-06-21 05:32:31.681599"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:32:31.685760"], ["updated_at", "2018-06-21 05:32:31.685760"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.687178"], ["updated_at", "2018-06-21 05:32:31.687178"]]  (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 "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.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" ("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.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.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-21 05:32:31.712824"], ["updated_at", "2018-06-21 05:32:31.712824"]]  (0.1ms) 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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.720232"], ["updated_at", "2018-06-21 05:32:31.720232"]]  (0.0ms) commit 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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-21 05:32:31.728316"], ["updated_at", "2018-06-21 05:32:31.728316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.731542"], ["updated_at", "2018-06-21 05:32:31.731542"]]  (0.0ms) commit 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" SQL (0.0ms) DELETE FROM "test_models" SQL (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-21 05:32:31.738263"], ["updated_at", "2018-06-21 05:32:31.738263"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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.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-21 05:32:31.747683"], ["updated_at", "2018-06-21 05:32:31.747683"]]  (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.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.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-21 05:32:31.758615"], ["updated_at", "2018-06-21 05:32:31.758615"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.762342"], ["updated_at", "2018-06-21 05:32:31.762342"]]  (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.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-21 05:32:31.802987"], ["updated_at", "2018-06-21 05:32:31.802987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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" 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.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-21 05:32:31.816442"], ["updated_at", "2018-06-21 05:32:31.816442"]]  (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-21 05:32:31.819625"], ["updated_at", "2018-06-21 05:32:31.819625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.821096"], ["updated_at", "2018-06-21 05:32:31.821096"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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.0ms) commit transaction  (0.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-21 05:32:31.828704"], ["updated_at", "2018-06-21 05:32:31.828704"]]  (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-21 05:32:31.831729"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) 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-21 05:32:31.833484"], ["updated_at", "2018-06-21 05:32:31.833484"]]  (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-21 05:32:31.839642"], ["updated_at", "2018-06-21 05:32:31.839642"]]  (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.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-21 05:32:31.850078"], ["updated_at", "2018-06-21 05:32:31.850078"]]  (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.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.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" ("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.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_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.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", "2018-06-21 05:32:31.875386"], ["updated_at", "2018-06-21 05:32:31.875386"]]  (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.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-21 05:32:31.886223"], ["updated_at", "2018-06-21 05:32:31.886223"]]  (0.2ms) 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.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.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" = 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-21 05:32:31.907579"], ["updated_at", "2018-06-21 05:32:31.907579"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.909118"], ["updated_at", "2018-06-21 05:32:31.909118"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.910521"], ["updated_at", "2018-06-21 05:32:31.910521"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:32:31.917077"], ["updated_at", "2018-06-21 05:32:31.917077"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.918900"], ["updated_at", "2018-06-21 05:32:31.918900"]]  (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"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.924002"], ["updated_at", "2018-06-21 05:32:31.924002"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.925557"], ["updated_at", "2018-06-21 05:32:31.925557"]]  (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.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-21 05:32:31.935271"], ["updated_at", "2018-06-21 05:32:31.935271"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.936894"], ["updated_at", "2018-06-21 05:32:31.936894"]]  (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-21 05:32:31.945249"], ["updated_at", "2018-06-21 05:32:31.945249"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.946687"], ["updated_at", "2018-06-21 05:32:31.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.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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 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.3ms) 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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:32:31.973419"], ["updated_at", "2018-06-21 05:32:31.973419"]]  (0.2ms) 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-21 05:32:31.978646"], ["updated_at", "2018-06-21 05:32:31.978646"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:31.980223"], ["updated_at", "2018-06-21 05:32:31.980223"]]  (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-21 05:32:31.984058"], ["updated_at", "2018-06-21 05:32:31.984058"]]  (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-21 05:32:31.987825"], ["updated_at", "2018-06-21 05:32:31.987825"]]  (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.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-21 05:32:31.994255"], ["updated_at", "2018-06-21 05:32:31.994255"]]  (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.1ms) 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-21 05:32:32.011167"], ["updated_at", "2018-06-21 05:32:32.011167"]]  (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-21 05:32:32.016307"], ["updated_at", "2018-06-21 05:32:32.016307"]]  (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-21 05:32:32.021244"], ["updated_at", "2018-06-21 05:32:32.021244"]]  (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.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 5ms (Views: 3.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_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 4ms (Views: 3.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 2ms (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.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.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 2ms (Views: 0.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.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 7ms (Views: 5.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.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.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 4ms (Views: 3.3ms | 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_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.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.3ms | 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: 0.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.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.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"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 13ms (Views: 9.9ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (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 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 5ms (Views: 3.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 2ms (Views: 0.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 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.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.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#search as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | 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) ---------------------------------------------------- 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: 3.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) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.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 2ms (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.6ms | 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_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.4ms) 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.5ms | 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 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.4ms | ActiveRecord: 0.0ms)  (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 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.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 1 [["id", 3]] 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.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:41.777881"], ["updated_at", "2018-06-21 05:32:41.777881"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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.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.5ms) INSERT INTO "branches" ("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-21 05:32:41.817416"], ["updated_at", "2018-06-21 05:32:41.817416"]]  (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  (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-21 05:32:41.823993"], ["updated_at", "2018-06-21 05:32:41.823993"]]  (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.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.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 05:32:41.837770"], ["updated_at", "2018-06-21 05:32:41.837770"]]  (0.1ms) 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 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.2ms) 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", 6]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (1.9ms) 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.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", 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.1ms) 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.1ms) DELETE FROM "branches"  (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.1ms) begin transaction SQL (0.4ms) 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.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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:41.924345"], ["updated_at", "2018-06-21 05:32:41.924345"]]  (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.3ms) 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 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-21 05:32:41.941550"], ["updated_at", "2018-06-21 05:32:41.941550"]]  (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-21 05:32:41.943957"], ["updated_at", "2018-06-21 05:32:41.943957"]]  (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") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) 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.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" 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.3ms) 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.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", 2], ["id", 1]]  (0.1ms) 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", 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.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", 2], ["id", 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 1 [["id", 2]] 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.0ms) begin 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-21 05:32:42.042241"], ["updated_at", "2018-06-21 05:32:42.042241"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "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.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-21 05:32:42.060891"], ["updated_at", "2018-06-21 05:32:42.060891"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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.1ms) commit transaction  (0.1ms) 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.3ms) 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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.090541"], ["updated_at", "2018-06-21 05:32:42.090541"]]  (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-21 05:32:42.094766"], ["updated_at", "2018-06-21 05:32:42.094766"]]  (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.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-21 05:32:42.101539"], ["updated_at", "2018-06-21 05:32:42.101539"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.103257"], ["updated_at", "2018-06-21 05:32:42.103257"]]  (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", 2], ["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  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (2.7ms) 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.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.5ms) SELECT "test_models".* FROM "test_models" INNER JOIN "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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.144592"], ["updated_at", "2018-06-21 05:32:42.144592"]]  (0.2ms) 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.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.2ms) 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-21 05:32:42.162000"], ["updated_at", "2018-06-21 05:32:42.162000"]]  (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.5ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.167864"], ["updated_at", "2018-06-21 05:32:42.167864"]]  (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"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.176504"], ["updated_at", "2018-06-21 05:32:42.176504"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.179530"], ["updated_at", "2018-06-21 05:32:42.179530"]]  (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-21 05:32:42.183925"], ["updated_at", "2018-06-21 05:32:42.183925"]]  (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.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.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.2ms) 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" ("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.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" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (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-21 05:32:42.219664"], ["updated_at", "2018-06-21 05:32:42.219664"]]  (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.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-21 05:32:42.236485"], ["updated_at", "2018-06-21 05:32:42.236485"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.238105"], ["updated_at", "2018-06-21 05:32:42.238105"]]  (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-21 05:32:42.242800"], ["updated_at", "2018-06-21 05:32:42.242800"]]  (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-21 05:32:42.244751"], ["updated_at", "2018-06-21 05:32:42.244751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 05:32:42.248501"], ["updated_at", "2018-06-21 05:32:42.248501"]]  (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-21 05:32:42.250612"], ["updated_at", "2018-06-21 05:32:42.250612"]]  (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.6ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."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" 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-21 05:32:42.265196"], ["updated_at", "2018-06-21 05:32:42.265196"]]  (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.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_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" ("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.5ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.286789"], ["updated_at", "2018-06-21 05:32:42.286789"]]  (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-21 05:32:42.295898"], ["updated_at", "2018-06-21 05:32:42.295898"]]  (0.1ms) 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 TestModel Load (0.1ms) SELECT "test_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-21 05:32:42.303176"], ["updated_at", "2018-06-21 05:32:42.303176"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.305549"], ["updated_at", "2018-06-21 05:32:42.305549"]]  (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.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.310654"], ["updated_at", "2018-06-21 05:32:42.310654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.312330"], ["updated_at", "2018-06-21 05:32:42.312330"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.314095"], ["updated_at", "2018-06-21 05:32:42.314095"]]  (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-21 05:32:42.322777"], ["updated_at", "2018-06-21 05:32:42.322777"]]  (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-21 05:32:42.328217"], ["updated_at", "2018-06-21 05:32:42.328217"]]  (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.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.336787"], ["updated_at", "2018-06-21 05:32:42.336787"]]  (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-21 05:32:42.339857"], ["updated_at", "2018-06-21 05:32:42.339857"]]  (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 1 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" SQL (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-21 05:32:42.346855"], ["updated_at", "2018-06-21 05:32:42.346855"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.349761"], ["updated_at", "2018-06-21 05:32:42.349761"]]  (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-21 05:32:42.355409"], ["updated_at", "2018-06-21 05:32:42.355409"]]  (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.4ms) 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-21 05:32:42.367638"], ["updated_at", "2018-06-21 05:32:42.367638"]]  (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_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-21 05:32:42.372969"], ["updated_at", "2018-06-21 05:32:42.372969"]]  (0.1ms) commit transaction  (0.2ms) 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.1ms) 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]] 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.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 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (1.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-21 05:32:42.399051"], ["updated_at", "2018-06-21 05:32:42.399051"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.404300"], ["updated_at", "2018-06-21 05:32:42.404300"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.406349"], ["updated_at", "2018-06-21 05:32:42.406349"]]  (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.2ms) 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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.419290"], ["updated_at", "2018-06-21 05:32:42.419290"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.421278"], ["updated_at", "2018-06-21 05:32:42.421278"]]  (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.4ms) 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)) 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.3ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 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-21 05:32:42.440332"], ["updated_at", "2018-06-21 05:32:42.440332"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.442207"], ["updated_at", "2018-06-21 05:32:42.442207"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:32:42.460391"], ["updated_at", "2018-06-21 05:32:42.460391"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.463286"], ["updated_at", "2018-06-21 05:32:42.463286"]]  (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.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.6ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.3ms) 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 TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_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-21 05:32:42.524895"], ["updated_at", "2018-06-21 05:32:42.524895"]]  (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-21 05:32:42.528731"], ["updated_at", "2018-06-21 05:32:42.528731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.530341"], ["updated_at", "2018-06-21 05:32:42.530341"]]  (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 "companies" DEFAULT VALUES  (0.1ms) 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.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.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", "2018-06-21 05:32:42.578031"], ["updated_at", "2018-06-21 05:32:42.578031"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.579840"], ["updated_at", "2018-06-21 05:32:42.579840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.3ms) 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 "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", "2018-06-21 05:32:42.591957"], ["updated_at", "2018-06-21 05:32:42.591957"]]  (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-21 05:32:42.594223"], ["id", 1]]  (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", "2018-06-21 05:32:42.596320"], ["updated_at", "2018-06-21 05:32:42.596320"]]  (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-21 05:32:42.600331"], ["updated_at", "2018-06-21 05:32:42.600331"]]  (0.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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.628480"], ["updated_at", "2018-06-21 05:32:42.628480"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.630046"], ["updated_at", "2018-06-21 05:32:42.630046"]]  (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" 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-21 05:32:42.638891"], ["updated_at", "2018-06-21 05:32:42.638891"]]  (0.0ms) commit transaction  (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_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.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-21 05:32:42.650140"], ["updated_at", "2018-06-21 05:32:42.650140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) 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.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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:32:42.660515"], ["updated_at", "2018-06-21 05:32:42.660515"]]  (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-21 05:32:42.663191"], ["updated_at", "2018-06-21 05:32:42.663191"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.665610"], ["updated_at", "2018-06-21 05:32:42.665610"]]  (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-21 05:32:42.669619"], ["updated_at", "2018-06-21 05:32:42.669619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.671346"], ["updated_at", "2018-06-21 05:32:42.671346"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:32:42.676205"], ["updated_at", "2018-06-21 05:32:42.676205"]]  (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.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-21 05:32:42.685606"], ["updated_at", "2018-06-21 05:32:42.685606"]]  (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.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.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-21 05:32:42.696168"], ["updated_at", "2018-06-21 05:32:42.696168"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.697833"], ["updated_at", "2018-06-21 05:32:42.697833"]]  (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-21 05:32:42.701489"], ["updated_at", "2018-06-21 05:32:42.701489"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.703363"], ["updated_at", "2018-06-21 05:32:42.703363"]]  (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.3ms) 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.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.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-21 05:32:42.732148"], ["updated_at", "2018-06-21 05:32:42.732148"]]  (0.0ms) commit transaction  (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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:42.736507"], ["updated_at", "2018-06-21 05:32:42.736507"]]  (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-21 05:32:42.780664"], ["updated_at", "2018-06-21 05:32:42.780664"]]  (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-21 05:32:42.788872"], ["updated_at", "2018-06-21 05:32:42.788872"]]  (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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 05:32:42.796480"], ["updated_at", "2018-06-21 05:32:42.796480"]]  (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-21 05:32:42.798179"], ["updated_at", "2018-06-21 05:32:42.798179"]]  (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-21 05:32:42.801532"], ["updated_at", "2018-06-21 05:32:42.801532"]]  (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-21 05:32:42.803450"], ["updated_at", "2018-06-21 05:32:42.803450"]]  (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.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-21 05:32:42.817951"], ["updated_at", "2018-06-21 05:32:42.817951"]]  (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.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-21 05:32:42.826774"], ["updated_at", "2018-06-21 05:32:42.826774"]]  (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.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 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.2ms) 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"} Rendered text template (0.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.3ms | 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.3ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.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 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 5ms (Views: 3.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.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.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 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.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.2ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.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"} 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 NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} 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"} 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 Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.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.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) ------------------------------------------------------------ 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.3ms | 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) ------------------------------------------------------------------------- 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 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.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 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.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 3ms (Views: 3.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_permit ----------------------- 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) ------------------------- 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_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 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.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 4ms (Views: 3.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 3ms (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.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 2ms (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 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 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 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.4ms | 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_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_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.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 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_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create 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 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 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 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 4ms (Views: 3.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 1ms (Views: 0.7ms | 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 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------- 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 13ms (Views: 12.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.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.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 (10.8ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} 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"} 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 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.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: 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.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"params"=>{"id"=>"1"}} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (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.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.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 2], ["id", 3]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 0.6ms | 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.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"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 4]] Rendered text template (0.0ms) Completed 200 OK 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.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.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.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 ) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) 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"=>"1"} User Load (0.2ms) 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 23ms (Views: 4.7ms | 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.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__does_not_have_access -----------------------------------------------------------------------------------------  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] User Exists (0.2ms) 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 6ms (Views: 0.8ms | ActiveRecord: 0.6ms) -------------------------------------------------------------------------------------------- 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: 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.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.6ms | 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.5ms | 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 3ms (Views: 1.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) --------------------------------------------------------------------------------------------- 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.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) ------------------------------------------ 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: 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.5ms | 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: 1.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) -------------------------------------------------------------------- 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.8ms | 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.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.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.5ms | 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 3ms (Views: 1.0ms | 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) ------------------------------------------------------------------------------------- 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 4ms (Views: 1.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) --------------------------------------------------------------------------------- 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.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.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) -------------------------------------- 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.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | 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) ---------------------------------------------------- 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) ---------------------------------------------- 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) ------------------------------------------- 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.7ms | 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)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:52.965845"], ["updated_at", "2018-06-21 05:32:52.965845"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:52.968412"], ["updated_at", "2018-06-21 05:32:52.968412"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:52.970737"], ["updated_at", "2018-06-21 05:32:52.970737"]]  (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-21 05:32:52.981883"], ["updated_at", "2018-06-21 05:32:52.981883"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:52.983920"], ["updated_at", "2018-06-21 05:32:52.983920"]]  (0.1ms) 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 "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:52.990291"], ["updated_at", "2018-06-21 05:32:52.990291"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:52.992222"], ["updated_at", "2018-06-21 05:32:52.992222"]]  (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", 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.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" 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-21 05:32:53.102502"], ["updated_at", "2018-06-21 05:32:53.102502"]]  (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 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-21 05:32:53.111900"], ["updated_at", "2018-06-21 05:32:53.111900"]]  (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-21 05:32:53.113917"], ["updated_at", "2018-06-21 05:32:53.113917"]]  (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", "2018-06-21 05:32:53.120209"], ["updated_at", "2018-06-21 05:32:53.120209"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.122108"], ["updated_at", "2018-06-21 05:32:53.122108"]]  (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-21 05:32:53.127093"], ["updated_at", "2018-06-21 05:32:53.127093"]]  (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-21 05:32:53.129767"], ["updated_at", "2018-06-21 05:32:53.129767"]]  (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-21 05:32:53.134389"], ["updated_at", "2018-06-21 05:32:53.134389"]]  (0.0ms) commit transaction  (0.5ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-21 05:32:53.139498"], ["updated_at", "2018-06-21 05:32:53.139498"]]  (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.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-21 05:32:53.147886"], ["updated_at", "2018-06-21 05:32:53.147886"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.149766"], ["updated_at", "2018-06-21 05:32:53.149766"]]  (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.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:32:53.156026"], ["updated_at", "2018-06-21 05:32:53.156026"]]  (0.3ms) 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-21 05:32:53.158916"], ["updated_at", "2018-06-21 05:32:53.158916"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.160995"], ["updated_at", "2018-06-21 05:32:53.160995"]]  (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-21 05:32:53.166020"], ["updated_at", "2018-06-21 05:32:53.166020"]]  (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-21 05:32:53.172342"], ["updated_at", "2018-06-21 05:32:53.172342"]]  (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-21 05:32:53.177646"], ["updated_at", "2018-06-21 05:32:53.177646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.4ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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_attrs" DEFAULT VALUES  (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)) SQL (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-21 05:32:53.198989"], ["updated_at", "2018-06-21 05:32:53.198989"]]  (0.1ms) 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.2ms) 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-21 05:32:53.209931"], ["updated_at", "2018-06-21 05:32:53.209931"]]  (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-21 05:32:53.212302"], ["updated_at", "2018-06-21 05:32:53.212302"]]  (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-21 05:32:53.216137"], ["updated_at", "2018-06-21 05:32:53.216137"]]  (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-21 05:32:53.218203"], ["updated_at", "2018-06-21 05:32:53.218203"]]  (0.0ms) 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.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.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.2ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.240885"], ["updated_at", "2018-06-21 05:32:53.240885"]]  (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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.252074"], ["updated_at", "2018-06-21 05:32:53.252074"]]  (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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.259536"], ["updated_at", "2018-06-21 05:32:53.259536"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) 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.3ms) 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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.275887"], ["updated_at", "2018-06-21 05:32:53.275887"]]  (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_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.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-21 05:32:53.301982"], ["updated_at", "2018-06-21 05:32:53.301982"]]  (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.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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-21 05:32:53.327113"], ["updated_at", "2018-06-21 05:32:53.327113"]]  (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-21 05:32:53.333614"], ["updated_at", "2018-06-21 05:32:53.333614"]]  (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.2ms) DELETE FROM "test_attrs"  (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-21 05:32:53.352486"], ["updated_at", "2018-06-21 05:32:53.352486"]]  (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.4ms) 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.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", "2018-06-21 05:32:53.391294"], ["updated_at", "2018-06-21 05:32:53.391294"]]  (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.1ms) INSERT INTO "test_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-21 05:32:53.403476"], ["updated_at", "2018-06-21 05:32:53.403476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.405652"], ["updated_at", "2018-06-21 05:32:53.405652"]]  (0.0ms) commit transaction TestModel 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.0ms) commit transaction TestAttr Load (0.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-21 05:32:53.413562"], ["updated_at", "2018-06-21 05:32:53.413562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.415451"], ["updated_at", "2018-06-21 05:32:53.415451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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-21 05:32:53.421318"], ["updated_at", "2018-06-21 05:32:53.421318"]]  (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_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-21 05:32:53.431384"], ["updated_at", "2018-06-21 05:32:53.431384"]]  (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 TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.445327"], ["updated_at", "2018-06-21 05:32:53.445327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.447115"], ["updated_at", "2018-06-21 05:32:53.447115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.449438"], ["updated_at", "2018-06-21 05:32:53.449438"]]  (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.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.457043"], ["updated_at", "2018-06-21 05:32:53.457043"]]  (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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.476743"], ["updated_at", "2018-06-21 05:32:53.476743"]]  (0.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.4ms) 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.1ms) 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.3ms) 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.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.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.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.1ms) DELETE FROM "companies" SQL (0.2ms) 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-21 05:32:53.528874"], ["updated_at", "2018-06-21 05:32:53.528874"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.531120"], ["updated_at", "2018-06-21 05:32:53.531120"]]  (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.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-21 05:32:53.542767"], ["updated_at", "2018-06-21 05:32:53.542767"]]  (0.3ms) 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.0ms) begin transaction SQL (0.4ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.568651"], ["updated_at", "2018-06-21 05:32:53.568651"]]  (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 (4.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"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.593167"], ["updated_at", "2018-06-21 05:32:53.593167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.594974"], ["updated_at", "2018-06-21 05:32:53.594974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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-21 05:32:53.600348"], ["updated_at", "2018-06-21 05:32:53.600348"]]  (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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.608055"], ["updated_at", "2018-06-21 05:32:53.608055"]]  (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-21 05:32:53.613251"], ["updated_at", "2018-06-21 05:32:53.613251"]]  (0.0ms) 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.5ms) 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_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.3ms) 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-21 05:32:53.641897"], ["updated_at", "2018-06-21 05:32:53.641897"]]  (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.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-21 05:32:53.651846"], ["updated_at", "2018-06-21 05:32:53.651846"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.655116"], ["updated_at", "2018-06-21 05:32:53.655116"]]  (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", "2018-06-21 05:32:53.659428"], ["updated_at", "2018-06-21 05:32:53.659428"]]  (0.1ms) commit transaction  (0.0ms) 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"  (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.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-21 05:32:53.676941"], ["updated_at", "2018-06-21 05:32:53.676941"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.678743"], ["updated_at", "2018-06-21 05:32:53.678743"]]  (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.2ms) 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", "2018-06-21 05:32:53.694638"], ["updated_at", "2018-06-21 05:32:53.694638"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.696540"], ["updated_at", "2018-06-21 05:32:53.696540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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.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.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.2ms) 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-21 05:32:53.729120"], ["updated_at", "2018-06-21 05:32:53.729120"]]  (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-21 05:32:53.731881"], ["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-21 05:32:53.735493"], ["updated_at", "2018-06-21 05:32:53.735493"]]  (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-21 05:32:53.737339"], ["updated_at", "2018-06-21 05:32:53.737339"]]  (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.1ms) begin transaction SQL (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.748573"], ["updated_at", "2018-06-21 05:32:53.748573"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.756149"], ["updated_at", "2018-06-21 05:32:53.756149"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) 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.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.783312"], ["updated_at", "2018-06-21 05:32:53.783312"]]  (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 "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.1ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) 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.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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-21 05:32:53.814114"], ["updated_at", "2018-06-21 05:32:53.814114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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-21 05:32:53.819690"], ["updated_at", "2018-06-21 05:32:53.819690"]]  (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]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_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-21 05:32:53.841398"], ["updated_at", "2018-06-21 05:32:53.841398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.843152"], ["updated_at", "2018-06-21 05:32:53.843152"]]  (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", "2018-06-21 05:32:53.849103"], ["updated_at", "2018-06-21 05:32:53.849103"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:53.851070"], ["updated_at", "2018-06-21 05:32:53.851070"]]  (0.3ms) commit transaction TestModel Load (1.1ms) SELECT "test_models".* FROM "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" ------------------------------------------------------------ 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.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.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 7ms (Views: 1.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.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: 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.1ms) 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 2ms (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 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) 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.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)  (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.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.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.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.1ms) begin transaction SQL (0.2ms) 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" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (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", 7], ["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", 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.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", 7], ["id", 1], ["LIMIT", 1]] SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (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", 7], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 05:32:54.027319"], ["updated_at", "2018-06-21 05:32:54.027319"]]  (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-21 05:32:54.055769"], ["updated_at", "2018-06-21 05:32:54.055769"]]  (0.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.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-21 05:32:54.068331"], ["updated_at", "2018-06-21 05:32:54.068331"]]  (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.2ms) 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-21 05:32:54.075723"], ["updated_at", "2018-06-21 05:32:54.075723"]]  (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.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.4ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (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 "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.2ms) 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.2ms) 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.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.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.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.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-21 05:32:54.123525"], ["updated_at", "2018-06-21 05:32:54.123525"]]  (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-21 05:32:54.125363"], ["updated_at", "2018-06-21 05:32:54.125363"]]  (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") 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.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.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 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.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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:32:54.187739"], ["updated_at", "2018-06-21 05:32:54.187739"]]  (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.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  (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 4ms (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.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 10ms (Views: 9.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 5ms (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.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_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_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 7ms (Views: 2.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.1ms) Completed 200 OK in 3ms (Views: 1.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.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) ----------------------------------------------------------------- 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 ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (1.6ms) Completed 200 OK in 12ms (Views: 11.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_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_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_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) ----------------------------------------------------------- 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 --------------------------------------- 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 4ms (Views: 3.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 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_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: 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.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 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.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) ----------------------------------------------------- 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 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.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 6ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (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.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"} Rendered text template (0.0ms) Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 10ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.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"} 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 Rendered text template (0.7ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML 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"}} 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.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | 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.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) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 7.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 34ms (Views: 10.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 5ms (Views: 3.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 2ms (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.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 2ms (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.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: 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.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 4ms (Views: 3.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.5ms | 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.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.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.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.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) ------------------------------------------------------------ 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.3ms | 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) ------------------------------------------------------- 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 6ms (Views: 4.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.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 5ms (Views: 4.5ms | 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.3ms | 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 --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.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 2ms (Views: 0.5ms | 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.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 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 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 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.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 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 4ms (Views: 3.7ms | 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_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 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.5ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.188296"], ["updated_at", "2018-06-21 05:33:13.188296"]]  (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)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "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-21 05:33:13.246108"], ["updated_at", "2018-06-21 05:33:13.246108"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.247844"], ["updated_at", "2018-06-21 05:33:13.247844"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.264045"], ["updated_at", "2018-06-21 05:33:13.264045"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.265708"], ["updated_at", "2018-06-21 05:33:13.265708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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]] TestModel Load (0.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-21 05:33:13.277572"], ["updated_at", "2018-06-21 05:33:13.277572"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.279297"], ["updated_at", "2018-06-21 05:33:13.279297"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.281103"], ["updated_at", "2018-06-21 05:33:13.281103"]]  (0.1ms) commit transaction TestModel Load (0.1ms) 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.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-21 05:33:13.288612"], ["updated_at", "2018-06-21 05:33:13.288612"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (5.9ms) 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-21 05:33:13.307744"], ["updated_at", "2018-06-21 05:33:13.307744"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.309712"], ["updated_at", "2018-06-21 05:33:13.309712"]]  (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.2ms) 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.4ms) commit transaction 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" 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.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-21 05:33:13.334852"], ["updated_at", "2018-06-21 05:33:13.334852"]]  (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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.343989"], ["updated_at", "2018-06-21 05:33:13.343989"]]  (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" 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" 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-21 05:33:13.355381"], ["updated_at", "2018-06-21 05:33:13.355381"]]  (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" ("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-21 05:33:13.372549"], ["updated_at", "2018-06-21 05:33:13.372549"]]  (0.1ms) 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.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.2ms) DELETE FROM "test_models" SQL (0.2ms) 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-21 05:33:13.388144"], ["updated_at", "2018-06-21 05:33:13.388144"]]  (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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.393344"], ["updated_at", "2018-06-21 05:33:13.393344"]]  (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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.403517"], ["updated_at", "2018-06-21 05:33:13.403517"]]  (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.3ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.417559"], ["updated_at", "2018-06-21 05:33:13.417559"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.420212"], ["updated_at", "2018-06-21 05:33:13.420212"]]  (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" 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.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.3ms) 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.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" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.2ms) 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.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-21 05:33:13.477100"], ["updated_at", "2018-06-21 05:33:13.477100"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.479000"], ["updated_at", "2018-06-21 05:33:13.479000"]]  (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-21 05:33:13.484666"], ["updated_at", "2018-06-21 05:33:13.484666"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.486702"], ["updated_at", "2018-06-21 05:33:13.486702"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.488420"], ["updated_at", "2018-06-21 05:33:13.488420"]]  (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 TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.498660"], ["updated_at", "2018-06-21 05:33:13.498660"]]  (0.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.500478"], ["updated_at", "2018-06-21 05:33:13.500478"]]  (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_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-21 05:33:13.510094"], ["updated_at", "2018-06-21 05:33:13.510094"]]  (0.2ms) 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.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"  (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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.534092"], ["updated_at", "2018-06-21 05:33:13.534092"]]  (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-21 05:33:13.535852"], ["updated_at", "2018-06-21 05:33:13.535852"]]  (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.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-21 05:33:13.542166"], ["updated_at", "2018-06-21 05:33:13.542166"]]  (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-21 05:33:13.544139"], ["updated_at", "2018-06-21 05:33:13.544139"]]  (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-21 05:33:13.550267"], ["updated_at", "2018-06-21 05:33:13.550267"]]  (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-21 05:33:13.552897"], ["updated_at", "2018-06-21 05:33:13.552897"]]  (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 (6.6ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (18.8ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.598127"], ["updated_at", "2018-06-21 05:33:13.598127"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.600354"], ["updated_at", "2018-06-21 05:33:13.600354"]]  (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-21 05:33:13.605188"], ["updated_at", "2018-06-21 05:33:13.605188"]]  (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" 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-21 05:33:13.613324"], ["updated_at", "2018-06-21 05:33:13.613324"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.615531"], ["updated_at", "2018-06-21 05:33:13.615531"]]  (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.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-21 05:33:13.628589"], ["updated_at", "2018-06-21 05:33:13.628589"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.630480"], ["updated_at", "2018-06-21 05:33:13.630480"]]  (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.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.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.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-21 05:33:13.651620"], ["updated_at", "2018-06-21 05:33:13.651620"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) 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-21 05:33:13.658159"], ["updated_at", "2018-06-21 05:33:13.658159"]]  (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 "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-21 05:33:13.675367"], ["updated_at", "2018-06-21 05:33:13.675367"]]  (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.1ms) 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.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.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_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-21 05:33:13.711105"], ["updated_at", "2018-06-21 05:33:13.711105"]]  (0.0ms) commit 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 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" 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-21 05:33:13.722136"], ["updated_at", "2018-06-21 05:33:13.722136"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.724235"], ["updated_at", "2018-06-21 05:33:13.724235"]]  (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-21 05:33:13.732238"], ["updated_at", "2018-06-21 05:33:13.732238"]]  (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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-21 05:33:13.740654"], ["updated_at", "2018-06-21 05:33:13.740654"]]  (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-21 05:33:13.745458"], ["updated_at", "2018-06-21 05:33:13.745458"]]  (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.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-21 05:33:13.755129"], ["updated_at", "2018-06-21 05:33:13.755129"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.757351"], ["updated_at", "2018-06-21 05:33:13.757351"]]  (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.0ms) 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", 1], ["content", "Content"], ["created_at", "2018-06-21 05:33:13.764698"], ["updated_at", "2018-06-21 05:33:13.764698"]]  (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-21 05:33:13.769015"], ["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-21 05:33:13.772053"], ["updated_at", "2018-06-21 05:33:13.772053"]]  (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-21 05:33:13.774128"], ["updated_at", "2018-06-21 05:33:13.774128"]]  (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.2ms) 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.2ms) 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.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.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-21 05:33:13.819666"], ["updated_at", "2018-06-21 05:33:13.819666"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.821816"], ["updated_at", "2018-06-21 05:33:13.821816"]]  (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" ("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.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.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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-21 05:33:13.844310"], ["updated_at", "2018-06-21 05:33:13.844310"]]  (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-21 05:33:13.848485"], ["updated_at", "2018-06-21 05:33:13.848485"]]  (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" ("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]] 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.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_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.4ms) 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-21 05:33:13.872971"], ["updated_at", "2018-06-21 05:33:13.872971"]]  (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.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-21 05:33:13.880772"], ["updated_at", "2018-06-21 05:33:13.880772"]]  (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 (3.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.4ms) 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-21 05:33:13.936406"], ["updated_at", "2018-06-21 05:33:13.936406"]]  (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-21 05:33:13.941336"], ["updated_at", "2018-06-21 05:33:13.941336"]]  (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.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-21 05:33:13.947747"], ["updated_at", "2018-06-21 05:33:13.947747"]]  (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-21 05:33:13.951099"], ["updated_at", "2018-06-21 05:33:13.951099"]]  (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-21 05:33:13.954952"], ["updated_at", "2018-06-21 05:33:13.954952"]]  (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.4ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:33:13.962182"], ["updated_at", "2018-06-21 05:33:13.962182"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:33:13.965406"], ["updated_at", "2018-06-21 05:33:13.965406"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.967296"], ["updated_at", "2018-06-21 05:33:13.967296"]]  (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.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-21 05:33:13.975363"], ["updated_at", "2018-06-21 05:33:13.975363"]]  (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-21 05:33:13.977073"], ["updated_at", "2018-06-21 05:33:13.977073"]]  (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", "2018-06-21 05:33:13.980278"], ["updated_at", "2018-06-21 05:33:13.980278"]]  (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-21 05:33:13.981531"], ["updated_at", "2018-06-21 05:33:13.981531"]]  (0.0ms) 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 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 "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", "2018-06-21 05:33:13.998554"], ["updated_at", "2018-06-21 05:33:13.998554"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:13.999972"], ["updated_at", "2018-06-21 05:33:13.999972"]]  (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-21 05:33:14.003780"], ["updated_at", "2018-06-21 05:33:14.003780"]]  (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.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-21 05:33:14.011920"], ["updated_at", "2018-06-21 05:33:14.011920"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:14.013579"], ["updated_at", "2018-06-21 05:33:14.013579"]]  (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" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------------------------------------- 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 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML 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.1ms) 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.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) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.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.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.3ms | 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.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.3ms | 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) --------------------------------------------------------------------------------------------- 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.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.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.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_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.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.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.3ms | 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.3ms | 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 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 4ms (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.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 1 [["id", 2]] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 2], ["id", 2]] Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.4ms) ----------------------------------------------------------------------------------------- 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.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 1 [["id", 5]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 5]] 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.2ms) ----------------------------------------------------------------------------------------- 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: 3.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.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.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 3ms (Views: 0.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 2ms (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 2ms (Views: 0.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 2ms (Views: 0.5ms | 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)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 05:33:14.176425"], ["updated_at", "2018-06-21 05:33:14.176425"]]  (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.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.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_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.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", 4]]  (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_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.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.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 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:14.213094"], ["updated_at", "2018-06-21 05:33:14.213094"]]  (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" 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.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", 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.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.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", 6], ["id", 1]] SQL (0.4ms) 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 1 [["id", 6]]  (0.2ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:14.247682"], ["updated_at", "2018-06-21 05:33:14.247682"]]  (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.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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" ("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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:14.262254"], ["updated_at", "2018-06-21 05:33:14.262254"]]  (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  (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-21 05:33:14.269422"], ["updated_at", "2018-06-21 05:33:14.269422"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("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" = ? [["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.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.2ms) 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-21 05:33:14.296068"], ["updated_at", "2018-06-21 05:33:14.296068"]]  (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-21 05:33:14.297873"], ["updated_at", "2018-06-21 05:33:14.297873"]]  (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.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 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.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.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.2ms) 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", 7]] TestAttr Load (0.2ms) 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.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["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.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.1ms) 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", 9], ["id", 2]]  (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.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", 9]] SQL (0.1ms) DELETE FROM "test_attrs" SQL (0.1ms) DELETE FROM "test_model_security_models" SQL (0.1ms) DELETE FROM "branches" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 5.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 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.9ms | 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.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_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- 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 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.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 5ms (Views: 4.1ms | 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.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER 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 Rendered text template (0.1ms) Completed 200 OK in 20ms (Views: 14.0ms | 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.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 17ms (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) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.1ms) Completed 200 OK in 12ms (Views: 11.5ms | 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.5ms | 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.3ms | 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 1ms (Views: 0.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.1ms) Completed 200 OK in 1ms (Views: 0.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 2ms (Views: 0.5ms | 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_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.1ms) Completed 200 OK in 3ms (Views: 0.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 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) ----------------------------------------------------- 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) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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"} Rendered text template (0.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"} Rendered text template (0.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"} 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 Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.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_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 ------------------------- 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 ----------------------- 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.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML 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 Rendered text 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 8ms (Views: 6.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.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) ----------------------------------------------------------------------------------------- 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: 3.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.1ms) 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 7ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} 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"} 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"} 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"} 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.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 12ms (Views: 10.7ms | ActiveRecord: 0.0ms)  (0.1ms) 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  (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", 2], ["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", 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.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" 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.2ms) 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.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) 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_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 1 [["id", 3]] TestAttr Load (0.2ms) 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.3ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 05:33:24.946099"], ["updated_at", "2018-06-21 05:33:24.946099"]]  (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-21 05:33:24.955024"], ["updated_at", "2018-06-21 05:33:24.955024"]]  (0.3ms) 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.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_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.4ms) 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-21 05:33:24.972172"], ["updated_at", "2018-06-21 05:33:24.972172"]]  (7.7ms) commit transaction  (0.4ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.4ms) 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-21 05:33:25.003035"], ["updated_at", "2018-06-21 05:33:25.003035"]]  (0.5ms) 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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction  (1.3ms) 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 1 [["id", 5]]  (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-21 05:33:25.035594"], ["updated_at", "2018-06-21 05:33:25.035594"]]  (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-21 05:33:25.038507"], ["updated_at", "2018-06-21 05:33:25.038507"]]  (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") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) 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.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" 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.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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.131673"], ["updated_at", "2018-06-21 05:33:25.131673"]]  (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 TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.3ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction  (0.2ms) 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" 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", 1]]  (0.4ms) 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", 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 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.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.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.2ms) commit transaction  (0.2ms) 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", 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]] --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 4.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 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 2ms (Views: 0.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.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 15ms (Views: 0.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.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) 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.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 12ms (Views: 11.8ms | 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.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden 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"} 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#show as HTML Parameters: {"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 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms | 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.3ms | 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.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 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.1ms) 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 2ms (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 6ms (Views: 5.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) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#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 14ms (Views: 11.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 2ms (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 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 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 2ms (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: 0.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 2ms (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.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"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 1]] Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.4ms) --------------------------------------------------------------------------------------------------- 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- 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.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 1 [["id", 5]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 5]] 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) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 6.0ms | 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 5ms (Views: 3.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.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: 0.5ms | 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_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 10ms (Views: 0.9ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (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 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.1ms) 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 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.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.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) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 11ms (Views: 8.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.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 1ms (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"}} 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 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.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) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.1ms) Completed 200 OK in 11ms (Views: 10.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 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.1ms) Completed 200 OK in 2ms (Views: 0.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 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-21 05:33:25.823716"], ["updated_at", "2018-06-21 05:33:25.823716"]]  (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_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-21 05:33:25.837316"], ["updated_at", "2018-06-21 05:33:25.837316"]]  (0.0ms) 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" 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.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-21 05:33:25.851557"], ["updated_at", "2018-06-21 05:33:25.851557"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.853712"], ["updated_at", "2018-06-21 05:33:25.853712"]]  (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" 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-21 05:33:25.863717"], ["updated_at", "2018-06-21 05:33:25.863717"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.865627"], ["updated_at", "2018-06-21 05:33:25.865627"]]  (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-21 05:33:25.869671"], ["updated_at", "2018-06-21 05:33:25.869671"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.871381"], ["updated_at", "2018-06-21 05:33:25.871381"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.873009"], ["updated_at", "2018-06-21 05:33:25.873009"]]  (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-21 05:33:25.877425"], ["updated_at", "2018-06-21 05:33:25.877425"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.887313"], ["updated_at", "2018-06-21 05:33:25.887313"]]  (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-21 05:33:25.892584"], ["updated_at", "2018-06-21 05:33:25.892584"]]  (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-21 05:33:25.894175"], ["updated_at", "2018-06-21 05:33:25.894175"]]  (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.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-21 05:33:25.901280"], ["updated_at", "2018-06-21 05:33:25.901280"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.902886"], ["updated_at", "2018-06-21 05:33:25.902886"]]  (0.0ms) commit transaction  (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]]  (6.6ms) commit transaction  (3.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_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.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.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.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-21 05:33:25.954158"], ["updated_at", "2018-06-21 05:33:25.954158"]]  (0.2ms) commit transaction  (0.1ms) 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_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) 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.2ms) 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-21 05:33:25.979697"], ["updated_at", "2018-06-21 05:33:25.979697"]]  (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-21 05:33:25.982041"], ["updated_at", "2018-06-21 05:33:25.982041"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.983529"], ["updated_at", "2018-06-21 05:33:25.983529"]]  (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.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:25.987265"], ["updated_at", "2018-06-21 05:33:25.987265"]]  (0.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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-21 05:33:26.002352"], ["updated_at", "2018-06-21 05:33:26.002352"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.004473"], ["updated_at", "2018-06-21 05:33:26.004473"]]  (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-21 05:33:26.011889"], ["updated_at", "2018-06-21 05:33:26.011889"]]  (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-21 05:33:26.015949"], ["updated_at", "2018-06-21 05:33:26.015949"]]  (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 "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-21 05:33:26.025532"], ["updated_at", "2018-06-21 05:33:26.025532"]]  (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-21 05:33:26.028828"], ["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-21 05:33:26.030533"], ["updated_at", "2018-06-21 05:33:26.030533"]]  (0.0ms) commit transaction  (0.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-21 05:33:26.032101"], ["updated_at", "2018-06-21 05:33:26.032101"]]  (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.4ms) 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-21 05:33:26.043128"], ["updated_at", "2018-06-21 05:33:26.043128"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.044833"], ["updated_at", "2018-06-21 05:33:26.044833"]]  (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-21 05:33:26.048813"], ["updated_at", "2018-06-21 05:33:26.048813"]]  (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" 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-21 05:33:26.055053"], ["updated_at", "2018-06-21 05:33:26.055053"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.056638"], ["updated_at", "2018-06-21 05:33:26.056638"]]  (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.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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.066196"], ["updated_at", "2018-06-21 05:33:26.066196"]]  (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.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-21 05:33:26.087742"], ["updated_at", "2018-06-21 05:33:26.087742"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.5ms) commit 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", "pickle"], ["created_at", "2018-06-21 05:33:26.097044"], ["updated_at", "2018-06-21 05:33:26.097044"]]  (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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.102712"], ["updated_at", "2018-06-21 05:33:26.102712"]]  (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.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.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 (1.3ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (1.4ms) 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-21 05:33:26.126851"], ["updated_at", "2018-06-21 05:33:26.126851"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.128371"], ["updated_at", "2018-06-21 05:33:26.128371"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.129771"], ["updated_at", "2018-06-21 05:33:26.129771"]]  (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-21 05:33:26.134471"], ["updated_at", "2018-06-21 05:33:26.134471"]]  (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-21 05:33:26.137772"], ["updated_at", "2018-06-21 05:33:26.137772"]]  (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-21 05:33:26.142189"], ["updated_at", "2018-06-21 05:33:26.142189"]]  (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.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-21 05:33:26.148171"], ["updated_at", "2018-06-21 05:33:26.148171"]]  (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.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-21 05:33:26.157301"], ["updated_at", "2018-06-21 05:33:26.157301"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.158867"], ["updated_at", "2018-06-21 05:33:26.158867"]]  (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 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" 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-21 05:33:26.170420"], ["updated_at", "2018-06-21 05:33:26.170420"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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.1ms) commit transaction  (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_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-21 05:33:26.197105"], ["updated_at", "2018-06-21 05:33:26.197105"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (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.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.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-21 05:33:26.212209"], ["updated_at", "2018-06-21 05:33:26.212209"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.213885"], ["updated_at", "2018-06-21 05:33:26.213885"]]  (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-21 05:33:26.218224"], ["updated_at", "2018-06-21 05:33:26.218224"]]  (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-21 05:33:26.242762"], ["updated_at", "2018-06-21 05:33:26.242762"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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-21 05:33:26.256461"], ["updated_at", "2018-06-21 05:33:26.256461"]]  (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.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-21 05:33:26.263752"], ["updated_at", "2018-06-21 05:33:26.263752"]]  (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-21 05:33:26.265499"], ["updated_at", "2018-06-21 05:33:26.265499"]]  (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-21 05:33:26.268812"], ["updated_at", "2018-06-21 05:33:26.268812"]]  (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-21 05:33:26.270599"], ["updated_at", "2018-06-21 05:33:26.270599"]]  (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", "test_1_1"], ["created_at", "2018-06-21 05:33:26.277074"], ["updated_at", "2018-06-21 05:33:26.277074"]]  (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-21 05:33:26.278844"], ["updated_at", "2018-06-21 05:33:26.278844"]]  (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-21 05:33:26.283120"], ["updated_at", "2018-06-21 05:33:26.283120"]]  (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-21 05:33:26.285073"], ["updated_at", "2018-06-21 05:33:26.285073"]]  (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 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.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-21 05:33:26.311528"], ["updated_at", "2018-06-21 05:33:26.311528"]]  (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" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-06-21 05:33:26.315730"], ["updated_at", "2018-06-21 05:33:26.315730"]]  (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.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.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 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.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 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" 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 "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.6ms) 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.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.4ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.370493"], ["updated_at", "2018-06-21 05:33:26.370493"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.372331"], ["updated_at", "2018-06-21 05:33:26.372331"]]  (0.2ms) 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-21 05:33:26.377809"], ["updated_at", "2018-06-21 05:33:26.377809"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.379897"], ["updated_at", "2018-06-21 05:33:26.379897"]]  (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" ("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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.401199"], ["updated_at", "2018-06-21 05:33:26.401199"]]  (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.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-21 05:33:26.411035"], ["updated_at", "2018-06-21 05:33:26.411035"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.412676"], ["updated_at", "2018-06-21 05:33:26.412676"]]  (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.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.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 (1.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)) AND "test_models"."id" = ? [["id", 1]] SQL (0.3ms) DELETE FROM "test_models" SQL (0.2ms) 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.5ms) 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.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.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 TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "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" ("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') 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.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-21 05:33:26.516005"], ["updated_at", "2018-06-21 05:33:26.516005"]]  (0.1ms) 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.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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.526121"], ["updated_at", "2018-06-21 05:33:26.526121"]]  (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-21 05:33:26.529953"], ["updated_at", "2018-06-21 05:33:26.529953"]]  (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.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.1ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-21 05:33:26.546809"], ["updated_at", "2018-06-21 05:33:26.546809"]]  (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.1ms) commit transaction  (0.1ms) begin transaction SQL (5.6ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.6ms) 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" ("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.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.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.2ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs" SQL (0.2ms) DELETE FROM "test_models" SQL (0.2ms) DELETE FROM "test_attrs"  (0.3ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.596557"], ["updated_at", "2018-06-21 05:33:26.596557"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.599185"], ["updated_at", "2018-06-21 05:33:26.599185"]]  (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-21 05:33:26.605805"], ["updated_at", "2018-06-21 05:33:26.605805"]]  (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.8ms) SELECT "test_attrs".* FROM "test_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-21 05:33:26.616683"], ["updated_at", "2018-06-21 05:33:26.616683"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:26.618261"], ["updated_at", "2018-06-21 05:33:26.618261"]]  (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", 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.2ms) commit transaction  (0.3ms) begin transaction SQL (0.2ms) 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.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.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.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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:39.983122"], ["updated_at", "2018-06-21 05:33:39.983122"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:39.999011"], ["updated_at", "2018-06-21 05:33:39.999011"]]  (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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.097203"], ["updated_at", "2018-06-21 05:33:40.097203"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.098963"], ["updated_at", "2018-06-21 05:33:40.098963"]]  (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-21 05:33:40.107333"], ["updated_at", "2018-06-21 05:33:40.107333"]]  (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-21 05:33:40.116003"], ["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-21 05:33:40.119054"], ["updated_at", "2018-06-21 05:33:40.119054"]]  (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-21 05:33:40.120643"], ["updated_at", "2018-06-21 05:33:40.120643"]]  (0.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.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-21 05:33:40.128667"], ["updated_at", "2018-06-21 05:33:40.128667"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.130158"], ["updated_at", "2018-06-21 05:33:40.130158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) 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)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.143290"], ["updated_at", "2018-06-21 05:33:40.143290"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) 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" 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-21 05:33:40.152249"], ["updated_at", "2018-06-21 05:33:40.152249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["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-21 05:33:40.162515"], ["updated_at", "2018-06-21 05:33:40.162515"]]  (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-21 05:33:40.173160"], ["updated_at", "2018-06-21 05:33:40.173160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.174906"], ["updated_at", "2018-06-21 05:33:40.174906"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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.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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.189993"], ["updated_at", "2018-06-21 05:33:40.189993"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.192314"], ["updated_at", "2018-06-21 05:33:40.192314"]]  (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-21 05:33:40.197485"], ["updated_at", "2018-06-21 05:33:40.197485"]]  (0.0ms) commit 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.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-21 05:33:40.210888"], ["updated_at", "2018-06-21 05:33:40.210888"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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-21 05:33:40.221618"], ["updated_at", "2018-06-21 05:33:40.221618"]]  (0.0ms) commit transaction  (0.0ms) 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.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-21 05:33:40.234780"], ["updated_at", "2018-06-21 05:33:40.234780"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.236334"], ["updated_at", "2018-06-21 05:33:40.236334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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-21 05:33:40.240184"], ["updated_at", "2018-06-21 05:33:40.240184"]]  (0.1ms) 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.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-21 05:33:40.252730"], ["updated_at", "2018-06-21 05:33:40.252730"]]  (0.1ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-06-21 05:33:40.255135"], ["updated_at", "2018-06-21 05:33:40.255135"]]  (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.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 05:33:40.264241"], ["updated_at", "2018-06-21 05:33:40.264241"]]  (0.2ms) 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-21 05:33:40.267503"], ["updated_at", "2018-06-21 05:33:40.267503"]]  (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  (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-21 05:33:40.273479"], ["updated_at", "2018-06-21 05:33:40.273479"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-06-21 05:33:40.275835"], ["updated_at", "2018-06-21 05:33:40.275835"]]  (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.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" = ? 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-21 05:33:40.293539"], ["updated_at", "2018-06-21 05:33:40.293539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.295446"], ["updated_at", "2018-06-21 05:33:40.295446"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.297515"], ["updated_at", "2018-06-21 05:33:40.297515"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:33:40.302169"], ["updated_at", "2018-06-21 05:33:40.302169"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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.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-21 05:33:40.314511"], ["updated_at", "2018-06-21 05:33:40.314511"]]  (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.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.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-21 05:33:40.356889"], ["updated_at", "2018-06-21 05:33:40.356889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.358533"], ["updated_at", "2018-06-21 05:33:40.358533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.362982"], ["updated_at", "2018-06-21 05:33:40.362982"]]  (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.0ms) 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-21 05:33:40.370505"], ["updated_at", "2018-06-21 05:33:40.370505"]]  (0.0ms) commit transaction  (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.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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.386499"], ["updated_at", "2018-06-21 05:33:40.386499"]]  (0.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.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-21 05:33:40.399551"], ["updated_at", "2018-06-21 05:33:40.399551"]]  (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-21 05:33:40.401005"], ["updated_at", "2018-06-21 05:33:40.401005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "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-21 05:33:40.403743"], ["updated_at", "2018-06-21 05:33:40.403743"]]  (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-21 05:33:40.405105"], ["updated_at", "2018-06-21 05:33:40.405105"]]  (0.0ms) 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-21 05:33:40.411131"], ["updated_at", "2018-06-21 05:33:40.411131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.416535"], ["updated_at", "2018-06-21 05:33:40.416535"]]  (0.0ms) commit 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.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.424464"], ["updated_at", "2018-06-21 05:33:40.424464"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.428037"], ["updated_at", "2018-06-21 05:33:40.428037"]]  (0.0ms) commit transaction  (0.0ms) 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" SQL (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-21 05:33:40.435887"], ["updated_at", "2018-06-21 05:33:40.435887"]]  (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.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_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-21 05:33:40.453064"], ["updated_at", "2018-06-21 05:33:40.453064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.454095"], ["updated_at", "2018-06-21 05:33:40.454095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_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.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-21 05:33:40.466548"], ["updated_at", "2018-06-21 05:33:40.466548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.467796"], ["updated_at", "2018-06-21 05:33:40.467796"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* 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.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"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.490040"], ["updated_at", "2018-06-21 05:33:40.490040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.491402"], ["updated_at", "2018-06-21 05:33:40.491402"]]  (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", "pickle"], ["created_at", "2018-06-21 05:33:40.494736"], ["updated_at", "2018-06-21 05:33:40.494736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.499211"], ["updated_at", "2018-06-21 05:33:40.499211"]]  (0.0ms) commit 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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:33:40.509352"], ["updated_at", "2018-06-21 05:33:40.509352"]]  (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-21 05:33:40.510887"], ["updated_at", "2018-06-21 05:33:40.510887"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.512076"], ["updated_at", "2018-06-21 05:33:40.512076"]]  (0.0ms) commit transaction TestModel Load (0.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-21 05:33:40.515188"], ["updated_at", "2018-06-21 05:33:40.515188"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.516467"], ["updated_at", "2018-06-21 05:33:40.516467"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:33:40.523533"], ["updated_at", "2018-06-21 05:33:40.523533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.524565"], ["updated_at", "2018-06-21 05:33:40.524565"]]  (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-21 05:33:40.527347"], ["updated_at", "2018-06-21 05:33:40.527347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.528601"], ["updated_at", "2018-06-21 05:33:40.528601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.530050"], ["updated_at", "2018-06-21 05:33:40.530050"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) 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.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-21 05:33:40.545468"], ["updated_at", "2018-06-21 05:33:40.545468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "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-21 05:33:40.552914"], ["updated_at", "2018-06-21 05:33:40.552914"]]  (0.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", "2018-06-21 05:33:40.560783"], ["updated_at", "2018-06-21 05:33:40.560783"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_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-21 05:33:40.563954"], ["updated_at", "2018-06-21 05:33:40.563954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.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-21 05:33:40.576776"], ["updated_at", "2018-06-21 05:33:40.576776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.577861"], ["updated_at", "2018-06-21 05:33:40.577861"]]  (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-21 05:33:40.580662"], ["updated_at", "2018-06-21 05:33:40.580662"]]  (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-21 05:33:40.583641"], ["updated_at", "2018-06-21 05:33:40.583641"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.584940"], ["updated_at", "2018-06-21 05:33:40.584940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) 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.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_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-21 05:33:40.599323"], ["updated_at", "2018-06-21 05:33:40.599323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 05:33:40.607526"], ["updated_at", "2018-06-21 05:33:40.607526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.610864"], ["updated_at", "2018-06-21 05:33:40.610864"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 05:33:40.614042"], ["updated_at", "2018-06-21 05:33:40.614042"]]  (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" --------------------------------------------------------------- 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 6ms (Views: 4.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.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.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) ------------------------------------------------------------------------------------ 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.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#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.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_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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 05:33:40.694243"], ["updated_at", "2018-06-21 05:33:40.694243"]]  (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_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_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" ("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", 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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.723131"], ["updated_at", "2018-06-21 05:33:40.723131"]]  (0.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.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-21 05:33:40.730281"], ["updated_at", "2018-06-21 05:33:40.730281"]]  (0.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-21 05:33:40.733684"], ["updated_at", "2018-06-21 05:33:40.733684"]]  (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.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:33:40.740273"], ["updated_at", "2018-06-21 05:33:40.740273"]]  (0.0ms) commit 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.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.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_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", "2018-06-21 05:33:40.758487"], ["updated_at", "2018-06-21 05:33:40.758487"]]  (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-21 05:33:40.759553"], ["updated_at", "2018-06-21 05:33:40.759553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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 "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin 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 ------------------------------------------------------------ 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_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) ---------------------------------------------- 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) -------------------------------------- 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.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_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 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.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) ---------------------------------------------------- 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) ------------------------------------------------------- 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_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) ------------------------------------------------------- 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) -------------------------------------------------------------------------------------------- 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.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 9ms (Views: 0.3ms | 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.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) --------------------------------------------------------------------------------------------------- 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 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", nil], ["LIMIT", 1]] Completed 404 Not Found in 1ms (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 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.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) ----------------------------------------------------------------- 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_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.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) ----------------------------------------------------- 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.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_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 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 ----------------------------------- Processing by HelperMocksController#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.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) -------------------------------------------------------------------------------- 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.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)  (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 ) ----------------------------------------------------- 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 9ms (Views: 8.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.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.1ms) 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 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 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.1ms) 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 Rendered text 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 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) ----------------------------------------------------------------------------------------- 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.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_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)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:52.975871"], ["updated_at", "2018-06-21 05:37:52.975871"]]  (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.5ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_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", "2018-06-21 05:37:53.019610"], ["updated_at", "2018-06-21 05:37:53.019610"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.020779"], ["updated_at", "2018-06-21 05:37:53.020779"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) 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-21 05:37:53.023703"], ["updated_at", "2018-06-21 05:37:53.023703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:53.026327"], ["updated_at", "2018-06-21 05:37:53.026327"]]  (0.0ms) commit 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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-21 05:37:53.032272"], ["updated_at", "2018-06-21 05:37:53.032272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 05:37:53.034418"], ["updated_at", "2018-06-21 05:37:53.034418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.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", "2018-06-21 05:37:53.046776"], ["updated_at", "2018-06-21 05:37:53.046776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 05:37:53.051533"], ["updated_at", "2018-06-21 05:37:53.051533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.052395"], ["updated_at", "2018-06-21 05:37:53.052395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (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.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.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* 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-21 05:37:53.064434"], ["updated_at", "2018-06-21 05:37:53.064434"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.066238"], ["updated_at", "2018-06-21 05:37:53.066238"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* 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.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-21 05:37:53.073304"], ["updated_at", "2018-06-21 05:37:53.073304"]]  (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.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.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", "2018-06-21 05:37:53.092371"], ["updated_at", "2018-06-21 05:37:53.092371"]]  (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-21 05:37:53.094739"], ["updated_at", "2018-06-21 05:37:53.094739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.095738"], ["updated_at", "2018-06-21 05:37:53.095738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:53.098663"], ["updated_at", "2018-06-21 05:37:53.098663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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-21 05:37:53.103173"], ["updated_at", "2018-06-21 05:37:53.103173"]]  (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" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.2ms) 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" = 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", "test_1_1"], ["created_at", "2018-06-21 05:37:53.112755"], ["updated_at", "2018-06-21 05:37:53.112755"]]  (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-21 05:37:53.114378"], ["updated_at", "2018-06-21 05:37:53.114378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 05:37:53.124695"], ["updated_at", "2018-06-21 05:37:53.124695"]]  (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-21 05:37:53.125791"], ["updated_at", "2018-06-21 05:37:53.125791"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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 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", "2018-06-21 05:37:53.133923"], ["updated_at", "2018-06-21 05:37:53.133923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.134932"], ["updated_at", "2018-06-21 05:37:53.134932"]]  (0.0ms) commit transaction TestModel 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-21 05:37:53.137120"], ["updated_at", "2018-06-21 05:37:53.137120"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (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 "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.2ms) 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.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" ("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-21 05:37:53.157987"], ["updated_at", "2018-06-21 05:37:53.157987"]]  (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.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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.166103"], ["updated_at", "2018-06-21 05:37:53.166103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.167250"], ["updated_at", "2018-06-21 05:37:53.167250"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.168301"], ["updated_at", "2018-06-21 05:37:53.168301"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (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-21 05:37:53.171192"], ["updated_at", "2018-06-21 05:37:53.171192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.172112"], ["updated_at", "2018-06-21 05:37:53.172112"]]  (0.0ms) commit transaction  (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", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) 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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 05:37:53.181998"], ["updated_at", "2018-06-21 05:37:53.181998"]]  (0.0ms) commit 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-21 05:37:53.182991"], ["updated_at", "2018-06-21 05:37:53.182991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 05:37:53.184963"], ["updated_at", "2018-06-21 05:37:53.184963"]]  (0.0ms) commit 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-21 05:37:53.185827"], ["updated_at", "2018-06-21 05:37:53.185827"]]  (0.0ms) 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", "2018-06-21 05:37:53.189538"], ["updated_at", "2018-06-21 05:37:53.189538"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:53.191428"], ["updated_at", "2018-06-21 05:37:53.191428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 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.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.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", "2018-06-21 05:37:53.203863"], ["updated_at", "2018-06-21 05:37:53.203863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:53.206046"], ["updated_at", "2018-06-21 05:37:53.206046"]]  (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.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-21 05:37:53.209866"], ["updated_at", "2018-06-21 05:37:53.209866"]]  (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-21 05:37:53.210973"], ["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-21 05:37:53.212751"], ["updated_at", "2018-06-21 05:37:53.212751"]]  (0.0ms) commit transaction  (0.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-21 05:37:53.213911"], ["updated_at", "2018-06-21 05:37:53.213911"]]  (0.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-21 05:37:53.218257"], ["updated_at", "2018-06-21 05:37:53.218257"]]  (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", "2018-06-21 05:37:53.223537"], ["updated_at", "2018-06-21 05:37:53.223537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:53.225695"], ["updated_at", "2018-06-21 05:37:53.225695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 05:37:53.227699"], ["updated_at", "2018-06-21 05:37:53.227699"]]  (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" 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-21 05:37:53.235156"], ["updated_at", "2018-06-21 05:37:53.235156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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", "2018-06-21 05:37:53.243604"], ["updated_at", "2018-06-21 05:37:53.243604"]]  (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", "2018-06-21 05:37:53.250877"], ["updated_at", "2018-06-21 05:37:53.250877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.251848"], ["updated_at", "2018-06-21 05:37:53.251848"]]  (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-21 05:37:53.254847"], ["updated_at", "2018-06-21 05:37:53.254847"]]  (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-21 05:37:53.255936"], ["updated_at", "2018-06-21 05:37:53.255936"]]  (0.0ms) commit 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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.259026"], ["updated_at", "2018-06-21 05:37:53.259026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.259978"], ["updated_at", "2018-06-21 05:37:53.259978"]]  (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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:37:53.267247"], ["updated_at", "2018-06-21 05:37:53.267247"]]  (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-21 05:37:53.268391"], ["updated_at", "2018-06-21 05:37:53.268391"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.269372"], ["updated_at", "2018-06-21 05:37:53.269372"]]  (0.0ms) commit transaction TestModel Load (0.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.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.272656"], ["updated_at", "2018-06-21 05:37:53.272656"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 05:37:53.278083"], ["updated_at", "2018-06-21 05:37:53.278083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.279078"], ["updated_at", "2018-06-21 05:37:53.279078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.2ms) DELETE FROM "test_attrs" SQL (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-21 05:37:53.284899"], ["updated_at", "2018-06-21 05:37:53.284899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.285834"], ["updated_at", "2018-06-21 05:37:53.285834"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."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", "2018-06-21 05:37:53.291842"], ["updated_at", "2018-06-21 05:37:53.291842"]]  (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-21 05:37:53.297265"], ["updated_at", "2018-06-21 05:37:53.297265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.298548"], ["updated_at", "2018-06-21 05:37:53.298548"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (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-21 05:37:53.301844"], ["updated_at", "2018-06-21 05:37:53.301844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.302900"], ["updated_at", "2018-06-21 05:37:53.302900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.308586"], ["updated_at", "2018-06-21 05:37:53.308586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "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-21 05:37:53.313022"], ["updated_at", "2018-06-21 05:37:53.313022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.313951"], ["updated_at", "2018-06-21 05:37:53.313951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:53.316044"], ["updated_at", "2018-06-21 05:37:53.316044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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-21 05:37:53.319570"], ["updated_at", "2018-06-21 05:37:53.319570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.320499"], ["updated_at", "2018-06-21 05:37:53.320499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.321293"], ["updated_at", "2018-06-21 05:37:53.321293"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (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-21 05:37:53.323823"], ["updated_at", "2018-06-21 05:37:53.323823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.324769"], ["updated_at", "2018-06-21 05:37:53.324769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 05:37:53.335411"], ["updated_at", "2018-06-21 05:37:53.335411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:53.337747"], ["updated_at", "2018-06-21 05:37:53.337747"]]  (0.0ms) commit 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" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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"} Rendered text template (0.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"} Rendered text template (0.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"} 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.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) ------------------------------------------------------------------------------- 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"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 1]] Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 0.2ms) ----------------------------------------------------------------------------------------- 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"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 4]] 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.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: {"params"=>{"id"=>"5"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (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.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_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_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) -------------------------------------- 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) ------------------------------------------------------- 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.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 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.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 1ms (Views: 1.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) --------------------------------------------------- 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 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) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ 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) ----------------------------------------------------------- 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.5ms | 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_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) ----------------------------------------------------------- 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 --------------------------------------- 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 ------------------------------------------------------ --------------------------------------------------------------------------------- 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.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.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) ------------------------------------------------ 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) ------------------------------------------------------------------------- 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.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) 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", "2018-06-21 05:37:53.587703"], ["updated_at", "2018-06-21 05:37:53.587703"]]  (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-21 05:37:53.588606"], ["updated_at", "2018-06-21 05:37:53.588606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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.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.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.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", 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.2ms) 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]]  (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  (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-21 05:37:53.637722"], ["updated_at", "2018-06-21 05:37:53.637722"]]  (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", 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"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.645452"], ["updated_at", "2018-06-21 05:37:53.645452"]]  (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 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 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.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.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_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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:53.665823"], ["updated_at", "2018-06-21 05:37:53.665823"]]  (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.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", "2018-06-21 05:37:53.671580"], ["updated_at", "2018-06-21 05:37:53.671580"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 05:37:53.674371"], ["updated_at", "2018-06-21 05:37:53.674371"]]  (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.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 ) ------------------------------------------------------- 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 11ms (Views: 9.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 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.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 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.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_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 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 3ms (Views: 2.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) ----------------------------------------------------- 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.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.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)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.018672"], ["updated_at", "2018-06-21 05:37:58.018672"]]  (0.0ms) commit transaction  (0.0ms) 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.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.060691"], ["updated_at", "2018-06-21 05:37:58.060691"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.062094"], ["updated_at", "2018-06-21 05:37:58.062094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.063192"], ["updated_at", "2018-06-21 05:37:58.063192"]]  (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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:37:58.066584"], ["updated_at", "2018-06-21 05:37:58.066584"]]  (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-21 05:37:58.067675"], ["updated_at", "2018-06-21 05:37:58.067675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.068715"], ["updated_at", "2018-06-21 05:37:58.068715"]]  (0.0ms) commit transaction TestModel Load (0.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-21 05:37:58.071040"], ["updated_at", "2018-06-21 05:37:58.071040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.071857"], ["updated_at", "2018-06-21 05:37:58.071857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:58.073910"], ["updated_at", "2018-06-21 05:37:58.073910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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-21 05:37:58.077226"], ["updated_at", "2018-06-21 05:37:58.077226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 05:37:58.082198"], ["updated_at", "2018-06-21 05:37:58.082198"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.082968"], ["updated_at", "2018-06-21 05:37:58.082968"]]  (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-21 05:37:58.085230"], ["updated_at", "2018-06-21 05:37:58.085230"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.086003"], ["updated_at", "2018-06-21 05:37:58.086003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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 "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-21 05:37:58.096785"], ["updated_at", "2018-06-21 05:37:58.096785"]]  (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-21 05:37:58.098858"], ["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-21 05:37:58.105160"], ["updated_at", "2018-06-21 05:37:58.105160"]]  (0.0ms) commit transaction  (0.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-21 05:37:58.106424"], ["updated_at", "2018-06-21 05:37:58.106424"]]  (0.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-21 05:37:58.111340"], ["updated_at", "2018-06-21 05:37:58.111340"]]  (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-21 05:37:58.112480"], ["updated_at", "2018-06-21 05:37:58.112480"]]  (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", "2018-06-21 05:37:58.117840"], ["updated_at", "2018-06-21 05:37:58.117840"]]  (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) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.124675"], ["updated_at", "2018-06-21 05:37:58.124675"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.125752"], ["updated_at", "2018-06-21 05:37:58.125752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:58.128406"], ["updated_at", "2018-06-21 05:37:58.128406"]]  (0.0ms) commit transaction  (0.0ms) 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", "pickle"], ["created_at", "2018-06-21 05:37:58.133079"], ["updated_at", "2018-06-21 05:37:58.133079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:58.135829"], ["updated_at", "2018-06-21 05:37:58.135829"]]  (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.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-21 05:37:58.140877"], ["updated_at", "2018-06-21 05:37:58.140877"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.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-21 05:37:58.149625"], ["updated_at", "2018-06-21 05:37:58.149625"]]  (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-21 05:37:58.152362"], ["updated_at", "2018-06-21 05:37:58.152362"]]  (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", "2018-06-21 05:37:58.155066"], ["updated_at", "2018-06-21 05:37:58.155066"]]  (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" SQL (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-21 05:37:58.159321"], ["updated_at", "2018-06-21 05:37:58.159321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.160321"], ["updated_at", "2018-06-21 05:37:58.160321"]]  (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-21 05:37:58.162524"], ["updated_at", "2018-06-21 05:37:58.162524"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.171672"], ["updated_at", "2018-06-21 05:37:58.171672"]]  (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-21 05:37:58.174358"], ["updated_at", "2018-06-21 05:37:58.174358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.175349"], ["updated_at", "2018-06-21 05:37:58.175349"]]  (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.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.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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.187367"], ["updated_at", "2018-06-21 05:37:58.187367"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:58.190037"], ["updated_at", "2018-06-21 05:37:58.190037"]]  (0.0ms) commit 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-21 05:37:58.194400"], ["updated_at", "2018-06-21 05:37:58.194400"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.195379"], ["updated_at", "2018-06-21 05:37:58.195379"]]  (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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.197709"], ["updated_at", "2018-06-21 05:37:58.197709"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.198963"], ["updated_at", "2018-06-21 05:37:58.198963"]]  (0.0ms) commit transaction  (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", "2018-06-21 05:37:58.205366"], ["updated_at", "2018-06-21 05:37:58.205366"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.206390"], ["updated_at", "2018-06-21 05:37:58.206390"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) 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", "2018-06-21 05:37:58.210598"], ["updated_at", "2018-06-21 05:37:58.210598"]]  (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  (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.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.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_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.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.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", "2018-06-21 05:37:58.241357"], ["updated_at", "2018-06-21 05:37:58.241357"]]  (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 "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" ("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", "2018-06-21 05:37:58.256917"], ["updated_at", "2018-06-21 05:37:58.256917"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.257776"], ["updated_at", "2018-06-21 05:37:58.257776"]]  (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", "2018-06-21 05:37:58.260121"], ["updated_at", "2018-06-21 05:37:58.260121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.260926"], ["updated_at", "2018-06-21 05:37:58.260926"]]  (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", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) 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", "2018-06-21 05:37:58.270990"], ["updated_at", "2018-06-21 05:37:58.270990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.271909"], ["updated_at", "2018-06-21 05:37:58.271909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("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", "2018-06-21 05:37:58.279499"], ["updated_at", "2018-06-21 05:37:58.279499"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "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" ("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", "2018-06-21 05:37:58.288947"], ["updated_at", "2018-06-21 05:37:58.288947"]]  (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.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.295560"], ["updated_at", "2018-06-21 05:37:58.295560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.296459"], ["updated_at", "2018-06-21 05:37:58.296459"]]  (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", "2018-06-21 05:37:58.299744"], ["updated_at", "2018-06-21 05:37:58.299744"]]  (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.0ms) SELECT "test_attrs".* 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", "2018-06-21 05:37:58.304910"], ["updated_at", "2018-06-21 05:37:58.304910"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.310865"], ["updated_at", "2018-06-21 05:37:58.310865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:58.313125"], ["updated_at", "2018-06-21 05:37:58.313125"]]  (0.0ms) commit transaction  (0.2ms) 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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 05:37:58.320073"], ["updated_at", "2018-06-21 05:37:58.320073"]]  (0.0ms) commit 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-21 05:37:58.321193"], ["updated_at", "2018-06-21 05:37:58.321193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 05:37:58.323378"], ["updated_at", "2018-06-21 05:37:58.323378"]]  (0.0ms) commit 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-21 05:37:58.324368"], ["updated_at", "2018-06-21 05:37:58.324368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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.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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.333478"], ["updated_at", "2018-06-21 05:37:58.333478"]]  (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-21 05:37:58.335911"], ["updated_at", "2018-06-21 05:37:58.335911"]]  (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"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.341552"], ["updated_at", "2018-06-21 05:37:58.341552"]]  (0.0ms) commit transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.342992"], ["updated_at", "2018-06-21 05:37:58.342992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.343976"], ["updated_at", "2018-06-21 05:37:58.343976"]]  (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.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-21 05:37:58.350642"], ["updated_at", "2018-06-21 05:37:58.350642"]]  (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", "first test"], ["created_at", "2018-06-21 05:37:58.355859"], ["updated_at", "2018-06-21 05:37:58.355859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 05:37:58.358365"], ["updated_at", "2018-06-21 05:37:58.358365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 05:37:58.367678"], ["updated_at", "2018-06-21 05:37:58.367678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:37:58.369836"], ["updated_at", "2018-06-21 05:37:58.369836"]]  (0.0ms) commit transaction  (0.0ms) 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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 05:37:58.373289"], ["updated_at", "2018-06-21 05:37:58.373289"]]  (0.0ms) commit 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-21 05:37:58.374285"], ["updated_at", "2018-06-21 05:37:58.374285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 05:37:58.376290"], ["updated_at", "2018-06-21 05:37:58.376290"]]  (0.0ms) commit 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-21 05:37:58.377231"], ["updated_at", "2018-06-21 05:37:58.377231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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 (6.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_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" ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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"} Rendered text template (0.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"} Rendered text template (0.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"} 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) -------------------------------------------------------------------------------------------- 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.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.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.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) ----------------------------------------------------------------- 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.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 --------------------------------------- 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_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_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_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) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------- 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.8ms | 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.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) ------------------------------------------------ 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.1ms | 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.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 1 [["id", 2]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 2]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 11ms (Views: 0.3ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------- 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 1 [["id", 3]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 3]] 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.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"params"=>{"id"=>"5"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms) ------------------------------------------------------------ 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) --------------------------------------------------- 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_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 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.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) ----------------------------------------------------------------------------------------- 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.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.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.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.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_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.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) -------------------------------------------------------------------------------- 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) ----------------------------------------------------------------- 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.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 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", "2018-06-21 05:37:58.595292"], ["updated_at", "2018-06-21 05:37:58.595292"]]  (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", "2018-06-21 05:37:58.601737"], ["updated_at", "2018-06-21 05:37:58.601737"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 05:37:58.605020"], ["updated_at", "2018-06-21 05:37:58.605020"]]  (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 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.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_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.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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", 7]]  (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", "2018-06-21 05:37:58.633205"], ["updated_at", "2018-06-21 05:37:58.633205"]]  (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", 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.1ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:37:58.641959"], ["updated_at", "2018-06-21 05:37:58.641959"]]  (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  (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-21 05:37:58.655863"], ["updated_at", "2018-06-21 05:37:58.655863"]]  (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-21 05:37:58.657148"], ["updated_at", "2018-06-21 05:37:58.657148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.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.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.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_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]] ------------------------------------------ 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.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)  (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.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 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.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) ---------------------------------------------------- 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) ---------------------------------------------- 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) ------------------------------------------- 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.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.056154"], ["updated_at", "2018-06-21 05:38:03.056154"]]  (0.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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.090225"], ["updated_at", "2018-06-21 05:38:03.090225"]]  (0.0ms) commit transaction  (0.0ms) 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-21 05:38:03.093612"], ["updated_at", "2018-06-21 05:38:03.093612"]]  (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" 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-21 05:38:03.102453"], ["updated_at", "2018-06-21 05:38:03.102453"]]  (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-21 05:38:03.103950"], ["updated_at", "2018-06-21 05:38:03.103950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "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.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.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_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  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin 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.2ms) 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", 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  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.172691"], ["updated_at", "2018-06-21 05:38:03.172691"]]  (0.0ms) commit 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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-06-21 05:38:03.180076"], ["updated_at", "2018-06-21 05:38:03.180076"]]  (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", 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.0ms) 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.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.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", 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.1ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches" ------------------------------------------------ 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) ------------------------------------------------------------ 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 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.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) ----------------------------------------------------------------- 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_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 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.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 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 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.1ms) 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.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) ------------------------------------------------------------------------------- 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"=>"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 3ms (Views: 0.2ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- 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.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"=>"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", 3], ["id", 4], ["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) --------------------------------------------------------------------------------------------------- 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) ---------------------------------------- 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 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_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_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) ------------------------------------------------------- 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_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.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)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-06-21 05:38:03.353202"], ["updated_at", "2018-06-21 05:38:03.353202"]]  (0.0ms) commit transaction  (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-21 05:38:03.355954"], ["updated_at", "2018-06-21 05:38:03.355954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.366200"], ["updated_at", "2018-06-21 05:38:03.366200"]]  (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-21 05:38:03.367274"], ["updated_at", "2018-06-21 05:38:03.367274"]]  (0.0ms) commit 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-21 05:38:03.370197"], ["updated_at", "2018-06-21 05:38:03.370197"]]  (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-21 05:38:03.376978"], ["updated_at", "2018-06-21 05:38:03.376978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.377990"], ["updated_at", "2018-06-21 05:38:03.377990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.384437"], ["updated_at", "2018-06-21 05:38:03.384437"]]  (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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-06-21 05:38:03.389482"], ["updated_at", "2018-06-21 05:38:03.389482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:38:03.392172"], ["updated_at", "2018-06-21 05:38:03.392172"]]  (0.0ms) commit 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.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-21 05:38:03.410972"], ["updated_at", "2018-06-21 05:38:03.410972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.411958"], ["updated_at", "2018-06-21 05:38:03.411958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 05:38:03.418452"], ["updated_at", "2018-06-21 05:38:03.418452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.419621"], ["updated_at", "2018-06-21 05:38:03.419621"]]  (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-21 05:38:03.425299"], ["updated_at", "2018-06-21 05:38:03.425299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "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-21 05:38:03.431088"], ["updated_at", "2018-06-21 05:38:03.431088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.432160"], ["updated_at", "2018-06-21 05:38:03.432160"]]  (0.0ms) commit transaction  (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-21 05:38:03.436320"], ["updated_at", "2018-06-21 05:38:03.436320"]]  (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", "2018-06-21 05:38:03.441345"], ["updated_at", "2018-06-21 05:38:03.441345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.442456"], ["updated_at", "2018-06-21 05:38:03.442456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.443470"], ["updated_at", "2018-06-21 05:38:03.443470"]]  (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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.447076"], ["updated_at", "2018-06-21 05:38:03.447076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.448308"], ["updated_at", "2018-06-21 05:38:03.448308"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:38:03.451710"], ["updated_at", "2018-06-21 05:38:03.451710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.452770"], ["updated_at", "2018-06-21 05:38:03.452770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) 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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.462052"], ["updated_at", "2018-06-21 05:38:03.462052"]]  (0.0ms) commit transaction  (0.0ms) 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-21 05:38:03.468934"], ["updated_at", "2018-06-21 05:38:03.468934"]]  (0.0ms) commit transaction  (6.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.476165"], ["updated_at", "2018-06-21 05:38:03.476165"]]  (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-21 05:38:03.478905"], ["updated_at", "2018-06-21 05:38:03.478905"]]  (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-21 05:38:03.479937"], ["updated_at", "2018-06-21 05:38:03.479937"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.480940"], ["updated_at", "2018-06-21 05:38:03.480940"]]  (0.0ms) commit transaction TestModel Load (0.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-21 05:38:03.483161"], ["updated_at", "2018-06-21 05:38:03.483161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.486233"], ["updated_at", "2018-06-21 05:38:03.486233"]]  (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-21 05:38:03.490231"], ["updated_at", "2018-06-21 05:38:03.490231"]]  (0.0ms) commit transaction  (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-21 05:38:03.492743"], ["updated_at", "2018-06-21 05:38:03.492743"]]  (0.0ms) commit 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-21 05:38:03.496426"], ["updated_at", "2018-06-21 05:38:03.496426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.497289"], ["updated_at", "2018-06-21 05:38:03.497289"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.498143"], ["updated_at", "2018-06-21 05:38:03.498143"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 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-21 05:38:03.500965"], ["updated_at", "2018-06-21 05:38:03.500965"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 05:38:03.506358"], ["updated_at", "2018-06-21 05:38:03.506358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.507269"], ["updated_at", "2018-06-21 05:38:03.507269"]]  (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-21 05:38:03.511962"], ["updated_at", "2018-06-21 05:38:03.511962"]]  (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", "2018-06-21 05:38:03.516253"], ["updated_at", "2018-06-21 05:38:03.516253"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.517743"], ["updated_at", "2018-06-21 05:38:03.517743"]]  (0.0ms) commit transaction TestModel 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-21 05:38:03.523306"], ["updated_at", "2018-06-21 05:38:03.523306"]]  (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.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 05:38:03.527916"], ["updated_at", "2018-06-21 05:38:03.527916"]]  (0.0ms) commit 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-21 05:38:03.528692"], ["updated_at", "2018-06-21 05:38:03.528692"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 05:38:03.530276"], ["updated_at", "2018-06-21 05:38:03.530276"]]  (0.0ms) commit 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-21 05:38:03.531075"], ["updated_at", "2018-06-21 05:38:03.531075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.537655"], ["updated_at", "2018-06-21 05:38:03.537655"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.538456"], ["updated_at", "2018-06-21 05:38:03.538456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:38:03.540576"], ["updated_at", "2018-06-21 05:38:03.540576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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-21 05:38:03.543776"], ["updated_at", "2018-06-21 05:38:03.543776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.544536"], ["updated_at", "2018-06-21 05:38:03.544536"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_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.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-06-21 05:38:03.557756"], ["updated_at", "2018-06-21 05:38:03.557756"]]  (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" ("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-21 05:38:03.569055"], ["updated_at", "2018-06-21 05:38:03.569055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.569901"], ["updated_at", "2018-06-21 05:38:03.569901"]]  (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-21 05:38:03.572260"], ["updated_at", "2018-06-21 05:38:03.572260"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:38:03.574477"], ["updated_at", "2018-06-21 05:38:03.574477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 05:38:03.576452"], ["updated_at", "2018-06-21 05:38:03.576452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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", "2018-06-21 05:38:03.581394"], ["updated_at", "2018-06-21 05:38:03.581394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (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-21 05:38:03.586138"], ["updated_at", "2018-06-21 05:38:03.586138"]]  (0.0ms) commit 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-21 05:38:03.586963"], ["updated_at", "2018-06-21 05:38:03.586963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 05:38:03.588582"], ["updated_at", "2018-06-21 05:38:03.588582"]]  (0.0ms) commit 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-21 05:38:03.589398"], ["updated_at", "2018-06-21 05:38:03.589398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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.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-21 05:38:03.595247"], ["updated_at", "2018-06-21 05:38:03.595247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:38:03.597589"], ["updated_at", "2018-06-21 05:38:03.597589"]]  (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" = 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", "2018-06-21 05:38:03.608875"], ["updated_at", "2018-06-21 05:38:03.608875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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-21 05:38:03.613203"], ["updated_at", "2018-06-21 05:38:03.613203"]]  (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-21 05:38:03.614623"], ["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-21 05:38:03.615558"], ["updated_at", "2018-06-21 05:38:03.615558"]]  (0.0ms) commit transaction  (0.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-21 05:38:03.616345"], ["updated_at", "2018-06-21 05:38:03.616345"]]  (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", "2018-06-21 05:38:03.619974"], ["updated_at", "2018-06-21 05:38:03.619974"]]  (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-21 05:38:03.622718"], ["updated_at", "2018-06-21 05:38:03.622718"]]  (0.0ms) commit transaction  (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.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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.631120"], ["updated_at", "2018-06-21 05:38:03.631120"]]  (0.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" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.638586"], ["updated_at", "2018-06-21 05:38:03.638586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.639584"], ["updated_at", "2018-06-21 05:38:03.639584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) 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-21 05:38:03.650310"], ["updated_at", "2018-06-21 05:38:03.650310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:03.651216"], ["updated_at", "2018-06-21 05:38:03.651216"]]  (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" ------------------------------------------------------------ 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.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 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 3ms (Views: 2.9ms | 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) -------------------------------------- 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) -------------------------------------------------------------- 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.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.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) --------------------------------------- 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.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.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.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.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 ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 4.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) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.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.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) ------------------------------------------------------ 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_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.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) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ---------------------------------------------------- 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) ------------------------------------------------------- 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.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) ------------------------------------------------------------------------------------ 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.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.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.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.213526"], ["updated_at", "2018-06-21 05:38:10.213526"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:38:10.232955"], ["updated_at", "2018-06-21 05:38:10.232955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 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", "pickle"], ["created_at", "2018-06-21 05:38:10.246412"], ["updated_at", "2018-06-21 05:38:10.246412"]]  (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-21 05:38:10.249104"], ["updated_at", "2018-06-21 05:38:10.249104"]]  (0.0ms) commit 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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.260201"], ["updated_at", "2018-06-21 05:38:10.260201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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" 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 "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-21 05:38:10.273126"], ["updated_at", "2018-06-21 05:38:10.273126"]]  (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.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.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.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.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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-06-21 05:38:10.307103"], ["updated_at", "2018-06-21 05:38:10.307103"]]  (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-21 05:38:10.308132"], ["updated_at", "2018-06-21 05:38:10.308132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.308995"], ["updated_at", "2018-06-21 05:38:10.308995"]]  (0.0ms) commit transaction TestModel Load (0.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-21 05:38:10.310926"], ["updated_at", "2018-06-21 05:38:10.310926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.311771"], ["updated_at", "2018-06-21 05:38:10.311771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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.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]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_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", "2018-06-21 05:38:10.323193"], ["updated_at", "2018-06-21 05:38:10.323193"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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-21 05:38:10.328501"], ["updated_at", "2018-06-21 05:38:10.328501"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.329623"], ["updated_at", "2018-06-21 05:38:10.329623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.334601"], ["updated_at", "2018-06-21 05:38:10.334601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.335422"], ["updated_at", "2018-06-21 05:38:10.335422"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:38:10.338881"], ["updated_at", "2018-06-21 05:38:10.338881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_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.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-21 05:38:10.344521"], ["updated_at", "2018-06-21 05:38:10.344521"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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", "2018-06-21 05:38:10.353190"], ["updated_at", "2018-06-21 05:38:10.353190"]]  (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" 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-21 05:38:10.360824"], ["updated_at", "2018-06-21 05:38:10.360824"]]  (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-21 05:38:10.362136"], ["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-21 05:38:10.363455"], ["updated_at", "2018-06-21 05:38:10.363455"]]  (0.0ms) 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-21 05:38:10.364933"], ["updated_at", "2018-06-21 05:38:10.364933"]]  (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-21 05:38:10.370272"], ["updated_at", "2018-06-21 05:38:10.370272"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.373653"], ["updated_at", "2018-06-21 05:38:10.373653"]]  (0.0ms) commit transaction  (0.2ms) 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", "2018-06-21 05:38:10.379798"], ["updated_at", "2018-06-21 05:38:10.379798"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.380837"], ["updated_at", "2018-06-21 05:38:10.380837"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:38:10.384711"], ["updated_at", "2018-06-21 05:38:10.384711"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 05:38:10.390699"], ["updated_at", "2018-06-21 05:38:10.390699"]]  (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-21 05:38:10.395590"], ["updated_at", "2018-06-21 05:38:10.395590"]]  (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.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-21 05:38:10.401085"], ["updated_at", "2018-06-21 05:38:10.401085"]]  (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-21 05:38:10.402064"], ["updated_at", "2018-06-21 05:38:10.402064"]]  (0.0ms) commit 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", "first test"], ["created_at", "2018-06-21 05:38:10.405068"], ["updated_at", "2018-06-21 05:38:10.405068"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 05:38:10.407776"], ["updated_at", "2018-06-21 05:38:10.407776"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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", "2018-06-21 05:38:10.417259"], ["updated_at", "2018-06-21 05:38:10.417259"]]  (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-21 05:38:10.419585"], ["updated_at", "2018-06-21 05:38:10.419585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."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-21 05:38:10.423837"], ["updated_at", "2018-06-21 05:38:10.423837"]]  (0.0ms) commit 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-21 05:38:10.425090"], ["updated_at", "2018-06-21 05:38:10.425090"]]  (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-21 05:38:10.427445"], ["updated_at", "2018-06-21 05:38:10.427445"]]  (0.0ms) commit 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-21 05:38:10.428392"], ["updated_at", "2018-06-21 05:38:10.428392"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "2018-06-21 05:38:10.435707"], ["updated_at", "2018-06-21 05:38:10.435707"]]  (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" 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-21 05:38:10.439894"], ["updated_at", "2018-06-21 05:38:10.439894"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.441142"], ["updated_at", "2018-06-21 05:38:10.441142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 05:38:10.448571"], ["updated_at", "2018-06-21 05:38:10.448571"]]  (0.0ms) commit 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-21 05:38:10.449923"], ["updated_at", "2018-06-21 05:38:10.449923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit 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-21 05:38:10.451968"], ["updated_at", "2018-06-21 05:38:10.451968"]]  (0.0ms) commit 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-21 05:38:10.452856"], ["updated_at", "2018-06-21 05:38:10.452856"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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-21 05:38:10.456976"], ["updated_at", "2018-06-21 05:38:10.456976"]]  (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-21 05:38:10.465901"], ["updated_at", "2018-06-21 05:38:10.465901"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.466911"], ["updated_at", "2018-06-21 05:38:10.466911"]]  (0.0ms) commit transaction TestModel 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", "2018-06-21 05:38:10.471143"], ["updated_at", "2018-06-21 05:38:10.471143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.472081"], ["updated_at", "2018-06-21 05:38:10.472081"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (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-21 05:38:10.474694"], ["updated_at", "2018-06-21 05:38:10.474694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.475561"], ["updated_at", "2018-06-21 05:38:10.475561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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", "2018-06-21 05:38:10.481334"], ["updated_at", "2018-06-21 05:38:10.481334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.486280"], ["updated_at", "2018-06-21 05:38:10.486280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.487188"], ["updated_at", "2018-06-21 05:38:10.487188"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* 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" ("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" ("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", "2018-06-21 05:38:10.502174"], ["updated_at", "2018-06-21 05:38:10.502174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.503039"], ["updated_at", "2018-06-21 05:38:10.503039"]]  (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", "2018-06-21 05:38:10.505104"], ["updated_at", "2018-06-21 05:38:10.505104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.505865"], ["updated_at", "2018-06-21 05:38:10.505865"]]  (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", "2018-06-21 05:38:10.507437"], ["updated_at", "2018-06-21 05:38:10.507437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:38:10.509302"], ["updated_at", "2018-06-21 05:38:10.509302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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-21 05:38:10.511147"], ["updated_at", "2018-06-21 05:38:10.511147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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-21 05:38:10.513936"], ["updated_at", "2018-06-21 05:38:10.513936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.514653"], ["updated_at", "2018-06-21 05:38:10.514653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.515315"], ["updated_at", "2018-06-21 05:38:10.515315"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.519986"], ["updated_at", "2018-06-21 05:38:10.519986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.520908"], ["updated_at", "2018-06-21 05:38:10.520908"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.521732"], ["updated_at", "2018-06-21 05:38:10.521732"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."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", "2018-06-21 05:38:10.524664"], ["updated_at", "2018-06-21 05:38:10.524664"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.525566"], ["updated_at", "2018-06-21 05:38:10.525566"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:38:10.527439"], ["updated_at", "2018-06-21 05:38:10.527439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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", "2018-06-21 05:38:10.532739"], ["updated_at", "2018-06-21 05:38:10.532739"]]  (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-21 05:38:10.536176"], ["updated_at", "2018-06-21 05:38:10.536176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.536889"], ["updated_at", "2018-06-21 05:38:10.536889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:38:10.538603"], ["updated_at", "2018-06-21 05:38:10.538603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.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-21 05:38:10.541331"], ["updated_at", "2018-06-21 05:38:10.541331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:38:10.542032"], ["updated_at", "2018-06-21 05:38:10.542032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) 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  (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-21 05:38:10.553079"], ["updated_at", "2018-06-21 05:38:10.553079"]]  (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-21 05:38:10.554342"], ["updated_at", "2018-06-21 05:38:10.554342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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", 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 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", "2018-06-21 05:38:10.569648"], ["updated_at", "2018-06-21 05:38:10.569648"]]  (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", "2018-06-21 05:38:10.575376"], ["updated_at", "2018-06-21 05:38:10.575376"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 05:38:10.578104"], ["updated_at", "2018-06-21 05:38:10.578104"]]  (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.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", 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", "2018-06-21 05:38:10.589910"], ["updated_at", "2018-06-21 05:38:10.589910"]]  (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-21 05:38:10.591956"], ["updated_at", "2018-06-21 05:38:10.591956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_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_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 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" 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" ("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_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", 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", 7]] 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" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (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: 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.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) ------------------------------------------------------------ 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.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.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.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 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.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.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) --------------------------------------------------------------- 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.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: 2.1ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"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) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.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"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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 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.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_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_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_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML 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.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction ----------------------------------------------------------------------------------------- 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 1 [["id", 3]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 2], ["id", 3]] 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) ------------------------------------------------------------------------------- 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.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 4]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) -------------------------------------------------------------- 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.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.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) ----------------------------------------------------------------------------------------- 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) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_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 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)  (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_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} 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 NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} 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) ----------------------------------------------------------------- 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.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.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.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.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.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", "2018-06-21 05:42:35.661268"], ["updated_at", "2018-06-21 05:42:35.661268"]]  (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.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.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.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-21 05:42:35.712885"], ["updated_at", "2018-06-21 05:42:35.712885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "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-21 05:42:35.721057"], ["updated_at", "2018-06-21 05:42:35.721057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (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 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-21 05:42:35.730170"], ["updated_at", "2018-06-21 05:42:35.730170"]]  (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-21 05:42:35.731526"], ["updated_at", "2018-06-21 05:42:35.731526"]]  (0.0ms) commit 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-21 05:42:35.735243"], ["updated_at", "2018-06-21 05:42:35.735243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.736362"], ["updated_at", "2018-06-21 05:42:35.736362"]]  (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-21 05:42:35.738889"], ["updated_at", "2018-06-21 05:42:35.738889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_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-21 05:42:35.743071"], ["updated_at", "2018-06-21 05:42:35.743071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.744088"], ["updated_at", "2018-06-21 05:42:35.744088"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "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-21 05:42:35.747550"], ["updated_at", "2018-06-21 05:42:35.747550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_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-21 05:42:35.750517"], ["updated_at", "2018-06-21 05:42:35.750517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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.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.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_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-21 05:42:35.768598"], ["updated_at", "2018-06-21 05:42:35.768598"]]  (0.0ms) commit transaction  (0.0ms) 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", "bla"], ["created_at", "2018-06-21 05:42:35.774527"], ["updated_at", "2018-06-21 05:42:35.774527"]]  (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-21 05:42:35.775660"], ["updated_at", "2018-06-21 05:42:35.775660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.776675"], ["updated_at", "2018-06-21 05:42:35.776675"]]  (0.0ms) commit transaction TestModel Load (0.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-21 05:42:35.778872"], ["updated_at", "2018-06-21 05:42:35.778872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.779975"], ["updated_at", "2018-06-21 05:42:35.779975"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:42:35.782373"], ["updated_at", "2018-06-21 05:42:35.782373"]]  (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_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_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-21 05:42:35.790059"], ["updated_at", "2018-06-21 05:42:35.790059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.791405"], ["updated_at", "2018-06-21 05:42:35.791405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) 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.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-21 05:42:35.802603"], ["updated_at", "2018-06-21 05:42:35.802603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.803649"], ["updated_at", "2018-06-21 05:42:35.803649"]]  (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.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.807401"], ["updated_at", "2018-06-21 05:42:35.807401"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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", "2018-06-21 05:42:35.816103"], ["updated_at", "2018-06-21 05:42:35.816103"]]  (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.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.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.831694"], ["updated_at", "2018-06-21 05:42:35.831694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.832751"], ["updated_at", "2018-06-21 05:42:35.832751"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (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.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-21 05:42:35.839045"], ["updated_at", "2018-06-21 05:42:35.839045"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.840718"], ["updated_at", "2018-06-21 05:42:35.840718"]]  (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", "2018-06-21 05:42:35.843680"], ["updated_at", "2018-06-21 05:42:35.843680"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.844725"], ["updated_at", "2018-06-21 05:42:35.844725"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.845649"], ["updated_at", "2018-06-21 05:42:35.845649"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."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", "2018-06-21 05:42:35.848706"], ["updated_at", "2018-06-21 05:42:35.848706"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.849594"], ["updated_at", "2018-06-21 05:42:35.849594"]]  (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-21 05:42:35.851885"], ["updated_at", "2018-06-21 05:42:35.851885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_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-21 05:42:35.855573"], ["updated_at", "2018-06-21 05:42:35.855573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.856472"], ["updated_at", "2018-06-21 05:42:35.856472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.857395"], ["updated_at", "2018-06-21 05:42:35.857395"]]  (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-21 05:42:35.860024"], ["updated_at", "2018-06-21 05:42:35.860024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:42:35.862197"], ["updated_at", "2018-06-21 05:42:35.862197"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.865438"], ["updated_at", "2018-06-21 05:42:35.865438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.866322"], ["updated_at", "2018-06-21 05:42:35.866322"]]  (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", "2018-06-21 05:42:35.869131"], ["updated_at", "2018-06-21 05:42:35.869131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.870058"], ["updated_at", "2018-06-21 05:42:35.870058"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_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" SQL (0.0ms) DELETE FROM "test_models" SQL (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-21 05:42:35.885852"], ["updated_at", "2018-06-21 05:42:35.885852"]]  (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-21 05:42:35.890571"], ["updated_at", "2018-06-21 05:42:35.890571"]]  (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-21 05:42:35.893081"], ["updated_at", "2018-06-21 05:42:35.893081"]]  (0.0ms) commit transaction  (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-21 05:42:35.895166"], ["updated_at", "2018-06-21 05:42:35.895166"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_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-21 05:42:35.898550"], ["updated_at", "2018-06-21 05:42:35.898550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.899440"], ["updated_at", "2018-06-21 05:42:35.899440"]]  (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-21 05:42:35.901892"], ["updated_at", "2018-06-21 05:42:35.901892"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.902729"], ["updated_at", "2018-06-21 05:42:35.902729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_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", "2018-06-21 05:42:35.908986"], ["updated_at", "2018-06-21 05:42:35.908986"]]  (0.0ms) commit 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-21 05:42:35.909982"], ["updated_at", "2018-06-21 05:42:35.909982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (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-21 05:42:35.911831"], ["updated_at", "2018-06-21 05:42:35.911831"]]  (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-21 05:42:35.912682"], ["updated_at", "2018-06-21 05:42:35.912682"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "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", "pickle"], ["created_at", "2018-06-21 05:42:35.919062"], ["updated_at", "2018-06-21 05:42:35.919062"]]  (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-21 05:42:35.921126"], ["updated_at", "2018-06-21 05:42:35.921126"]]  (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", "2018-06-21 05:42:35.926171"], ["updated_at", "2018-06-21 05:42:35.926171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:42:35.928584"], ["updated_at", "2018-06-21 05:42:35.928584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.932073"], ["updated_at", "2018-06-21 05:42:35.932073"]]  (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-21 05:42:35.936685"], ["updated_at", "2018-06-21 05:42:35.936685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_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-21 05:42:35.938840"], ["updated_at", "2018-06-21 05:42:35.938840"]]  (0.0ms) commit 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" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-06-21 05:42:35.944995"], ["updated_at", "2018-06-21 05:42:35.944995"]]  (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-21 05:42:35.946173"], ["updated_at", "2018-06-21 05:42:35.946173"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "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", "2018-06-21 05:42:35.948145"], ["updated_at", "2018-06-21 05:42:35.948145"]]  (0.0ms) commit 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-21 05:42:35.949055"], ["updated_at", "2018-06-21 05:42:35.949055"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("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-21 05:42:35.952695"], ["updated_at", "2018-06-21 05:42:35.952695"]]  (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 "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-21 05:42:35.965750"], ["updated_at", "2018-06-21 05:42:35.965750"]]  (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-21 05:42:35.967171"], ["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-21 05:42:35.968686"], ["updated_at", "2018-06-21 05:42:35.968686"]]  (0.0ms) commit transaction  (0.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-21 05:42:35.969706"], ["updated_at", "2018-06-21 05:42:35.969706"]]  (0.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.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.973600"], ["updated_at", "2018-06-21 05:42:35.973600"]]  (0.0ms) commit transaction  (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 "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.3ms) DELETE 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-21 05:42:35.992156"], ["updated_at", "2018-06-21 05:42:35.992156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:35.993345"], ["updated_at", "2018-06-21 05:42:35.993345"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* 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.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.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:36.000820"], ["updated_at", "2018-06-21 05:42:36.000820"]]  (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-21 05:42:36.006067"], ["updated_at", "2018-06-21 05:42:36.006067"]]  (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.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:36.009899"], ["updated_at", "2018-06-21 05:42:36.009899"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:36.010810"], ["updated_at", "2018-06-21 05:42:36.010810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* 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" ----------------------- 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_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_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_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.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.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_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:36.057076"], ["updated_at", "2018-06-21 05:42:36.057076"]]  (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.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-06-21 05:42:36.062911"], ["updated_at", "2018-06-21 05:42:36.062911"]]  (0.0ms) commit transaction  (0.0ms) 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", "2018-06-21 05:42:36.066361"], ["updated_at", "2018-06-21 05:42:36.066361"]]  (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.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-21 05:42:36.073898"], ["updated_at", "2018-06-21 05:42:36.073898"]]  (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-21 05:42:36.075318"], ["updated_at", "2018-06-21 05:42:36.075318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_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", "2018-06-21 05:42:36.088409"], ["updated_at", "2018-06-21 05:42:36.088409"]]  (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.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 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.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", 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_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 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.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", "2018-06-21 05:42:36.115299"], ["updated_at", "2018-06-21 05:42:36.115299"]]  (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.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]] ------------------------------------------------------- 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) ----------------------------------------------------------------------------------- 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.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.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) -------------------------------------------------------------------------------------------- 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 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) --------------------------------------------------- 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 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 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.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 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.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) ----------------------------------------------------------------------------------------- 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.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_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) -------------------------------------------------------------- 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) ---------------------------------------------------------------------- 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: 2.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.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 --------------------------------------- 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.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_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 ------------------------------------------------------ -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.1ms) Completed 200 OK in 3ms (Views: 2.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.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.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.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.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.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) ------------------------------------------------ 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 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) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_create__access_allowed__users_role__read_permissions__with_user -----------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction ----------------------------------------------------------------------------------------- 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.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 1 [["id", 3]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 2], ["id", 3]] 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_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 ------------------------------------------------------------------------------- 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"=>"5"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 5], ["id", 5]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)