(0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------- RailsSqlViews4Test: test_fail -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.2ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------- RailsSqlViews4Test: test_fail -----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- RailsSqlViews4Test: test_fail -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- RailsSqlViews4Test: test_fail -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- RailsSqlViews4Test: test_fail -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------- RailsSqlViews4Test: test_fail -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------- RailsSqlViews4Test: test_fail -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.1ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places SQLite3::SQLException: no such table: main.places: CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (1.4ms) CREATE TABLE "personns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "adresss_id" integer, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141229111027')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200436') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.1ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places SQLite3::SQLException: no such table: main.places: CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such table: main.people: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.9ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "adresss_id" integer, "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.0ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200436') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:24:41.589916"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:24:41.589916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "first"]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places SQLite3::SQLException: no such table: main.places: CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:24:41.602549"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:24:41.602549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "adresss_id", "created_at", "updated_at" FROM people  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "adresss_id", "created_at", "updated_at" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "adresss_id", "created_at", "updated_at" FROM people  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "adresss_id", "created_at", "updated_at" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:27:39.855037"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:27:39.855037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.2ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places SQLite3::SQLException: no such table: main.places: CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:27:39.883077"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:27:39.883077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.7ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "adresss_id" integer, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.7ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.0ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200436')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200437')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200438')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200439') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:39:28.781481"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:39:28.781481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:39:28.795565"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:39:28.795565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "adresss_id", "created_at", "updated_at" FROM people  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "adresss_id", "created_at", "updated_at" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (1.3ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.7ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.7ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "addresss_id" integer, "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.0ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200436')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200437')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200438')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200439') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:55:30.886154"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:55:30.886154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.3ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:55:30.905513"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:55:30.905513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "addresss_id", "created_at", "updated_at" FROM people  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "addresss_id", "created_at", "updated_at" FROM people  (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.4ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:59:24.309051"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:59:24.309051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 12:59:24.318350"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 12:59:24.318350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (1.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.4ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: no such column: address_id: CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "addresss_id", "created_at", "updated_at" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "addresss_id", "created_at", "updated_at" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (2.0ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.0ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200436')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200437')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200438')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200439') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 13:01:40.581823"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 13:01:40.581823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.3ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.3ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 13:01:40.640856"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 13:01:40.640856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 13:04:21.179429"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 13:04:21.179429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 13:04:21.224425"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 13:04:21.224425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.6ms) rollback transaction  (0.2ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.233808"], ["updated_at", "2014-12-29 13:12:54.233808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:12:54.250469"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:12:54.250469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.269660"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.269660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.271409"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.271409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.272319"], ["updated_at", "2014-12-29 13:12:54.272319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.273136"], ["updated_at", "2014-12-29 13:12:54.273136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.273951"], ["updated_at", "2014-12-29 13:12:54.273951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.285672"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.285672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.287456"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.287456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_access_cloned_habtm_association ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.298757"], ["updated_at", "2014-12-29 13:12:54.298757"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:12:54.300693"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:12:54.300693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.302700"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.302700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.304136"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.304136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.305047"], ["updated_at", "2014-12-29 13:12:54.305047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.305863"], ["updated_at", "2014-12-29 13:12:54.305863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.306681"], ["updated_at", "2014-12-29 13:12:54.306681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.308047"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.308047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.309050"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.309050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.317480"], ["updated_at", "2014-12-29 13:12:54.317480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:12:54.318900"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:12:54.318900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.320600"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.320600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.321581"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.321581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.322291"], ["updated_at", "2014-12-29 13:12:54.322291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.323398"], ["updated_at", "2014-12-29 13:12:54.323398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.324014"], ["updated_at", "2014-12-29 13:12:54.324014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.325298"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.325298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.326305"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.326305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.334045"], ["updated_at", "2014-12-29 13:12:54.334045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:12:54.335280"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:12:54.335280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.336811"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.336811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.337757"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.337757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.338529"], ["updated_at", "2014-12-29 13:12:54.338529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.339244"], ["updated_at", "2014-12-29 13:12:54.339244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.340139"], ["updated_at", "2014-12-29 13:12:54.340139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.341680"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.341680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.342796"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.342796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.348570"], ["updated_at", "2014-12-29 13:12:54.348570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:12:54.350477"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:12:54.350477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.352631"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.352631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.353718"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.353718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.354683"], ["updated_at", "2014-12-29 13:12:54.354683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.356006"], ["updated_at", "2014-12-29 13:12:54.356006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.357186"], ["updated_at", "2014-12-29 13:12:54.357186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.359360"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.359360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.360726"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.360726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.367968"], ["updated_at", "2014-12-29 13:12:54.367968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:12:54.369356"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:12:54.369356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.371017"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.371017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.371877"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.371877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.372523"], ["updated_at", "2014-12-29 13:12:54.372523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.373594"], ["updated_at", "2014-12-29 13:12:54.373594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.374402"], ["updated_at", "2014-12-29 13:12:54.374402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.376065"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.376065"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.377409"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.377409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.383128"], ["updated_at", "2014-12-29 13:12:54.383128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:12:54.384364"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:12:54.384364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.386450"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.386450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:12:54.387647"], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.387647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.388455"], ["updated_at", "2014-12-29 13:12:54.388455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.389117"], ["updated_at", "2014-12-29 13:12:54.389117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:12:54.389776"], ["updated_at", "2014-12-29 13:12:54.389776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.392333"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.392333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.394211"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:12:54.394211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.464723"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 13:12:54.464723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 13:12:54.485859"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 13:12:54.485859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.361080"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 13:57:22.361080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.381104"], ["updated_at", "2014-12-29 13:57:22.381104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:57:22.389675"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:57:22.389675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.403932"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.403932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.405587"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.405587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.406579"], ["updated_at", "2014-12-29 13:57:22.406579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.407541"], ["updated_at", "2014-12-29 13:57:22.407541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.408397"], ["updated_at", "2014-12-29 13:57:22.408397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.415562"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.415562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.416910"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.416910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.424729"], ["updated_at", "2014-12-29 13:57:22.424729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:57:22.425921"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:57:22.425921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.427392"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.427392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.428272"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.428272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.428948"], ["updated_at", "2014-12-29 13:57:22.428948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.429601"], ["updated_at", "2014-12-29 13:57:22.429601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.430265"], ["updated_at", "2014-12-29 13:57:22.430265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.431818"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.431818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.432882"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.432882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.439828"], ["updated_at", "2014-12-29 13:57:22.439828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:57:22.441015"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:57:22.441015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.442573"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.442573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.443608"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.443608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.444327"], ["updated_at", "2014-12-29 13:57:22.444327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.445009"], ["updated_at", "2014-12-29 13:57:22.445009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.445675"], ["updated_at", "2014-12-29 13:57:22.445675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.447406"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.447406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.448520"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.448520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.455062"], ["updated_at", "2014-12-29 13:57:22.455062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:57:22.456679"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:57:22.456679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.458823"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.458823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.460058"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.460058"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.461172"], ["updated_at", "2014-12-29 13:57:22.461172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.462060"], ["updated_at", "2014-12-29 13:57:22.462060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.462803"], ["updated_at", "2014-12-29 13:57:22.462803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.464272"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.464272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.465421"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.465421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.473079"], ["updated_at", "2014-12-29 13:57:22.473079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:57:22.474827"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:57:22.474827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.476895"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.476895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.478584"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.478584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.480023"], ["updated_at", "2014-12-29 13:57:22.480023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.481353"], ["updated_at", "2014-12-29 13:57:22.481353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.482686"], ["updated_at", "2014-12-29 13:57:22.482686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.485455"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.485455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.487515"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.487515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.497097"], ["updated_at", "2014-12-29 13:57:22.497097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 13:57:22.498483"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:57:22.498483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.500442"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.500442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:57:22.501777"], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.501777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.502645"], ["updated_at", "2014-12-29 13:57:22.502645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.503349"], ["updated_at", "2014-12-29 13:57:22.503349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:57:22.503985"], ["updated_at", "2014-12-29 13:57:22.503985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.505679"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.505679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.507350"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 13:57:22.507350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 13:57:22.543794"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 13:57:22.543794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.459309"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 14:01:38.459309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.481367"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 14:01:38.481367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.534344"], ["updated_at", "2014-12-29 14:01:38.534344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:01:38.543336"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:01:38.543336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.557365"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.557365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.558808"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.558808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.559742"], ["updated_at", "2014-12-29 14:01:38.559742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.560508"], ["updated_at", "2014-12-29 14:01:38.560508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.561293"], ["updated_at", "2014-12-29 14:01:38.561293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.568812"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.568812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.570207"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.570207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.579379"], ["updated_at", "2014-12-29 14:01:38.579379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:01:38.581003"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:01:38.581003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.583127"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.583127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.584605"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.584605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.585731"], ["updated_at", "2014-12-29 14:01:38.585731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.586519"], ["updated_at", "2014-12-29 14:01:38.586519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.587264"], ["updated_at", "2014-12-29 14:01:38.587264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.589653"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.589653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.591861"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.591861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.9ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.600293"], ["updated_at", "2014-12-29 14:01:38.600293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:01:38.601542"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:01:38.601542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.603235"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.603235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.604372"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.604372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.605404"], ["updated_at", "2014-12-29 14:01:38.605404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.606243"], ["updated_at", "2014-12-29 14:01:38.606243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.607583"], ["updated_at", "2014-12-29 14:01:38.607583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.610412"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.610412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.612460"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.612460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.620359"], ["updated_at", "2014-12-29 14:01:38.620359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:01:38.621787"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:01:38.621787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.623439"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.623439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.624874"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.624874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.626285"], ["updated_at", "2014-12-29 14:01:38.626285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.627314"], ["updated_at", "2014-12-29 14:01:38.627314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.628752"], ["updated_at", "2014-12-29 14:01:38.628752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.631560"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.631560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.633280"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.633280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.643861"], ["updated_at", "2014-12-29 14:01:38.643861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:01:38.646200"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:01:38.646200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.648421"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.648421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.649824"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.649824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.650853"], ["updated_at", "2014-12-29 14:01:38.650853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.651828"], ["updated_at", "2014-12-29 14:01:38.651828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.652611"], ["updated_at", "2014-12-29 14:01:38.652611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.654091"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.654091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.655537"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.655537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.661924"], ["updated_at", "2014-12-29 14:01:38.661924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:01:38.663164"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:01:38.663164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.664887"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.664887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:01:38.665989"], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.665989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.666751"], ["updated_at", "2014-12-29 14:01:38.666751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.667462"], ["updated_at", "2014-12-29 14:01:38.667462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:01:38.668170"], ["updated_at", "2014-12-29 14:01:38.668170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.669872"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.669872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:01:38.670962"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:01:38.670962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.198833"], ["updated_at", "2014-12-29 14:09:50.198833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:09:50.210939"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:09:50.210939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.226003"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.226003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.228477"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.228477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.229908"], ["updated_at", "2014-12-29 14:09:50.229908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.231224"], ["updated_at", "2014-12-29 14:09:50.231224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.231935"], ["updated_at", "2014-12-29 14:09:50.231935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.241524"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.241524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.244617"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.244617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.257361"], ["updated_at", "2014-12-29 14:09:50.257361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:09:50.258922"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:09:50.258922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.261493"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.261493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.263690"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.263690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.264977"], ["updated_at", "2014-12-29 14:09:50.264977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.266237"], ["updated_at", "2014-12-29 14:09:50.266237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.267276"], ["updated_at", "2014-12-29 14:09:50.267276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.269046"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.269046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.270517"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.270517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.278767"], ["updated_at", "2014-12-29 14:09:50.278767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:09:50.279917"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:09:50.279917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.281356"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.281356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.282182"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.282182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.282859"], ["updated_at", "2014-12-29 14:09:50.282859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.283487"], ["updated_at", "2014-12-29 14:09:50.283487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.284096"], ["updated_at", "2014-12-29 14:09:50.284096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.286102"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.286102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.287219"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.287219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.294794"], ["updated_at", "2014-12-29 14:09:50.294794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:09:50.296931"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:09:50.296931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.299047"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.299047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.300431"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.300431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.301369"], ["updated_at", "2014-12-29 14:09:50.301369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.302053"], ["updated_at", "2014-12-29 14:09:50.302053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.302698"], ["updated_at", "2014-12-29 14:09:50.302698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.304031"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.304031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.305062"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.305062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.313845"], ["updated_at", "2014-12-29 14:09:50.313845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:09:50.315348"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:09:50.315348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.317660"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.317660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.318935"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.318935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.319766"], ["updated_at", "2014-12-29 14:09:50.319766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.320505"], ["updated_at", "2014-12-29 14:09:50.320505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.321164"], ["updated_at", "2014-12-29 14:09:50.321164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.322564"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.322564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.323645"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.323645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.332805"], ["updated_at", "2014-12-29 14:09:50.332805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:09:50.335172"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:09:50.335172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.337465"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.337465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:09:50.338684"], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.338684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.339585"], ["updated_at", "2014-12-29 14:09:50.339585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.340456"], ["updated_at", "2014-12-29 14:09:50.340456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:09:50.341296"], ["updated_at", "2014-12-29 14:09:50.341296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.342830"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.342830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.344358"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:09:50.344358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.377993"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 14:09:50.377993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.0ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.2ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.3ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 14:09:50.432375"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 14:09:50.432375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:27.977758"], ["updated_at", "2014-12-29 14:11:27.977758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:11:27.989703"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:11:27.989703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.001601"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.001601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.003196"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.003196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.004213"], ["updated_at", "2014-12-29 14:11:28.004213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.005017"], ["updated_at", "2014-12-29 14:11:28.005017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.005666"], ["updated_at", "2014-12-29 14:11:28.005666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.012957"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.012957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.014378"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.014378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.2ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.028540"], ["updated_at", "2014-12-29 14:11:28.028540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:11:28.030051"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:11:28.030051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.032095"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.032095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.033547"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.033547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.034884"], ["updated_at", "2014-12-29 14:11:28.034884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.036111"], ["updated_at", "2014-12-29 14:11:28.036111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.037341"], ["updated_at", "2014-12-29 14:11:28.037341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.039788"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.039788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.041410"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.041410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.051926"], ["updated_at", "2014-12-29 14:11:28.051926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:11:28.053717"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:11:28.053717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.055761"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.055761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.056998"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.056998"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.058085"], ["updated_at", "2014-12-29 14:11:28.058085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.059102"], ["updated_at", "2014-12-29 14:11:28.059102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.059994"], ["updated_at", "2014-12-29 14:11:28.059994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.061578"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.061578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.062653"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.062653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.072069"], ["updated_at", "2014-12-29 14:11:28.072069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:11:28.073754"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:11:28.073754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.075801"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.075801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.076972"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.076972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.078045"], ["updated_at", "2014-12-29 14:11:28.078045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.078929"], ["updated_at", "2014-12-29 14:11:28.078929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.079758"], ["updated_at", "2014-12-29 14:11:28.079758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.081418"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.081418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.082568"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.082568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.088225"], ["updated_at", "2014-12-29 14:11:28.088225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:11:28.089449"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:11:28.089449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.090893"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.090893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.091786"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.091786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.092448"], ["updated_at", "2014-12-29 14:11:28.092448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.093085"], ["updated_at", "2014-12-29 14:11:28.093085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.093695"], ["updated_at", "2014-12-29 14:11:28.093695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.095844"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.095844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.097847"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.097847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.107230"], ["updated_at", "2014-12-29 14:11:28.107230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:11:28.108840"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:11:28.108840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.111117"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.111117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:11:28.112380"], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.112380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.113153"], ["updated_at", "2014-12-29 14:11:28.113153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.113846"], ["updated_at", "2014-12-29 14:11:28.113846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:11:28.114483"], ["updated_at", "2014-12-29 14:11:28.114483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.115859"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.115859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.116946"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:11:28.116946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.122719"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 14:11:28.122719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1 SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.3ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 14:11:28.211950"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 14:11:28.211950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id", "created_at", "updated_at" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.672866"], ["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"], ["updated_at", "2014-12-29 14:20:41.672866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.695539"], ["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"], ["updated_at", "2014-12-29 14:20:41.695539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.715642"], ["updated_at", "2014-12-29 14:20:41.715642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:20:41.726572"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:20:41.726572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.742689"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.742689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.744450"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.744450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.745396"], ["updated_at", "2014-12-29 14:20:41.745396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.746292"], ["updated_at", "2014-12-29 14:20:41.746292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.747109"], ["updated_at", "2014-12-29 14:20:41.747109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.754955"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.754955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.756466"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.756466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.763014"], ["updated_at", "2014-12-29 14:20:41.763014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:20:41.764217"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:20:41.764217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.765662"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.765662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.766514"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.766514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.767237"], ["updated_at", "2014-12-29 14:20:41.767237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.767868"], ["updated_at", "2014-12-29 14:20:41.767868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.768889"], ["updated_at", "2014-12-29 14:20:41.768889"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.771362"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.771362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.773427"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.773427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.783341"], ["updated_at", "2014-12-29 14:20:41.783341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:20:41.784801"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:20:41.784801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.787261"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.787261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.789182"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.789182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.790538"], ["updated_at", "2014-12-29 14:20:41.790538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.791813"], ["updated_at", "2014-12-29 14:20:41.791813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.793462"], ["updated_at", "2014-12-29 14:20:41.793462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.796328"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.796328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.798096"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.798096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.804207"], ["updated_at", "2014-12-29 14:20:41.804207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:20:41.805472"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:20:41.805472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.807015"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.807015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.807974"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.807974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.808950"], ["updated_at", "2014-12-29 14:20:41.808950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.810450"], ["updated_at", "2014-12-29 14:20:41.810450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.812350"], ["updated_at", "2014-12-29 14:20:41.812350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.814381"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.814381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.815633"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.815633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.823069"], ["updated_at", "2014-12-29 14:20:41.823069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:20:41.824297"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:20:41.824297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.826201"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.826201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.827392"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.827392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.828510"], ["updated_at", "2014-12-29 14:20:41.828510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.829423"], ["updated_at", "2014-12-29 14:20:41.829423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.830283"], ["updated_at", "2014-12-29 14:20:41.830283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.831978"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.831978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.833279"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.833279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.839425"], ["updated_at", "2014-12-29 14:20:41.839425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 1], ["created_at", "2014-12-29 14:20:41.840615"], ["first_name", "Primus"], ["updated_at", "2014-12-29 14:20:41.840615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.842498"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.842498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:20:41.844232"], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.844232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.846281"], ["updated_at", "2014-12-29 14:20:41.846281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.847884"], ["updated_at", "2014-12-29 14:20:41.847884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:20:41.849096"], ["updated_at", "2014-12-29 14:20:41.849096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.851353"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.851353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:20:41.852926"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:20:41.852926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (1.7ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (1.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200436')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200437')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200438')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200439') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.638543"], ["updated_at", "2014-12-29 14:29:21.638543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.665498"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.665498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.667309"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.667309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.669154"], ["updated_at", "2014-12-29 14:29:21.669154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.670283"], ["updated_at", "2014-12-29 14:29:21.670283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.671088"], ["updated_at", "2014-12-29 14:29:21.671088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.678175"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.678175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.679514"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.679514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.689723"], ["updated_at", "2014-12-29 14:29:21.689723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.693995"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.693995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.695999"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.695999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.697305"], ["updated_at", "2014-12-29 14:29:21.697305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.698466"], ["updated_at", "2014-12-29 14:29:21.698466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.699402"], ["updated_at", "2014-12-29 14:29:21.699402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.701318"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.701318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.702662"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.702662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.709856"], ["updated_at", "2014-12-29 14:29:21.709856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.712502"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.712502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.713374"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.713374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.714034"], ["updated_at", "2014-12-29 14:29:21.714034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.714691"], ["updated_at", "2014-12-29 14:29:21.714691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.715379"], ["updated_at", "2014-12-29 14:29:21.715379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.717246"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.717246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.718559"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.718559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.725108"], ["updated_at", "2014-12-29 14:29:21.725108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.727809"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.727809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.728814"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.728814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.729575"], ["updated_at", "2014-12-29 14:29:21.729575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.730341"], ["updated_at", "2014-12-29 14:29:21.730341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.731169"], ["updated_at", "2014-12-29 14:29:21.731169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.733003"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.733003"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.735278"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.735278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.742877"], ["updated_at", "2014-12-29 14:29:21.742877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.745411"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.745411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.746273"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.746273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.746934"], ["updated_at", "2014-12-29 14:29:21.746934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.747934"], ["updated_at", "2014-12-29 14:29:21.747934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.748649"], ["updated_at", "2014-12-29 14:29:21.748649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.749993"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.749993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.751012"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.751012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.756931"], ["updated_at", "2014-12-29 14:29:21.756931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.760386"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.760386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:29:21.761538"], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.761538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.762313"], ["updated_at", "2014-12-29 14:29:21.762313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.763350"], ["updated_at", "2014-12-29 14:29:21.763350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:29:21.764187"], ["updated_at", "2014-12-29 14:29:21.764187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.765619"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.765619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:29:21.767134"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:29:21.767134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.8ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.6ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.5ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.441788"], ["updated_at", "2014-12-29 14:34:09.441788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.464799"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.464799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.466210"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.466210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.466976"], ["updated_at", "2014-12-29 14:34:09.466976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.467650"], ["updated_at", "2014-12-29 14:34:09.467650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.468313"], ["updated_at", "2014-12-29 14:34:09.468313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.477244"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.477244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.479008"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.479008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.491940"], ["updated_at", "2014-12-29 14:34:09.491940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.495574"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.495574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.496810"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.496810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.497724"], ["updated_at", "2014-12-29 14:34:09.497724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.498594"], ["updated_at", "2014-12-29 14:34:09.498594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.499324"], ["updated_at", "2014-12-29 14:34:09.499324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.500703"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.500703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.501743"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.501743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.510137"], ["updated_at", "2014-12-29 14:34:09.510137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.513846"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.513846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.515238"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.515238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.516230"], ["updated_at", "2014-12-29 14:34:09.516230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.517084"], ["updated_at", "2014-12-29 14:34:09.517084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.517924"], ["updated_at", "2014-12-29 14:34:09.517924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.520288"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.520288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.522990"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.522990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.531391"], ["updated_at", "2014-12-29 14:34:09.531391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.534358"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.534358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.535453"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.535453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.536478"], ["updated_at", "2014-12-29 14:34:09.536478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.537369"], ["updated_at", "2014-12-29 14:34:09.537369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.538123"], ["updated_at", "2014-12-29 14:34:09.538123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.540668"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.540668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.543207"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.543207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.549106"], ["updated_at", "2014-12-29 14:34:09.549106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.552242"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.552242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.553493"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.553493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.554546"], ["updated_at", "2014-12-29 14:34:09.554546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.556112"], ["updated_at", "2014-12-29 14:34:09.556112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.557051"], ["updated_at", "2014-12-29 14:34:09.557051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.558853"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.558853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.560335"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.560335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.568173"], ["updated_at", "2014-12-29 14:34:09.568173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.571766"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.571766"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:34:09.573565"], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.573565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.574944"], ["updated_at", "2014-12-29 14:34:09.574944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.576227"], ["updated_at", "2014-12-29 14:34:09.576227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:34:09.577118"], ["updated_at", "2014-12-29 14:34:09.577118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.579200"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.579200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:34:09.580783"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:34:09.580783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.3ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.4ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.396130"], ["updated_at", "2014-12-29 14:35:49.396130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.421310"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.421310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.422709"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.422709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.423410"], ["updated_at", "2014-12-29 14:35:49.423410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.424126"], ["updated_at", "2014-12-29 14:35:49.424126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.424773"], ["updated_at", "2014-12-29 14:35:49.424773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.433482"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.433482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.435460"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.435460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.442483"], ["updated_at", "2014-12-29 14:35:49.442483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.445629"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.445629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.447026"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.447026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.448093"], ["updated_at", "2014-12-29 14:35:49.448093"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.449485"], ["updated_at", "2014-12-29 14:35:49.449485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.450689"], ["updated_at", "2014-12-29 14:35:49.450689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.453058"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.453058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.454450"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.454450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.464480"], ["updated_at", "2014-12-29 14:35:49.464480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.468432"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.468432"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.470449"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.470449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.471754"], ["updated_at", "2014-12-29 14:35:49.471754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.473154"], ["updated_at", "2014-12-29 14:35:49.473154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.474594"], ["updated_at", "2014-12-29 14:35:49.474594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.476689"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.476689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.478284"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.478284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.486381"], ["updated_at", "2014-12-29 14:35:49.486381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.489000"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.489000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.489882"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.489882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.490581"], ["updated_at", "2014-12-29 14:35:49.490581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.491223"], ["updated_at", "2014-12-29 14:35:49.491223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.492398"], ["updated_at", "2014-12-29 14:35:49.492398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.494076"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.494076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.495426"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.495426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.500907"], ["updated_at", "2014-12-29 14:35:49.500907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.503361"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.503361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.504230"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.504230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.504929"], ["updated_at", "2014-12-29 14:35:49.504929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.505629"], ["updated_at", "2014-12-29 14:35:49.505629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.506381"], ["updated_at", "2014-12-29 14:35:49.506381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.508653"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.508653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.510853"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.510853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.519945"], ["updated_at", "2014-12-29 14:35:49.519945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.523855"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.523855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:35:49.525308"], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.525308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.526194"], ["updated_at", "2014-12-29 14:35:49.526194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.526954"], ["updated_at", "2014-12-29 14:35:49.526954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:35:49.527649"], ["updated_at", "2014-12-29 14:35:49.527649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.529718"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.529718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:35:49.532036"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:35:49.532036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence' Unable to dump views: undefined method `module' for #  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.5ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.748796"], ["updated_at", "2014-12-29 14:52:04.748796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.771811"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.771811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.773669"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.773669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.774648"], ["updated_at", "2014-12-29 14:52:04.774648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.775424"], ["updated_at", "2014-12-29 14:52:04.775424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.776101"], ["updated_at", "2014-12-29 14:52:04.776101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.783457"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.783457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.784870"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.784870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.791899"], ["updated_at", "2014-12-29 14:52:04.791899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.794493"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.794493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.795444"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.795444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.796151"], ["updated_at", "2014-12-29 14:52:04.796151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.797005"], ["updated_at", "2014-12-29 14:52:04.797005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.797783"], ["updated_at", "2014-12-29 14:52:04.797783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.799156"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.799156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.800208"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.800208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.808685"], ["updated_at", "2014-12-29 14:52:04.808685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.811175"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.811175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.812131"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.812131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.812879"], ["updated_at", "2014-12-29 14:52:04.812879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.813746"], ["updated_at", "2014-12-29 14:52:04.813746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.814569"], ["updated_at", "2014-12-29 14:52:04.814569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.815953"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.815953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.817052"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.817052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.824374"], ["updated_at", "2014-12-29 14:52:04.824374"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.828790"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.828790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.830207"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.830207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.831184"], ["updated_at", "2014-12-29 14:52:04.831184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.832243"], ["updated_at", "2014-12-29 14:52:04.832243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.833085"], ["updated_at", "2014-12-29 14:52:04.833085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.834507"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.834507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.835590"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.835590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.842727"], ["updated_at", "2014-12-29 14:52:04.842727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.845178"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.845178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.846044"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.846044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.846752"], ["updated_at", "2014-12-29 14:52:04.846752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.847878"], ["updated_at", "2014-12-29 14:52:04.847878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.848782"], ["updated_at", "2014-12-29 14:52:04.848782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.850549"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.850549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.851927"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.851927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.859826"], ["updated_at", "2014-12-29 14:52:04.859826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.862522"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.862522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:52:04.863763"], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.863763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.864866"], ["updated_at", "2014-12-29 14:52:04.864866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.865669"], ["updated_at", "2014-12-29 14:52:04.865669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:52:04.866382"], ["updated_at", "2014-12-29 14:52:04.866382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.867733"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.867733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:52:04.868861"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:52:04.868861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.128036"], ["updated_at", "2014-12-29 14:58:45.128036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.156215"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.156215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.157711"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.157711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.158464"], ["updated_at", "2014-12-29 14:58:45.158464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.159144"], ["updated_at", "2014-12-29 14:58:45.159144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.159759"], ["updated_at", "2014-12-29 14:58:45.159759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.166609"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.166609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.168376"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.168376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.180004"], ["updated_at", "2014-12-29 14:58:45.180004"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.182900"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.182900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.183984"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.183984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.185403"], ["updated_at", "2014-12-29 14:58:45.185403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.186127"], ["updated_at", "2014-12-29 14:58:45.186127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.186801"], ["updated_at", "2014-12-29 14:58:45.186801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.188142"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.188142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.189173"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.189173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.196183"], ["updated_at", "2014-12-29 14:58:45.196183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.198655"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.198655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.199503"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.199503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.200188"], ["updated_at", "2014-12-29 14:58:45.200188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.201617"], ["updated_at", "2014-12-29 14:58:45.201617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.203029"], ["updated_at", "2014-12-29 14:58:45.203029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.205472"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.205472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.207453"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.207453"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.215225"], ["updated_at", "2014-12-29 14:58:45.215225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.218309"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.218309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.220722"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.220722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.222124"], ["updated_at", "2014-12-29 14:58:45.222124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.222849"], ["updated_at", "2014-12-29 14:58:45.222849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.223499"], ["updated_at", "2014-12-29 14:58:45.223499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.224868"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.224868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.225904"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.225904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.232940"], ["updated_at", "2014-12-29 14:58:45.232940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.236128"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.236128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.237078"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.237078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.238007"], ["updated_at", "2014-12-29 14:58:45.238007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.238747"], ["updated_at", "2014-12-29 14:58:45.238747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.239377"], ["updated_at", "2014-12-29 14:58:45.239377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.240696"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.240696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.241760"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.241760"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.247674"], ["updated_at", "2014-12-29 14:58:45.247674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.250096"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.250096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 14:58:45.251004"], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.251004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.252085"], ["updated_at", "2014-12-29 14:58:45.252085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.252789"], ["updated_at", "2014-12-29 14:58:45.252789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 14:58:45.254064"], ["updated_at", "2014-12-29 14:58:45.254064"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.255988"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.255988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 14:58:45.257463"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 14:58:45.257463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.619636"], ["updated_at", "2014-12-29 15:00:43.619636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.642040"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.642040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.643681"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.643681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.644658"], ["updated_at", "2014-12-29 15:00:43.644658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.645387"], ["updated_at", "2014-12-29 15:00:43.645387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.646067"], ["updated_at", "2014-12-29 15:00:43.646067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.653568"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.653568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.655211"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.655211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.668369"], ["updated_at", "2014-12-29 15:00:43.668369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.671016"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.671016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.671904"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.671904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.672572"], ["updated_at", "2014-12-29 15:00:43.672572"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.673750"], ["updated_at", "2014-12-29 15:00:43.673750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.674983"], ["updated_at", "2014-12-29 15:00:43.674983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.677583"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.677583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.679112"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.679112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.688615"], ["updated_at", "2014-12-29 15:00:43.688615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.691267"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.691267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.692131"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.692131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.693092"], ["updated_at", "2014-12-29 15:00:43.693092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.693771"], ["updated_at", "2014-12-29 15:00:43.693771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.694446"], ["updated_at", "2014-12-29 15:00:43.694446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.695749"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.695749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.696766"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.696766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.702923"], ["updated_at", "2014-12-29 15:00:43.702923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.705951"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.705951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.707299"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.707299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.708224"], ["updated_at", "2014-12-29 15:00:43.708224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.709039"], ["updated_at", "2014-12-29 15:00:43.709039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.709832"], ["updated_at", "2014-12-29 15:00:43.709832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.712027"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.712027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.713698"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.713698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.721256"], ["updated_at", "2014-12-29 15:00:43.721256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.723954"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.723954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.724836"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.724836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.725523"], ["updated_at", "2014-12-29 15:00:43.725523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.726653"], ["updated_at", "2014-12-29 15:00:43.726653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.727337"], ["updated_at", "2014-12-29 15:00:43.727337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.728694"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.728694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.729732"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.729732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.735214"], ["updated_at", "2014-12-29 15:00:43.735214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.737904"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.737904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:00:43.739722"], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.739722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.741074"], ["updated_at", "2014-12-29 15:00:43.741074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.742554"], ["updated_at", "2014-12-29 15:00:43.742554"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:00:43.743919"], ["updated_at", "2014-12-29 15:00:43.743919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.746455"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.746455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:00:43.748200"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:00:43.748200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.3ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence' Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:20.970968"], ["updated_at", "2014-12-29 15:02:20.970968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.006285"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.006285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.008608"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.008608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.009901"], ["updated_at", "2014-12-29 15:02:21.009901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.011224"], ["updated_at", "2014-12-29 15:02:21.011224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.012311"], ["updated_at", "2014-12-29 15:02:21.012311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.021895"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.021895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.024449"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.024449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.038369"], ["updated_at", "2014-12-29 15:02:21.038369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.042472"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.042472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.044226"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.044226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.045388"], ["updated_at", "2014-12-29 15:02:21.045388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.046598"], ["updated_at", "2014-12-29 15:02:21.046598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.047765"], ["updated_at", "2014-12-29 15:02:21.047765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.049870"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.049870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.051608"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.051608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.060335"], ["updated_at", "2014-12-29 15:02:21.060335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.062719"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.062719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.063602"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.063602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.064270"], ["updated_at", "2014-12-29 15:02:21.064270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.064939"], ["updated_at", "2014-12-29 15:02:21.064939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.065566"], ["updated_at", "2014-12-29 15:02:21.065566"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.068066"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.068066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.069734"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.069734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.078492"], ["updated_at", "2014-12-29 15:02:21.078492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.082501"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.082501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.083763"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.083763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.084926"], ["updated_at", "2014-12-29 15:02:21.084926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.086556"], ["updated_at", "2014-12-29 15:02:21.086556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.087937"], ["updated_at", "2014-12-29 15:02:21.087937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.089862"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.089862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.091231"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.091231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.097090"], ["updated_at", "2014-12-29 15:02:21.097090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.099890"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.099890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.101701"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.101701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.103242"], ["updated_at", "2014-12-29 15:02:21.103242"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.104731"], ["updated_at", "2014-12-29 15:02:21.104731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.106302"], ["updated_at", "2014-12-29 15:02:21.106302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.108582"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.108582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.110035"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.110035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.119080"], ["updated_at", "2014-12-29 15:02:21.119080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.123399"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.123399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:02:21.124958"], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.124958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.125964"], ["updated_at", "2014-12-29 15:02:21.125964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.126710"], ["updated_at", "2014-12-29 15:02:21.126710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:02:21.127483"], ["updated_at", "2014-12-29 15:02:21.127483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.130345"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.130345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:02:21.131544"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:02:21.131544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.3ms)  SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'   (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence' Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (12.4ms) rollback transaction  (0.2ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.215093"], ["updated_at", "2014-12-29 15:03:48.215093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.241648"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.241648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.243533"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.243533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.245116"], ["updated_at", "2014-12-29 15:03:48.245116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.246264"], ["updated_at", "2014-12-29 15:03:48.246264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.247199"], ["updated_at", "2014-12-29 15:03:48.247199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.255566"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.255566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.257109"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.257109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.271005"], ["updated_at", "2014-12-29 15:03:48.271005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.275123"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.275123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.276342"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.276342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.277255"], ["updated_at", "2014-12-29 15:03:48.277255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.278007"], ["updated_at", "2014-12-29 15:03:48.278007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.278670"], ["updated_at", "2014-12-29 15:03:48.278670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.279986"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.279986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.281018"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.281018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.288026"], ["updated_at", "2014-12-29 15:03:48.288026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.290791"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.290791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.292528"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.292528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.293826"], ["updated_at", "2014-12-29 15:03:48.293826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.295472"], ["updated_at", "2014-12-29 15:03:48.295472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.296717"], ["updated_at", "2014-12-29 15:03:48.296717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.299090"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.299090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.301095"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.301095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.310599"], ["updated_at", "2014-12-29 15:03:48.310599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.314264"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.314264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.315971"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.315971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.317397"], ["updated_at", "2014-12-29 15:03:48.317397"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.318659"], ["updated_at", "2014-12-29 15:03:48.318659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.319951"], ["updated_at", "2014-12-29 15:03:48.319951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.322604"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.322604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.325051"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.325051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.334475"], ["updated_at", "2014-12-29 15:03:48.334475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.337486"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.337486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.338932"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.338932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.339866"], ["updated_at", "2014-12-29 15:03:48.339866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.340884"], ["updated_at", "2014-12-29 15:03:48.340884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.341892"], ["updated_at", "2014-12-29 15:03:48.341892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.343292"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.343292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.345108"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.345108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.351569"], ["updated_at", "2014-12-29 15:03:48.351569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.354557"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.354557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:03:48.355577"], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.355577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.356338"], ["updated_at", "2014-12-29 15:03:48.356338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.357128"], ["updated_at", "2014-12-29 15:03:48.357128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:03:48.358203"], ["updated_at", "2014-12-29 15:03:48.358203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.361609"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.361609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:03:48.363820"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:03:48.363820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence' Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.175520"], ["updated_at", "2014-12-29 15:06:31.175520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.195866"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.195866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.198096"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.198096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.199449"], ["updated_at", "2014-12-29 15:06:31.199449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.200714"], ["updated_at", "2014-12-29 15:06:31.200714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.201984"], ["updated_at", "2014-12-29 15:06:31.201984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.211399"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.211399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.212892"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.212892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.221235"], ["updated_at", "2014-12-29 15:06:31.221235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.225825"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.225825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.227268"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.227268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.228191"], ["updated_at", "2014-12-29 15:06:31.228191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.228980"], ["updated_at", "2014-12-29 15:06:31.228980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.229629"], ["updated_at", "2014-12-29 15:06:31.229629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.230960"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.230960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.231981"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.231981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.240016"], ["updated_at", "2014-12-29 15:06:31.240016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.243128"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.243128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.244092"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.244092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.244782"], ["updated_at", "2014-12-29 15:06:31.244782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.245943"], ["updated_at", "2014-12-29 15:06:31.245943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.247168"], ["updated_at", "2014-12-29 15:06:31.247168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.249667"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.249667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.251613"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.251613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.260404"], ["updated_at", "2014-12-29 15:06:31.260404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.263343"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.263343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.264798"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.264798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.265664"], ["updated_at", "2014-12-29 15:06:31.265664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.266324"], ["updated_at", "2014-12-29 15:06:31.266324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.266982"], ["updated_at", "2014-12-29 15:06:31.266982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.268324"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.268324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.269384"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.269384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.275884"], ["updated_at", "2014-12-29 15:06:31.275884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.278505"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.278505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.279361"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.279361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.280059"], ["updated_at", "2014-12-29 15:06:31.280059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.280699"], ["updated_at", "2014-12-29 15:06:31.280699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.281771"], ["updated_at", "2014-12-29 15:06:31.281771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.283699"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.283699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.285081"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.285081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.292279"], ["updated_at", "2014-12-29 15:06:31.292279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.294960"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.294960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:06:31.295860"], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.295860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.296880"], ["updated_at", "2014-12-29 15:06:31.296880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.297875"], ["updated_at", "2014-12-29 15:06:31.297875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:06:31.298825"], ["updated_at", "2014-12-29 15:06:31.298825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.301701"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.301701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:06:31.303812"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:06:31.303812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.3ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence' Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (1.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence' Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.2ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.868425"], ["updated_at", "2014-12-29 15:14:44.868425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.896839"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.896839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.898526"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.898526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.899273"], ["updated_at", "2014-12-29 15:14:44.899273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.899929"], ["updated_at", "2014-12-29 15:14:44.899929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.900552"], ["updated_at", "2014-12-29 15:14:44.900552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.908127"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.908127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.910702"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.910702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.917299"], ["updated_at", "2014-12-29 15:14:44.917299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.919921"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.919921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.920933"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.920933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.921629"], ["updated_at", "2014-12-29 15:14:44.921629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.922283"], ["updated_at", "2014-12-29 15:14:44.922283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.922902"], ["updated_at", "2014-12-29 15:14:44.922902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.924628"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.924628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.925909"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.925909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.934204"], ["updated_at", "2014-12-29 15:14:44.934204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.937095"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.937095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.937970"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.937970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.938624"], ["updated_at", "2014-12-29 15:14:44.938624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.939287"], ["updated_at", "2014-12-29 15:14:44.939287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.940194"], ["updated_at", "2014-12-29 15:14:44.940194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.942519"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.942519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.944493"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.944493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.952742"], ["updated_at", "2014-12-29 15:14:44.952742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.955815"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.955815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.956900"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.956900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.957876"], ["updated_at", "2014-12-29 15:14:44.957876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.959738"], ["updated_at", "2014-12-29 15:14:44.959738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.961092"], ["updated_at", "2014-12-29 15:14:44.961092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.962816"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.962816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.964052"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.964052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.969489"], ["updated_at", "2014-12-29 15:14:44.969489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.972222"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.972222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.973214"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.973214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.974017"], ["updated_at", "2014-12-29 15:14:44.974017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.974769"], ["updated_at", "2014-12-29 15:14:44.974769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.975440"], ["updated_at", "2014-12-29 15:14:44.975440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.977044"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.977044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.978143"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.978143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.983508"], ["updated_at", "2014-12-29 15:14:44.983508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.985897"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.985897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:14:44.986742"], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.986742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.987415"], ["updated_at", "2014-12-29 15:14:44.987415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.988060"], ["updated_at", "2014-12-29 15:14:44.988060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:14:44.988669"], ["updated_at", "2014-12-29 15:14:44.988669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.990518"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.990518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:14:44.992535"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:14:44.992535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.5ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.740567"], ["updated_at", "2014-12-29 15:15:21.740567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.762094"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.762094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.764262"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.764262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.765498"], ["updated_at", "2014-12-29 15:15:21.765498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.766575"], ["updated_at", "2014-12-29 15:15:21.766575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.767380"], ["updated_at", "2014-12-29 15:15:21.767380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.774978"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.774978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.776387"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.776387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.785362"], ["updated_at", "2014-12-29 15:15:21.785362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.788085"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.788085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.789017"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.789017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.789674"], ["updated_at", "2014-12-29 15:15:21.789674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.790313"], ["updated_at", "2014-12-29 15:15:21.790313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.791647"], ["updated_at", "2014-12-29 15:15:21.791647"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.794272"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.794272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.795981"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.795981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.807353"], ["updated_at", "2014-12-29 15:15:21.807353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.811212"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.811212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.812540"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.812540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.813436"], ["updated_at", "2014-12-29 15:15:21.813436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.814253"], ["updated_at", "2014-12-29 15:15:21.814253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.815298"], ["updated_at", "2014-12-29 15:15:21.815298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.817110"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.817110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.818525"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.818525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.825875"], ["updated_at", "2014-12-29 15:15:21.825875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.829872"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.829872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.832217"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.832217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.833070"], ["updated_at", "2014-12-29 15:15:21.833070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.833839"], ["updated_at", "2014-12-29 15:15:21.833839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.834609"], ["updated_at", "2014-12-29 15:15:21.834609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.836336"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.836336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.837418"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.837418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.844573"], ["updated_at", "2014-12-29 15:15:21.844573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.847813"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.847813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.848663"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.848663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.849502"], ["updated_at", "2014-12-29 15:15:21.849502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.850215"], ["updated_at", "2014-12-29 15:15:21.850215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.850845"], ["updated_at", "2014-12-29 15:15:21.850845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.852147"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.852147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.853175"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.853175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.858524"], ["updated_at", "2014-12-29 15:15:21.858524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.861983"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.861983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:15:21.863789"], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.863789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.865446"], ["updated_at", "2014-12-29 15:15:21.865446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.866468"], ["updated_at", "2014-12-29 15:15:21.866468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:15:21.867314"], ["updated_at", "2014-12-29 15:15:21.867314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.869163"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.869163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:15:21.870493"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:15:21.870493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.9ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_logging_error ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence' Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.6ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.212549"], ["updated_at", "2014-12-29 15:19:08.212549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.234451"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.234451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.236781"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.236781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.238128"], ["updated_at", "2014-12-29 15:19:08.238128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.239421"], ["updated_at", "2014-12-29 15:19:08.239421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.240613"], ["updated_at", "2014-12-29 15:19:08.240613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.250223"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.250223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.251949"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.251949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.258465"], ["updated_at", "2014-12-29 15:19:08.258465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.261389"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.261389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.263273"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.263273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.264451"], ["updated_at", "2014-12-29 15:19:08.264451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.265614"], ["updated_at", "2014-12-29 15:19:08.265614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.266565"], ["updated_at", "2014-12-29 15:19:08.266565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.268405"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.268405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.269679"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.269679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.278082"], ["updated_at", "2014-12-29 15:19:08.278082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.281341"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.281341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.282424"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.282424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.283498"], ["updated_at", "2014-12-29 15:19:08.283498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.284332"], ["updated_at", "2014-12-29 15:19:08.284332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.285090"], ["updated_at", "2014-12-29 15:19:08.285090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.286560"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.286560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.287607"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.287607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.293953"], ["updated_at", "2014-12-29 15:19:08.293953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.297468"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.297468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.298986"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.298986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.300159"], ["updated_at", "2014-12-29 15:19:08.300159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.301146"], ["updated_at", "2014-12-29 15:19:08.301146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.301794"], ["updated_at", "2014-12-29 15:19:08.301794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.303163"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.303163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.304159"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.304159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.313389"], ["updated_at", "2014-12-29 15:19:08.313389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.318738"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.318738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.320540"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.320540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.321374"], ["updated_at", "2014-12-29 15:19:08.321374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.322026"], ["updated_at", "2014-12-29 15:19:08.322026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.322675"], ["updated_at", "2014-12-29 15:19:08.322675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.324081"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.324081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.325314"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.325314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.333209"], ["updated_at", "2014-12-29 15:19:08.333209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.335819"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.335819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:19:08.336677"], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.336677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.337363"], ["updated_at", "2014-12-29 15:19:08.337363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.337979"], ["updated_at", "2014-12-29 15:19:08.337979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:19:08.338613"], ["updated_at", "2014-12-29 15:19:08.338613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.340133"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.340133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:19:08.341784"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:19:08.341784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ SchemaDumperTest: test_non_allowed_object_raises_error ------------------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  Unable to dump views: ActiveRecord::SchemaDumper.ignore_views accepts an array of String and / or Regexp values.  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.370108"], ["updated_at", "2014-12-29 15:20:09.370108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.388947"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.388947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.390440"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.390440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.391350"], ["updated_at", "2014-12-29 15:20:09.391350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.392024"], ["updated_at", "2014-12-29 15:20:09.392024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.392635"], ["updated_at", "2014-12-29 15:20:09.392635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.399790"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.399790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.401468"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.401468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.411218"], ["updated_at", "2014-12-29 15:20:09.411218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.413911"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.413911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.414909"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.414909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.415678"], ["updated_at", "2014-12-29 15:20:09.415678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.416413"], ["updated_at", "2014-12-29 15:20:09.416413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.417347"], ["updated_at", "2014-12-29 15:20:09.417347"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.420352"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.420352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.421745"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.421745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.428876"], ["updated_at", "2014-12-29 15:20:09.428876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.431290"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.431290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.432257"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.432257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.432963"], ["updated_at", "2014-12-29 15:20:09.432963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.433605"], ["updated_at", "2014-12-29 15:20:09.433605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.434278"], ["updated_at", "2014-12-29 15:20:09.434278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.436109"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.436109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.438146"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.438146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.447588"], ["updated_at", "2014-12-29 15:20:09.447588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.451322"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.451322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.452573"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.452573"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.453891"], ["updated_at", "2014-12-29 15:20:09.453891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.454795"], ["updated_at", "2014-12-29 15:20:09.454795"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.455659"], ["updated_at", "2014-12-29 15:20:09.455659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.457129"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.457129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.458243"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.458243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.466515"], ["updated_at", "2014-12-29 15:20:09.466515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.471380"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.471380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.472694"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.472694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.473599"], ["updated_at", "2014-12-29 15:20:09.473599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.474335"], ["updated_at", "2014-12-29 15:20:09.474335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.474988"], ["updated_at", "2014-12-29 15:20:09.474988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.476239"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.476239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.477238"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.477238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.483044"], ["updated_at", "2014-12-29 15:20:09.483044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.485564"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.485564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:20:09.486420"], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.486420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.487089"], ["updated_at", "2014-12-29 15:20:09.487089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.487746"], ["updated_at", "2014-12-29 15:20:09.487746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:20:09.488383"], ["updated_at", "2014-12-29 15:20:09.488383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.489987"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.489987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:20:09.491056"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:20:09.491056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.103673"], ["updated_at", "2014-12-29 15:21:39.103673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.127508"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.127508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.128990"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.128990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.129708"], ["updated_at", "2014-12-29 15:21:39.129708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.130350"], ["updated_at", "2014-12-29 15:21:39.130350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.130979"], ["updated_at", "2014-12-29 15:21:39.130979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.137924"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.137924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.139515"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.139515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.150942"], ["updated_at", "2014-12-29 15:21:39.150942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.153379"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.153379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.154217"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.154217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.154886"], ["updated_at", "2014-12-29 15:21:39.154886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.156186"], ["updated_at", "2014-12-29 15:21:39.156186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.157425"], ["updated_at", "2014-12-29 15:21:39.157425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.159834"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.159834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.161761"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.161761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.173500"], ["updated_at", "2014-12-29 15:21:39.173500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.176489"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.176489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.178086"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.178086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.179452"], ["updated_at", "2014-12-29 15:21:39.179452"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.180684"], ["updated_at", "2014-12-29 15:21:39.180684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.182152"], ["updated_at", "2014-12-29 15:21:39.182152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.185102"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.185102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.187131"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.187131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.196634"], ["updated_at", "2014-12-29 15:21:39.196634"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.200628"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.200628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.201946"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.201946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.202920"], ["updated_at", "2014-12-29 15:21:39.202920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.203801"], ["updated_at", "2014-12-29 15:21:39.203801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.204619"], ["updated_at", "2014-12-29 15:21:39.204619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.206269"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.206269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.207321"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.207321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.213088"], ["updated_at", "2014-12-29 15:21:39.213088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.215513"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.215513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.216378"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.216378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.217327"], ["updated_at", "2014-12-29 15:21:39.217327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.218594"], ["updated_at", "2014-12-29 15:21:39.218594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.219926"], ["updated_at", "2014-12-29 15:21:39.219926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.221622"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.221622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.223014"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.223014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.229560"], ["updated_at", "2014-12-29 15:21:39.229560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.232831"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.232831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 15:21:39.233978"], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.233978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.234770"], ["updated_at", "2014-12-29 15:21:39.234770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.235996"], ["updated_at", "2014-12-29 15:21:39.235996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 15:21:39.236887"], ["updated_at", "2014-12-29 15:21:39.236887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.238693"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.238693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 15:21:39.240623"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 15:21:39.240623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 17:34:21.998637"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-29 17:34:21.998637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.0ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.052800"], ["updated_at", "2014-12-29 17:34:22.052800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.070356"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.070356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.071614"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.071614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.073130"], ["updated_at", "2014-12-29 17:34:22.073130"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.074401"], ["updated_at", "2014-12-29 17:34:22.074401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.075870"], ["updated_at", "2014-12-29 17:34:22.075870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.084723"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.084723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.086639"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.086639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.095495"], ["updated_at", "2014-12-29 17:34:22.095495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.099082"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.099082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.101260"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.101260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.102462"], ["updated_at", "2014-12-29 17:34:22.102462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.103314"], ["updated_at", "2014-12-29 17:34:22.103314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.103966"], ["updated_at", "2014-12-29 17:34:22.103966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.105306"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.105306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.106348"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.106348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.114762"], ["updated_at", "2014-12-29 17:34:22.114762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.119245"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.119245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.121063"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.121063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.122033"], ["updated_at", "2014-12-29 17:34:22.122033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.122909"], ["updated_at", "2014-12-29 17:34:22.122909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.123712"], ["updated_at", "2014-12-29 17:34:22.123712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.125388"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.125388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.126669"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.126669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.134850"], ["updated_at", "2014-12-29 17:34:22.134850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.140296"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.140296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.141681"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.141681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.142595"], ["updated_at", "2014-12-29 17:34:22.142595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.143426"], ["updated_at", "2014-12-29 17:34:22.143426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.144250"], ["updated_at", "2014-12-29 17:34:22.144250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.145865"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.145865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.146908"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.146908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.154201"], ["updated_at", "2014-12-29 17:34:22.154201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.157179"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.157179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.158115"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.158115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.158919"], ["updated_at", "2014-12-29 17:34:22.158919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.159682"], ["updated_at", "2014-12-29 17:34:22.159682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.160326"], ["updated_at", "2014-12-29 17:34:22.160326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.161660"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.161660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.162681"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.162681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.170761"], ["updated_at", "2014-12-29 17:34:22.170761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.174840"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.174840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:34:22.176347"], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.176347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.177509"], ["updated_at", "2014-12-29 17:34:22.177509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.178600"], ["updated_at", "2014-12-29 17:34:22.178600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:34:22.179761"], ["updated_at", "2014-12-29 17:34:22.179761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.181885"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.181885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:34:22.183698"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:34:22.183698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.0ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.300424"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-29 17:40:33.300424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.330374"], ["updated_at", "2014-12-29 17:40:33.330374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.351624"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.351624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.353284"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.353284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.354110"], ["updated_at", "2014-12-29 17:40:33.354110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.354823"], ["updated_at", "2014-12-29 17:40:33.354823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.355578"], ["updated_at", "2014-12-29 17:40:33.355578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.364122"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.364122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.366084"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.366084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.372747"], ["updated_at", "2014-12-29 17:40:33.372747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.375580"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.375580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.377071"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.377071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.378341"], ["updated_at", "2014-12-29 17:40:33.378341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.380101"], ["updated_at", "2014-12-29 17:40:33.380101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.381224"], ["updated_at", "2014-12-29 17:40:33.381224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.383286"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.383286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.384601"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.384601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.392676"], ["updated_at", "2014-12-29 17:40:33.392676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.396081"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.396081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.397287"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.397287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.398160"], ["updated_at", "2014-12-29 17:40:33.398160"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.399545"], ["updated_at", "2014-12-29 17:40:33.399545"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.400812"], ["updated_at", "2014-12-29 17:40:33.400812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.403031"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.403031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.404735"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.404735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.413368"], ["updated_at", "2014-12-29 17:40:33.413368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.417912"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.417912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.419400"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.419400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.420541"], ["updated_at", "2014-12-29 17:40:33.420541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.421320"], ["updated_at", "2014-12-29 17:40:33.421320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.422007"], ["updated_at", "2014-12-29 17:40:33.422007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.423351"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.423351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.424342"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.424342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.431337"], ["updated_at", "2014-12-29 17:40:33.431337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.433989"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.433989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.434853"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.434853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.435570"], ["updated_at", "2014-12-29 17:40:33.435570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.436539"], ["updated_at", "2014-12-29 17:40:33.436539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.437194"], ["updated_at", "2014-12-29 17:40:33.437194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.438523"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.438523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.439596"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.439596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.447402"], ["updated_at", "2014-12-29 17:40:33.447402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.450184"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.450184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:40:33.451028"], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.451028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.451899"], ["updated_at", "2014-12-29 17:40:33.451899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.452765"], ["updated_at", "2014-12-29 17:40:33.452765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:40:33.453460"], ["updated_at", "2014-12-29 17:40:33.453460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.454792"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.454792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:40:33.455845"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:40:33.455845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.670870"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-29 17:41:20.670870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.5ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.704851"], ["updated_at", "2014-12-29 17:41:20.704851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.724921"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.724921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.726648"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.726648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.727553"], ["updated_at", "2014-12-29 17:41:20.727553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.728393"], ["updated_at", "2014-12-29 17:41:20.728393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.729240"], ["updated_at", "2014-12-29 17:41:20.729240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.737939"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.737939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.739327"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.739327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.746497"], ["updated_at", "2014-12-29 17:41:20.746497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.749639"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.749639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.750564"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.750564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.751220"], ["updated_at", "2014-12-29 17:41:20.751220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.751876"], ["updated_at", "2014-12-29 17:41:20.751876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.752795"], ["updated_at", "2014-12-29 17:41:20.752795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.754071"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.754071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.755115"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.755115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.764286"], ["updated_at", "2014-12-29 17:41:20.764286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.768218"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.768218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.769631"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.769631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.770547"], ["updated_at", "2014-12-29 17:41:20.770547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.771374"], ["updated_at", "2014-12-29 17:41:20.771374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.772202"], ["updated_at", "2014-12-29 17:41:20.772202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.773820"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.773820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.774904"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.774904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.781397"], ["updated_at", "2014-12-29 17:41:20.781397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.785640"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.785640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.786942"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.786942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.787694"], ["updated_at", "2014-12-29 17:41:20.787694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.788360"], ["updated_at", "2014-12-29 17:41:20.788360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.788973"], ["updated_at", "2014-12-29 17:41:20.788973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.790295"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.790295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.791292"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.791292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.796810"], ["updated_at", "2014-12-29 17:41:20.796810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.799928"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.799928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.800857"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.800857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.801628"], ["updated_at", "2014-12-29 17:41:20.801628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.802369"], ["updated_at", "2014-12-29 17:41:20.802369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.803226"], ["updated_at", "2014-12-29 17:41:20.803226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.805469"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.805469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.806788"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.806788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.812050"], ["updated_at", "2014-12-29 17:41:20.812050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.814592"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.814592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:41:20.815721"], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.815721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.816887"], ["updated_at", "2014-12-29 17:41:20.816887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.817874"], ["updated_at", "2014-12-29 17:41:20.817874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:41:20.818992"], ["updated_at", "2014-12-29 17:41:20.818992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.820443"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.820443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:41:20.821505"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:41:20.821505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.807486"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-29 17:43:47.807486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.838809"], ["updated_at", "2014-12-29 17:43:47.838809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.857407"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.857407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.859586"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.859586"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.860553"], ["updated_at", "2014-12-29 17:43:47.860553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.861542"], ["updated_at", "2014-12-29 17:43:47.861542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.862250"], ["updated_at", "2014-12-29 17:43:47.862250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.869463"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.869463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.871063"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.871063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.879629"], ["updated_at", "2014-12-29 17:43:47.879629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.882747"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.882747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.883676"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.883676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.884855"], ["updated_at", "2014-12-29 17:43:47.884855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.885609"], ["updated_at", "2014-12-29 17:43:47.885609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.886220"], ["updated_at", "2014-12-29 17:43:47.886220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.887519"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.887519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.888523"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.888523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.897680"], ["updated_at", "2014-12-29 17:43:47.897680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.900281"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.900281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.901584"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.901584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.902425"], ["updated_at", "2014-12-29 17:43:47.902425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.903263"], ["updated_at", "2014-12-29 17:43:47.903263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.903905"], ["updated_at", "2014-12-29 17:43:47.903905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.905222"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.905222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.906257"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.906257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.913019"], ["updated_at", "2014-12-29 17:43:47.913019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.915520"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.915520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.916426"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.916426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.917279"], ["updated_at", "2014-12-29 17:43:47.917279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.917921"], ["updated_at", "2014-12-29 17:43:47.917921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.918822"], ["updated_at", "2014-12-29 17:43:47.918822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.920147"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.920147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.921258"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.921258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.927404"], ["updated_at", "2014-12-29 17:43:47.927404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.930442"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.930442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.931484"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.931484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.932169"], ["updated_at", "2014-12-29 17:43:47.932169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.933095"], ["updated_at", "2014-12-29 17:43:47.933095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.933830"], ["updated_at", "2014-12-29 17:43:47.933830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.935288"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.935288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.936354"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.936354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.943583"], ["updated_at", "2014-12-29 17:43:47.943583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.947280"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.947280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 17:43:47.949127"], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.949127"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.950571"], ["updated_at", "2014-12-29 17:43:47.950571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.951776"], ["updated_at", "2014-12-29 17:43:47.951776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 17:43:47.952798"], ["updated_at", "2014-12-29 17:43:47.952798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.954572"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.954572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 17:43:47.955959"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-29 17:43:47.955959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.342320"], ["updated_at", "2014-12-30 08:38:55.342320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.373305"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.373305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.375044"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.375044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.376051"], ["updated_at", "2014-12-30 08:38:55.376051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.377032"], ["updated_at", "2014-12-30 08:38:55.377032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.378360"], ["updated_at", "2014-12-30 08:38:55.378360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.387380"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.387380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.388752"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.388752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.398403"], ["updated_at", "2014-12-30 08:38:55.398403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.401431"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.401431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.402557"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.402557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.403472"], ["updated_at", "2014-12-30 08:38:55.403472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.404341"], ["updated_at", "2014-12-30 08:38:55.404341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.404999"], ["updated_at", "2014-12-30 08:38:55.404999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.406397"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.406397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.407483"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.407483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.415874"], ["updated_at", "2014-12-30 08:38:55.415874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.418594"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.418594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.419534"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.419534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.420188"], ["updated_at", "2014-12-30 08:38:55.420188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.420890"], ["updated_at", "2014-12-30 08:38:55.420890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.421712"], ["updated_at", "2014-12-30 08:38:55.421712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.423032"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.423032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.424053"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.424053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.431049"], ["updated_at", "2014-12-30 08:38:55.431049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.433925"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.433925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.434856"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.434856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.435508"], ["updated_at", "2014-12-30 08:38:55.435508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.436545"], ["updated_at", "2014-12-30 08:38:55.436545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.437381"], ["updated_at", "2014-12-30 08:38:55.437381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.439051"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.439051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.440364"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.440364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (2.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (2.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.451567"], ["updated_at", "2014-12-30 08:38:55.451567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.454723"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.454723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.455638"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.455638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.456299"], ["updated_at", "2014-12-30 08:38:55.456299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.456936"], ["updated_at", "2014-12-30 08:38:55.456936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.457556"], ["updated_at", "2014-12-30 08:38:55.457556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.458858"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.458858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.459877"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.459877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.469136"], ["updated_at", "2014-12-30 08:38:55.469136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.473073"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.473073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:38:55.474223"], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.474223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.475096"], ["updated_at", "2014-12-30 08:38:55.475096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.475959"], ["updated_at", "2014-12-30 08:38:55.475959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:38:55.476758"], ["updated_at", "2014-12-30 08:38:55.476758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.478375"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.478375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.479436"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:38:55.479436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (1.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (2.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 08:38:55.525776"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 08:38:55.525776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.840873"], ["updated_at", "2014-12-30 08:40:00.840873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.869824"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.869824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.871905"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.871905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.873045"], ["updated_at", "2014-12-30 08:40:00.873045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.874016"], ["updated_at", "2014-12-30 08:40:00.874016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.874897"], ["updated_at", "2014-12-30 08:40:00.874897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.882059"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.882059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.883452"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.883452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.896233"], ["updated_at", "2014-12-30 08:40:00.896233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.899932"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.899932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.901661"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.901661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.902968"], ["updated_at", "2014-12-30 08:40:00.902968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.904180"], ["updated_at", "2014-12-30 08:40:00.904180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.905371"], ["updated_at", "2014-12-30 08:40:00.905371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.907658"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.907658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.909071"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.909071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.919561"], ["updated_at", "2014-12-30 08:40:00.919561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.924043"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.924043"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.926192"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.926192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.927580"], ["updated_at", "2014-12-30 08:40:00.927580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.928682"], ["updated_at", "2014-12-30 08:40:00.928682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.929560"], ["updated_at", "2014-12-30 08:40:00.929560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.931311"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.931311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.932730"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.932730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.939514"], ["updated_at", "2014-12-30 08:40:00.939514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.942038"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.942038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.942965"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.942965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.943638"], ["updated_at", "2014-12-30 08:40:00.943638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.944292"], ["updated_at", "2014-12-30 08:40:00.944292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.944958"], ["updated_at", "2014-12-30 08:40:00.944958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.946456"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.946456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.947496"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.947496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.953423"], ["updated_at", "2014-12-30 08:40:00.953423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.956983"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.956983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.958591"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.958591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.959640"], ["updated_at", "2014-12-30 08:40:00.959640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.960390"], ["updated_at", "2014-12-30 08:40:00.960390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.961026"], ["updated_at", "2014-12-30 08:40:00.961026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.962390"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.962390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.963439"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.963439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.971760"], ["updated_at", "2014-12-30 08:40:00.971760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.975798"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.975798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:40:00.977037"], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.977037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.977950"], ["updated_at", "2014-12-30 08:40:00.977950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.978773"], ["updated_at", "2014-12-30 08:40:00.978773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:40:00.979465"], ["updated_at", "2014-12-30 08:40:00.979465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.980780"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.980780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:40:00.981778"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:40:00.981778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 08:40:01.044185"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 08:40:01.044185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.8ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items" CASCADE SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.145804"], ["updated_at", "2014-12-30 08:49:06.145804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.165215"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.165215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.166387"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.166387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.167372"], ["updated_at", "2014-12-30 08:49:06.167372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.168019"], ["updated_at", "2014-12-30 08:49:06.168019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.168629"], ["updated_at", "2014-12-30 08:49:06.168629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.175673"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.175673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.177154"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.177154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.186116"], ["updated_at", "2014-12-30 08:49:06.186116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.189915"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.189915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.191272"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.191272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.192473"], ["updated_at", "2014-12-30 08:49:06.192473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.193396"], ["updated_at", "2014-12-30 08:49:06.193396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.194278"], ["updated_at", "2014-12-30 08:49:06.194278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.197402"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.197402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.198789"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.198789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.206172"], ["updated_at", "2014-12-30 08:49:06.206172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.208709"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.208709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.209690"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.209690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.210487"], ["updated_at", "2014-12-30 08:49:06.210487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.211157"], ["updated_at", "2014-12-30 08:49:06.211157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.211803"], ["updated_at", "2014-12-30 08:49:06.211803"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.213688"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.213688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.215108"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.215108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.222139"], ["updated_at", "2014-12-30 08:49:06.222139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.225775"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.225775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.227704"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.227704"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.229231"], ["updated_at", "2014-12-30 08:49:06.229231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.230320"], ["updated_at", "2014-12-30 08:49:06.230320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.231388"], ["updated_at", "2014-12-30 08:49:06.231388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.233423"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.233423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.235128"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.235128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.241137"], ["updated_at", "2014-12-30 08:49:06.241137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.244146"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.244146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.246508"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.246508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.248121"], ["updated_at", "2014-12-30 08:49:06.248121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.249129"], ["updated_at", "2014-12-30 08:49:06.249129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.249955"], ["updated_at", "2014-12-30 08:49:06.249955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.251466"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.251466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.252698"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.252698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.258513"], ["updated_at", "2014-12-30 08:49:06.258513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.261498"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.261498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:49:06.262708"], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.262708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.263452"], ["updated_at", "2014-12-30 08:49:06.263452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.264131"], ["updated_at", "2014-12-30 08:49:06.264131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:49:06.264861"], ["updated_at", "2014-12-30 08:49:06.264861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.266850"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.266850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.268273"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:49:06.268273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.6ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.8ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 08:49:06.330945"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 08:49:06.330945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (1.2ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.8ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.375937"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 08:57:56.375937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.5ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.427148"], ["updated_at", "2014-12-30 08:57:56.427148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.446481"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.446481"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.447919"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.447919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.448670"], ["updated_at", "2014-12-30 08:57:56.448670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.449352"], ["updated_at", "2014-12-30 08:57:56.449352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.450004"], ["updated_at", "2014-12-30 08:57:56.450004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.458138"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.458138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.460198"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.460198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.467732"], ["updated_at", "2014-12-30 08:57:56.467732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.470727"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.470727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.472189"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.472189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.474402"], ["updated_at", "2014-12-30 08:57:56.474402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.475849"], ["updated_at", "2014-12-30 08:57:56.475849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.476821"], ["updated_at", "2014-12-30 08:57:56.476821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.478577"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.478577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.479837"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.479837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.487746"], ["updated_at", "2014-12-30 08:57:56.487746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.490459"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.490459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.491495"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.491495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.492343"], ["updated_at", "2014-12-30 08:57:56.492343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.493081"], ["updated_at", "2014-12-30 08:57:56.493081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.494053"], ["updated_at", "2014-12-30 08:57:56.494053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.495758"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.495758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.496932"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.496932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.504805"], ["updated_at", "2014-12-30 08:57:56.504805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.509053"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.509053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.510637"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.510637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.511802"], ["updated_at", "2014-12-30 08:57:56.511802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.512657"], ["updated_at", "2014-12-30 08:57:56.512657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.513464"], ["updated_at", "2014-12-30 08:57:56.513464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.515038"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.515038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.516339"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.516339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.526409"], ["updated_at", "2014-12-30 08:57:56.526409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.530703"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.530703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.532091"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.532091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.532967"], ["updated_at", "2014-12-30 08:57:56.532967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.533749"], ["updated_at", "2014-12-30 08:57:56.533749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.534485"], ["updated_at", "2014-12-30 08:57:56.534485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.537031"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.537031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.539143"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.539143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.545835"], ["updated_at", "2014-12-30 08:57:56.545835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.548644"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.548644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 08:57:56.549780"], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.549780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.550634"], ["updated_at", "2014-12-30 08:57:56.550634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.551416"], ["updated_at", "2014-12-30 08:57:56.551416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 08:57:56.552337"], ["updated_at", "2014-12-30 08:57:56.552337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.553891"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.553891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 08:57:56.555136"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 08:57:56.555136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (1.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.620235"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 12:04:36.620235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.6ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.5ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.2ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.685945"], ["updated_at", "2014-12-30 12:04:36.685945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.714728"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.714728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.716775"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.716775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.717686"], ["updated_at", "2014-12-30 12:04:36.717686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.718419"], ["updated_at", "2014-12-30 12:04:36.718419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.719095"], ["updated_at", "2014-12-30 12:04:36.719095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.726702"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.726702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.728221"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.728221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.735076"], ["updated_at", "2014-12-30 12:04:36.735076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.737923"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.737923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.739042"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.739042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.739782"], ["updated_at", "2014-12-30 12:04:36.739782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.740485"], ["updated_at", "2014-12-30 12:04:36.740485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.741456"], ["updated_at", "2014-12-30 12:04:36.741456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.743252"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.743252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.744711"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.744711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.756101"], ["updated_at", "2014-12-30 12:04:36.756101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.760059"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.760059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.761324"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.761324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.762322"], ["updated_at", "2014-12-30 12:04:36.762322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.763187"], ["updated_at", "2014-12-30 12:04:36.763187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.764098"], ["updated_at", "2014-12-30 12:04:36.764098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.767405"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.767405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.769942"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.769942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.780027"], ["updated_at", "2014-12-30 12:04:36.780027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.785370"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.785370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.786848"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.786848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.787768"], ["updated_at", "2014-12-30 12:04:36.787768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.788613"], ["updated_at", "2014-12-30 12:04:36.788613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.789321"], ["updated_at", "2014-12-30 12:04:36.789321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.790902"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.790902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.792074"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.792074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.798457"], ["updated_at", "2014-12-30 12:04:36.798457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.801282"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.801282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.802869"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.802869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.804501"], ["updated_at", "2014-12-30 12:04:36.804501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.805810"], ["updated_at", "2014-12-30 12:04:36.805810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.807135"], ["updated_at", "2014-12-30 12:04:36.807135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.809677"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.809677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.811228"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.811228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.819104"], ["updated_at", "2014-12-30 12:04:36.819104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.822754"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.822754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:04:36.824503"], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.824503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.825979"], ["updated_at", "2014-12-30 12:04:36.825979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.827330"], ["updated_at", "2014-12-30 12:04:36.827330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:04:36.828598"], ["updated_at", "2014-12-30 12:04:36.828598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.831373"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.831373"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:04:36.834324"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:04:36.834324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (1.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.0ms) DROP VIEW "v_place"  (0.0ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.199533"], ["updated_at", "2014-12-30 12:05:41.199533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.218286"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.218286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.219936"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.219936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.221099"], ["updated_at", "2014-12-30 12:05:41.221099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.221826"], ["updated_at", "2014-12-30 12:05:41.221826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.222487"], ["updated_at", "2014-12-30 12:05:41.222487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.231198"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.231198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.232988"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.232988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.240879"], ["updated_at", "2014-12-30 12:05:41.240879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.243428"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.243428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.244261"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.244261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.244917"], ["updated_at", "2014-12-30 12:05:41.244917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.245567"], ["updated_at", "2014-12-30 12:05:41.245567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.246929"], ["updated_at", "2014-12-30 12:05:41.246929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.249389"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.249389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.251614"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.251614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.263474"], ["updated_at", "2014-12-30 12:05:41.263474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.266976"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.266976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.268464"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.268464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.269371"], ["updated_at", "2014-12-30 12:05:41.269371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.270246"], ["updated_at", "2014-12-30 12:05:41.270246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.271048"], ["updated_at", "2014-12-30 12:05:41.271048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.272405"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.272405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.274159"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.274159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.280454"], ["updated_at", "2014-12-30 12:05:41.280454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.283245"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.283245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.284220"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.284220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.284972"], ["updated_at", "2014-12-30 12:05:41.284972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.285724"], ["updated_at", "2014-12-30 12:05:41.285724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.287102"], ["updated_at", "2014-12-30 12:05:41.287102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.289907"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.289907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.291465"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.291465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.296947"], ["updated_at", "2014-12-30 12:05:41.296947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.299305"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.299305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.300200"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.300200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.300860"], ["updated_at", "2014-12-30 12:05:41.300860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.301523"], ["updated_at", "2014-12-30 12:05:41.301523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.302123"], ["updated_at", "2014-12-30 12:05:41.302123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.303849"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.303849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.304997"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.304997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.311974"], ["updated_at", "2014-12-30 12:05:41.311974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.316169"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.316169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:05:41.318050"], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.318050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.319342"], ["updated_at", "2014-12-30 12:05:41.319342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.320669"], ["updated_at", "2014-12-30 12:05:41.320669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:05:41.321597"], ["updated_at", "2014-12-30 12:05:41.321597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.324001"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.324001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.325955"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:05:41.325955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.3ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 12:05:41.373458"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 12:05:41.373458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.8ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (1.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 12:08:28.978890"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 12:08:28.978890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.015698"], ["updated_at", "2014-12-30 12:08:29.015698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.037829"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.037829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.039598"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.039598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.040806"], ["updated_at", "2014-12-30 12:08:29.040806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.041794"], ["updated_at", "2014-12-30 12:08:29.041794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.042535"], ["updated_at", "2014-12-30 12:08:29.042535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.049819"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.049819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.051203"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.051203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.062919"], ["updated_at", "2014-12-30 12:08:29.062919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.065943"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.065943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.067853"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.067853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.069298"], ["updated_at", "2014-12-30 12:08:29.069298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.070209"], ["updated_at", "2014-12-30 12:08:29.070209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.071039"], ["updated_at", "2014-12-30 12:08:29.071039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.072520"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.072520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.073605"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.073605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.080981"], ["updated_at", "2014-12-30 12:08:29.080981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.083992"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.083992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.084864"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.084864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.085541"], ["updated_at", "2014-12-30 12:08:29.085541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.086192"], ["updated_at", "2014-12-30 12:08:29.086192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.087126"], ["updated_at", "2014-12-30 12:08:29.087126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.088483"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.088483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.089523"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.089523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.098232"], ["updated_at", "2014-12-30 12:08:29.098232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.102858"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.102858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.104418"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.104418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.105640"], ["updated_at", "2014-12-30 12:08:29.105640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.106367"], ["updated_at", "2014-12-30 12:08:29.106367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.106996"], ["updated_at", "2014-12-30 12:08:29.106996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.108352"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.108352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.109358"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.109358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.115063"], ["updated_at", "2014-12-30 12:08:29.115063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.119136"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.119136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.121161"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.121161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.122159"], ["updated_at", "2014-12-30 12:08:29.122159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.122796"], ["updated_at", "2014-12-30 12:08:29.122796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.123420"], ["updated_at", "2014-12-30 12:08:29.123420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.124958"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.124958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.126154"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.126154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.132693"], ["updated_at", "2014-12-30 12:08:29.132693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.136137"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.136137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:08:29.137027"], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.137027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.137711"], ["updated_at", "2014-12-30 12:08:29.137711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.138589"], ["updated_at", "2014-12-30 12:08:29.138589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:08:29.139220"], ["updated_at", "2014-12-30 12:08:29.139220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.140529"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.140529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:08:29.141555"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:08:29.141555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.265419"], ["updated_at", "2014-12-30 12:24:03.265419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.285146"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.285146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.286653"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.286653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.287436"], ["updated_at", "2014-12-30 12:24:03.287436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.288137"], ["updated_at", "2014-12-30 12:24:03.288137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.288761"], ["updated_at", "2014-12-30 12:24:03.288761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.296407"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.296407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.297804"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.297804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.307455"], ["updated_at", "2014-12-30 12:24:03.307455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.311399"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.311399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.313135"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.313135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.314408"], ["updated_at", "2014-12-30 12:24:03.314408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.315619"], ["updated_at", "2014-12-30 12:24:03.315619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.316759"], ["updated_at", "2014-12-30 12:24:03.316759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.318558"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.318558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.319928"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.319928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.327634"], ["updated_at", "2014-12-30 12:24:03.327634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.330098"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.330098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.330976"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.330976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.331642"], ["updated_at", "2014-12-30 12:24:03.331642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.332297"], ["updated_at", "2014-12-30 12:24:03.332297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.332900"], ["updated_at", "2014-12-30 12:24:03.332900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.334730"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.334730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.336781"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.336781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.346121"], ["updated_at", "2014-12-30 12:24:03.346121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.349278"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.349278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.351118"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.351118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.352427"], ["updated_at", "2014-12-30 12:24:03.352427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.353707"], ["updated_at", "2014-12-30 12:24:03.353707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.354748"], ["updated_at", "2014-12-30 12:24:03.354748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.357365"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.357365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.359384"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.359384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.365042"], ["updated_at", "2014-12-30 12:24:03.365042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.367573"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.367573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.368462"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.368462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.369119"], ["updated_at", "2014-12-30 12:24:03.369119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.369782"], ["updated_at", "2014-12-30 12:24:03.369782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.370397"], ["updated_at", "2014-12-30 12:24:03.370397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.371969"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.371969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.373063"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.373063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.379419"], ["updated_at", "2014-12-30 12:24:03.379419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.382341"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.382341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:03.383235"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.383235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.383892"], ["updated_at", "2014-12-30 12:24:03.383892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.384527"], ["updated_at", "2014-12-30 12:24:03.384527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:03.385528"], ["updated_at", "2014-12-30 12:24:03.385528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.386981"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.386981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.388095"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:03.388095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 12:24:03.433186"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 12:24:03.433186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.6ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (1.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.681483"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 12:24:43.681483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (1.4ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.715597"], ["updated_at", "2014-12-30 12:24:43.715597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.734763"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.734763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.736097"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.736097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.736858"], ["updated_at", "2014-12-30 12:24:43.736858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.737631"], ["updated_at", "2014-12-30 12:24:43.737631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.738437"], ["updated_at", "2014-12-30 12:24:43.738437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.748606"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.748606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.750137"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.750137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.758116"], ["updated_at", "2014-12-30 12:24:43.758116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.760783"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.760783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.761825"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.761825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.762492"], ["updated_at", "2014-12-30 12:24:43.762492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.763359"], ["updated_at", "2014-12-30 12:24:43.763359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.764015"], ["updated_at", "2014-12-30 12:24:43.764015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.765338"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.765338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.766360"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.766360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.773488"], ["updated_at", "2014-12-30 12:24:43.773488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.776858"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.776858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.777988"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.777988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.778652"], ["updated_at", "2014-12-30 12:24:43.778652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.779313"], ["updated_at", "2014-12-30 12:24:43.779313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.780249"], ["updated_at", "2014-12-30 12:24:43.780249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.781620"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.781620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.782654"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.782654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.789978"], ["updated_at", "2014-12-30 12:24:43.789978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.793879"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.793879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.795408"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.795408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.796184"], ["updated_at", "2014-12-30 12:24:43.796184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.796872"], ["updated_at", "2014-12-30 12:24:43.796872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.797518"], ["updated_at", "2014-12-30 12:24:43.797518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.798939"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.798939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.799991"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.799991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.805670"], ["updated_at", "2014-12-30 12:24:43.805670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.808283"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.808283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.809598"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.809598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.810952"], ["updated_at", "2014-12-30 12:24:43.810952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.812405"], ["updated_at", "2014-12-30 12:24:43.812405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.813436"], ["updated_at", "2014-12-30 12:24:43.813436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.814909"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.814909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.815991"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.815991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.821343"], ["updated_at", "2014-12-30 12:24:43.821343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.823828"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.823828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:24:43.825245"], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.825245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.826334"], ["updated_at", "2014-12-30 12:24:43.826334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.827183"], ["updated_at", "2014-12-30 12:24:43.827183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:24:43.828446"], ["updated_at", "2014-12-30 12:24:43.828446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.830973"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.830973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:24:43.833142"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:24:43.833142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.9ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.005407"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 12:31:53.005407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.5ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.8ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.058859"], ["updated_at", "2014-12-30 12:31:53.058859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.080035"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.080035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.081590"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.081590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.082314"], ["updated_at", "2014-12-30 12:31:53.082314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.083009"], ["updated_at", "2014-12-30 12:31:53.083009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.083627"], ["updated_at", "2014-12-30 12:31:53.083627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.091158"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.091158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.093801"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.093801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.103222"], ["updated_at", "2014-12-30 12:31:53.103222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.106564"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.106564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.107445"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.107445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.108299"], ["updated_at", "2014-12-30 12:31:53.108299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.109002"], ["updated_at", "2014-12-30 12:31:53.109002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.109612"], ["updated_at", "2014-12-30 12:31:53.109612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.110926"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.110926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.111942"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.111942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.119202"], ["updated_at", "2014-12-30 12:31:53.119202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.121893"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.121893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.122885"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.122885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.123549"], ["updated_at", "2014-12-30 12:31:53.123549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.124242"], ["updated_at", "2014-12-30 12:31:53.124242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.124881"], ["updated_at", "2014-12-30 12:31:53.124881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.126733"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.126733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.127876"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.127876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.134712"], ["updated_at", "2014-12-30 12:31:53.134712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.138264"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.138264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.139267"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.139267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.140019"], ["updated_at", "2014-12-30 12:31:53.140019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.141297"], ["updated_at", "2014-12-30 12:31:53.141297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.142264"], ["updated_at", "2014-12-30 12:31:53.142264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.144539"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.144539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.146575"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.146575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.152943"], ["updated_at", "2014-12-30 12:31:53.152943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.155629"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.155629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.156480"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.156480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.157166"], ["updated_at", "2014-12-30 12:31:53.157166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.157997"], ["updated_at", "2014-12-30 12:31:53.157997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.159486"], ["updated_at", "2014-12-30 12:31:53.159486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.162038"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.162038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.163527"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.163527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.172084"], ["updated_at", "2014-12-30 12:31:53.172084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.175761"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.175761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:31:53.177396"], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.177396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.178567"], ["updated_at", "2014-12-30 12:31:53.178567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.179514"], ["updated_at", "2014-12-30 12:31:53.179514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:31:53.180353"], ["updated_at", "2014-12-30 12:31:53.180353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.182544"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.182544"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:31:53.184767"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:31:53.184767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (1.0ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.450369"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 12:35:04.450369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.496579"], ["updated_at", "2014-12-30 12:35:04.496579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.516420"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.516420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.517701"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.517701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.518416"], ["updated_at", "2014-12-30 12:35:04.518416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.519060"], ["updated_at", "2014-12-30 12:35:04.519060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.519673"], ["updated_at", "2014-12-30 12:35:04.519673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.529925"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.529925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.532125"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.532125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.543313"], ["updated_at", "2014-12-30 12:35:04.543313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.547427"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.547427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.549134"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.549134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.550400"], ["updated_at", "2014-12-30 12:35:04.550400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.551382"], ["updated_at", "2014-12-30 12:35:04.551382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.552175"], ["updated_at", "2014-12-30 12:35:04.552175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.553784"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.553784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.555069"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.555069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.562473"], ["updated_at", "2014-12-30 12:35:04.562473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.564950"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.564950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.565791"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.565791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.566833"], ["updated_at", "2014-12-30 12:35:04.566833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.568129"], ["updated_at", "2014-12-30 12:35:04.568129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.569577"], ["updated_at", "2014-12-30 12:35:04.569577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.572027"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.572027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.573847"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.573847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.580610"], ["updated_at", "2014-12-30 12:35:04.580610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.583350"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.583350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.584310"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.584310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.585073"], ["updated_at", "2014-12-30 12:35:04.585073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.585847"], ["updated_at", "2014-12-30 12:35:04.585847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.586644"], ["updated_at", "2014-12-30 12:35:04.586644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.588326"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.588326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.589658"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.589658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.596848"], ["updated_at", "2014-12-30 12:35:04.596848"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.600326"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.600326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.601510"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.601510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.602565"], ["updated_at", "2014-12-30 12:35:04.602565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.603530"], ["updated_at", "2014-12-30 12:35:04.603530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.604280"], ["updated_at", "2014-12-30 12:35:04.604280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.605611"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.605611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.607213"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.607213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.612559"], ["updated_at", "2014-12-30 12:35:04.612559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.615009"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.615009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:35:04.615939"], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.615939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.616616"], ["updated_at", "2014-12-30 12:35:04.616616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.617247"], ["updated_at", "2014-12-30 12:35:04.617247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:35:04.617858"], ["updated_at", "2014-12-30 12:35:04.617858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.619489"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.619489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:35:04.620865"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:35:04.620865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (1.1ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.3ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.5ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 12:38:03.925825"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 12:38:03.925825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.004923"], ["updated_at", "2014-12-30 12:38:04.004923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.029105"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.029105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.030978"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.030978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.032048"], ["updated_at", "2014-12-30 12:38:04.032048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.032849"], ["updated_at", "2014-12-30 12:38:04.032849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.033488"], ["updated_at", "2014-12-30 12:38:04.033488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.041359"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.041359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.043437"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.043437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.050737"], ["updated_at", "2014-12-30 12:38:04.050737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.054038"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.054038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.056026"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.056026"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.057303"], ["updated_at", "2014-12-30 12:38:04.057303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.058183"], ["updated_at", "2014-12-30 12:38:04.058183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.058827"], ["updated_at", "2014-12-30 12:38:04.058827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.060187"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.060187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.061456"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.061456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.070514"], ["updated_at", "2014-12-30 12:38:04.070514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.073845"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.073845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.074889"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.074889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.075716"], ["updated_at", "2014-12-30 12:38:04.075716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.076534"], ["updated_at", "2014-12-30 12:38:04.076534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.077216"], ["updated_at", "2014-12-30 12:38:04.077216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.078540"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.078540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.079812"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.079812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.085701"], ["updated_at", "2014-12-30 12:38:04.085701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.088563"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.088563"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.090119"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.090119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.091076"], ["updated_at", "2014-12-30 12:38:04.091076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.092281"], ["updated_at", "2014-12-30 12:38:04.092281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.093029"], ["updated_at", "2014-12-30 12:38:04.093029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.094486"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.094486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.095766"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.095766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.101482"], ["updated_at", "2014-12-30 12:38:04.101482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.105362"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.105362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.107164"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.107164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.108754"], ["updated_at", "2014-12-30 12:38:04.108754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.110210"], ["updated_at", "2014-12-30 12:38:04.110210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.111594"], ["updated_at", "2014-12-30 12:38:04.111594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.113592"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.113592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.115010"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.115010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.122189"], ["updated_at", "2014-12-30 12:38:04.122189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.125352"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.125352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 12:38:04.126383"], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.126383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.127633"], ["updated_at", "2014-12-30 12:38:04.127633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.128599"], ["updated_at", "2014-12-30 12:38:04.128599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 12:38:04.129477"], ["updated_at", "2014-12-30 12:38:04.129477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.131243"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.131243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 12:38:04.133110"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 12:38:04.133110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (1.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (2.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (1.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (1.0ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.493083"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:04:29.493083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.3ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.6ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.544447"], ["updated_at", "2014-12-30 13:04:29.544447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.565875"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.565875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.567841"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.567841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.568648"], ["updated_at", "2014-12-30 13:04:29.568648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.569301"], ["updated_at", "2014-12-30 13:04:29.569301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.570050"], ["updated_at", "2014-12-30 13:04:29.570050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.577418"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.577418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.578779"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.578779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.586813"], ["updated_at", "2014-12-30 13:04:29.586813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.591900"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.591900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.593564"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.593564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.594709"], ["updated_at", "2014-12-30 13:04:29.594709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.595581"], ["updated_at", "2014-12-30 13:04:29.595581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.596443"], ["updated_at", "2014-12-30 13:04:29.596443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.598049"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.598049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.599635"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.599635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.608209"], ["updated_at", "2014-12-30 13:04:29.608209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.611492"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.611492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.612477"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.612477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.613433"], ["updated_at", "2014-12-30 13:04:29.613433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.614104"], ["updated_at", "2014-12-30 13:04:29.614104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.614798"], ["updated_at", "2014-12-30 13:04:29.614798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.616539"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.616539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.617917"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.617917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.625437"], ["updated_at", "2014-12-30 13:04:29.625437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.629685"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.629685"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.631709"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.631709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.633034"], ["updated_at", "2014-12-30 13:04:29.633034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.634236"], ["updated_at", "2014-12-30 13:04:29.634236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.635294"], ["updated_at", "2014-12-30 13:04:29.635294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.637354"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.637354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.638905"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.638905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.647227"], ["updated_at", "2014-12-30 13:04:29.647227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.651149"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.651149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.653089"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.653089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.654134"], ["updated_at", "2014-12-30 13:04:29.654134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.654983"], ["updated_at", "2014-12-30 13:04:29.654983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.656309"], ["updated_at", "2014-12-30 13:04:29.656309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.658902"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.658902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.660746"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.660746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.667992"], ["updated_at", "2014-12-30 13:04:29.667992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.671951"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.671951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:04:29.673496"], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.673496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.674517"], ["updated_at", "2014-12-30 13:04:29.674517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.675424"], ["updated_at", "2014-12-30 13:04:29.675424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:04:29.676253"], ["updated_at", "2014-12-30 13:04:29.676253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.678074"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.678074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:04:29.679417"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:04:29.679417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.467303"], ["updated_at", "2014-12-30 13:10:45.467303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.492933"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.492933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.494360"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.494360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.495245"], ["updated_at", "2014-12-30 13:10:45.495245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.495993"], ["updated_at", "2014-12-30 13:10:45.495993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.496711"], ["updated_at", "2014-12-30 13:10:45.496711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.507452"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.507452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.509155"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.509155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.522676"], ["updated_at", "2014-12-30 13:10:45.522676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.526083"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.526083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.527273"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.527273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.528176"], ["updated_at", "2014-12-30 13:10:45.528176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.529006"], ["updated_at", "2014-12-30 13:10:45.529006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.529721"], ["updated_at", "2014-12-30 13:10:45.529721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.531027"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.531027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.532048"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.532048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.539106"], ["updated_at", "2014-12-30 13:10:45.539106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.541618"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.541618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.542454"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.542454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.543144"], ["updated_at", "2014-12-30 13:10:45.543144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.544164"], ["updated_at", "2014-12-30 13:10:45.544164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.545429"], ["updated_at", "2014-12-30 13:10:45.545429"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.547944"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.547944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.550294"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.550294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.557864"], ["updated_at", "2014-12-30 13:10:45.557864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.560650"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.560650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.561612"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.561612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.562385"], ["updated_at", "2014-12-30 13:10:45.562385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.563292"], ["updated_at", "2014-12-30 13:10:45.563292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.564086"], ["updated_at", "2014-12-30 13:10:45.564086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.566704"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.566704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.568297"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.568297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.574059"], ["updated_at", "2014-12-30 13:10:45.574059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.576621"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.576621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.577479"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.577479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.578136"], ["updated_at", "2014-12-30 13:10:45.578136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.578770"], ["updated_at", "2014-12-30 13:10:45.578770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.579401"], ["updated_at", "2014-12-30 13:10:45.579401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.580924"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.580924"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.582587"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.582587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.588231"], ["updated_at", "2014-12-30 13:10:45.588231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.590833"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.590833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:10:45.591709"], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.591709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.592404"], ["updated_at", "2014-12-30 13:10:45.592404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.593044"], ["updated_at", "2014-12-30 13:10:45.593044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:10:45.593662"], ["updated_at", "2014-12-30 13:10:45.593662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.595425"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.595425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.596887"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:10:45.596887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.5ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.5ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:10:45.655000"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:10:45.655000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.3ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.3ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.6ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.0ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.2ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.463081"], ["updated_at", "2014-12-30 13:25:35.463081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.487357"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.487357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.488728"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.488728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.489441"], ["updated_at", "2014-12-30 13:25:35.489441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.490104"], ["updated_at", "2014-12-30 13:25:35.490104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.490733"], ["updated_at", "2014-12-30 13:25:35.490733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.497901"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.497901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.499328"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.499328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.508620"], ["updated_at", "2014-12-30 13:25:35.508620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.511214"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.511214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.512082"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.512082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.512733"], ["updated_at", "2014-12-30 13:25:35.512733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.513364"], ["updated_at", "2014-12-30 13:25:35.513364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.514651"], ["updated_at", "2014-12-30 13:25:35.514651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.516192"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.516192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.517244"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.517244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.524048"], ["updated_at", "2014-12-30 13:25:35.524048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.526406"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.526406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.527261"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.527261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.527944"], ["updated_at", "2014-12-30 13:25:35.527944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.528611"], ["updated_at", "2014-12-30 13:25:35.528611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.529226"], ["updated_at", "2014-12-30 13:25:35.529226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.530962"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.530962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.532122"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.532122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.537951"], ["updated_at", "2014-12-30 13:25:35.537951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.541273"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.541273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.542587"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.542587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.543368"], ["updated_at", "2014-12-30 13:25:35.543368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.544306"], ["updated_at", "2014-12-30 13:25:35.544306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.544978"], ["updated_at", "2014-12-30 13:25:35.544978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.546300"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.546300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.547792"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.547792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.554315"], ["updated_at", "2014-12-30 13:25:35.554315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.556944"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.556944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.557805"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.557805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.558505"], ["updated_at", "2014-12-30 13:25:35.558505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.559558"], ["updated_at", "2014-12-30 13:25:35.559558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.560990"], ["updated_at", "2014-12-30 13:25:35.560990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.563590"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.563590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.565580"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.565580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.574336"], ["updated_at", "2014-12-30 13:25:35.574336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.577365"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.577365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:25:35.579104"], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.579104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.580358"], ["updated_at", "2014-12-30 13:25:35.580358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.581350"], ["updated_at", "2014-12-30 13:25:35.581350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:25:35.582136"], ["updated_at", "2014-12-30 13:25:35.582136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.583455"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.583455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.584469"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:25:35.584469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.0ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:25:35.635610"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:25:35.635610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.3ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.9ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.549383"], ["updated_at", "2014-12-30 13:26:25.549383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.573521"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.573521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.575736"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.575736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.577058"], ["updated_at", "2014-12-30 13:26:25.577058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.578094"], ["updated_at", "2014-12-30 13:26:25.578094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.578937"], ["updated_at", "2014-12-30 13:26:25.578937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.586624"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.586624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.588187"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.588187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.599522"], ["updated_at", "2014-12-30 13:26:25.599522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.602985"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.602985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.604528"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.604528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.605899"], ["updated_at", "2014-12-30 13:26:25.605899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.607205"], ["updated_at", "2014-12-30 13:26:25.607205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.608298"], ["updated_at", "2014-12-30 13:26:25.608298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.610438"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.610438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.611460"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.611460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.619620"], ["updated_at", "2014-12-30 13:26:25.619620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.622192"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.622192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.623047"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.623047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.623699"], ["updated_at", "2014-12-30 13:26:25.623699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.624421"], ["updated_at", "2014-12-30 13:26:25.624421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.625393"], ["updated_at", "2014-12-30 13:26:25.625393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.626726"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.626726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.627740"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.627740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.634116"], ["updated_at", "2014-12-30 13:26:25.634116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.638450"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.638450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.639678"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.639678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.640955"], ["updated_at", "2014-12-30 13:26:25.640955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.641894"], ["updated_at", "2014-12-30 13:26:25.641894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.642671"], ["updated_at", "2014-12-30 13:26:25.642671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.644113"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.644113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.645118"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.645118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.651410"], ["updated_at", "2014-12-30 13:26:25.651410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.653964"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.653964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.654870"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.654870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.655550"], ["updated_at", "2014-12-30 13:26:25.655550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.656191"], ["updated_at", "2014-12-30 13:26:25.656191"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.657101"], ["updated_at", "2014-12-30 13:26:25.657101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.658441"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.658441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.659460"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.659460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.665131"], ["updated_at", "2014-12-30 13:26:25.665131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.667914"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.667914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:26:25.668854"], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.668854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.669524"], ["updated_at", "2014-12-30 13:26:25.669524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.670199"], ["updated_at", "2014-12-30 13:26:25.670199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:26:25.671174"], ["updated_at", "2014-12-30 13:26:25.671174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.673309"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.673309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.674837"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:26:25.674837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.5ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:26:25.726060"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:26:25.726060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_profile" AS CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.3ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.5ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.9ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (1.0ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:34:55.976714"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:34:55.976714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.035273"], ["updated_at", "2014-12-30 13:34:56.035273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.057496"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.057496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.059403"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.059403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.060409"], ["updated_at", "2014-12-30 13:34:56.060409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.061258"], ["updated_at", "2014-12-30 13:34:56.061258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.062131"], ["updated_at", "2014-12-30 13:34:56.062131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.072426"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.072426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.073848"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.073848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (2.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.088897"], ["updated_at", "2014-12-30 13:34:56.088897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.092289"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.092289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.093239"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.093239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.093940"], ["updated_at", "2014-12-30 13:34:56.093940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.094589"], ["updated_at", "2014-12-30 13:34:56.094589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.095441"], ["updated_at", "2014-12-30 13:34:56.095441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.096989"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.096989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.098100"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.098100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.107513"], ["updated_at", "2014-12-30 13:34:56.107513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.110174"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.110174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.111155"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.111155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.111886"], ["updated_at", "2014-12-30 13:34:56.111886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.112548"], ["updated_at", "2014-12-30 13:34:56.112548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.113569"], ["updated_at", "2014-12-30 13:34:56.113569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.115689"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.115689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.117567"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.117567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.124913"], ["updated_at", "2014-12-30 13:34:56.124913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.127753"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.127753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.129272"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.129272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.131443"], ["updated_at", "2014-12-30 13:34:56.131443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.132646"], ["updated_at", "2014-12-30 13:34:56.132646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.133398"], ["updated_at", "2014-12-30 13:34:56.133398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.135082"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.135082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.136238"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.136238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.143441"], ["updated_at", "2014-12-30 13:34:56.143441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.146591"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.146591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.147917"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.147917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.148873"], ["updated_at", "2014-12-30 13:34:56.148873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.149838"], ["updated_at", "2014-12-30 13:34:56.149838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.150698"], ["updated_at", "2014-12-30 13:34:56.150698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.152484"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.152484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.153881"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.153881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.160841"], ["updated_at", "2014-12-30 13:34:56.160841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.164352"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.164352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:34:56.166275"], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.166275"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.167697"], ["updated_at", "2014-12-30 13:34:56.167697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.168734"], ["updated_at", "2014-12-30 13:34:56.168734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:34:56.169433"], ["updated_at", "2014-12-30 13:34:56.169433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.171031"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.171031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:34:56.173134"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:34:56.173134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.359868"], ["updated_at", "2014-12-30 13:49:28.359868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.388964"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.388964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.391256"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.391256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.392780"], ["updated_at", "2014-12-30 13:49:28.392780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.393953"], ["updated_at", "2014-12-30 13:49:28.393953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.394909"], ["updated_at", "2014-12-30 13:49:28.394909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.403904"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.403904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.405434"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.405434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.416605"], ["updated_at", "2014-12-30 13:49:28.416605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.419713"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.419713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.420582"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.420582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.421696"], ["updated_at", "2014-12-30 13:49:28.421696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.422599"], ["updated_at", "2014-12-30 13:49:28.422599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.423406"], ["updated_at", "2014-12-30 13:49:28.423406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.425109"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.425109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.426422"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.426422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.433601"], ["updated_at", "2014-12-30 13:49:28.433601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.435944"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.435944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.436802"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.436802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.437447"], ["updated_at", "2014-12-30 13:49:28.437447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.438099"], ["updated_at", "2014-12-30 13:49:28.438099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.438715"], ["updated_at", "2014-12-30 13:49:28.438715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.440362"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.440362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.441761"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.441761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.448176"], ["updated_at", "2014-12-30 13:49:28.448176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.451225"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.451225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.452430"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.452430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.453205"], ["updated_at", "2014-12-30 13:49:28.453205"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.454304"], ["updated_at", "2014-12-30 13:49:28.454304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.455000"], ["updated_at", "2014-12-30 13:49:28.455000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.456395"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.456395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.457406"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.457406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.462943"], ["updated_at", "2014-12-30 13:49:28.462943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.465577"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.465577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.466529"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.466529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.467366"], ["updated_at", "2014-12-30 13:49:28.467366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.469432"], ["updated_at", "2014-12-30 13:49:28.469432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.470882"], ["updated_at", "2014-12-30 13:49:28.470882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.472544"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.472544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.473718"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.473718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.479411"], ["updated_at", "2014-12-30 13:49:28.479411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.481989"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.481989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:49:28.482920"], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.482920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.483934"], ["updated_at", "2014-12-30 13:49:28.483934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.484694"], ["updated_at", "2014-12-30 13:49:28.484694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:49:28.485341"], ["updated_at", "2014-12-30 13:49:28.485341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.487917"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.487917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.489859"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:49:28.489859"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.6ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:49:28.542363"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:49:28.542363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.0ms) SELECT version FROM "schema_migrations"  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.5ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.5ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.5ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.2ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.9ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:01.972336"], ["updated_at", "2014-12-30 13:51:01.972336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.003974"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.003974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.005262"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.005262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.006002"], ["updated_at", "2014-12-30 13:51:02.006002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.006635"], ["updated_at", "2014-12-30 13:51:02.006635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.007239"], ["updated_at", "2014-12-30 13:51:02.007239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.014650"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.014650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.015995"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.015995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.028638"], ["updated_at", "2014-12-30 13:51:02.028638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.032885"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.032885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.034081"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.034081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.034938"], ["updated_at", "2014-12-30 13:51:02.034938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.035792"], ["updated_at", "2014-12-30 13:51:02.035792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.036586"], ["updated_at", "2014-12-30 13:51:02.036586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.038140"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.038140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.039145"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.039145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.046953"], ["updated_at", "2014-12-30 13:51:02.046953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.049534"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.049534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.050422"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.050422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.051081"], ["updated_at", "2014-12-30 13:51:02.051081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.051740"], ["updated_at", "2014-12-30 13:51:02.051740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.052345"], ["updated_at", "2014-12-30 13:51:02.052345"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.054224"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.054224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.056205"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.056205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.063048"], ["updated_at", "2014-12-30 13:51:02.063048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.065693"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.065693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.066649"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.066649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.067391"], ["updated_at", "2014-12-30 13:51:02.067391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.068142"], ["updated_at", "2014-12-30 13:51:02.068142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.069036"], ["updated_at", "2014-12-30 13:51:02.069036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.070602"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.070602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.071744"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.071744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.078620"], ["updated_at", "2014-12-30 13:51:02.078620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.081440"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.081440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.082407"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.082407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.083548"], ["updated_at", "2014-12-30 13:51:02.083548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.084364"], ["updated_at", "2014-12-30 13:51:02.084364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.085001"], ["updated_at", "2014-12-30 13:51:02.085001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.086331"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.086331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.087541"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.087541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.094973"], ["updated_at", "2014-12-30 13:51:02.094973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.097990"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.097990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:02.098887"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.098887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.099867"], ["updated_at", "2014-12-30 13:51:02.099867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.100971"], ["updated_at", "2014-12-30 13:51:02.100971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:02.101817"], ["updated_at", "2014-12-30 13:51:02.101817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.103480"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.103480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.104814"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:02.104814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.3ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.3ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.5ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.2ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:51:02.160334"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:51:02.160334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) SELECT version FROM "schema_migrations"  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (1.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.452421"], ["updated_at", "2014-12-30 13:51:49.452421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.473630"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.473630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.475225"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.475225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.476162"], ["updated_at", "2014-12-30 13:51:49.476162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.477172"], ["updated_at", "2014-12-30 13:51:49.477172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.478102"], ["updated_at", "2014-12-30 13:51:49.478102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.487357"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.487357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.489091"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.489091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.498184"], ["updated_at", "2014-12-30 13:51:49.498184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.501748"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.501748"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.503609"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.503609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.504962"], ["updated_at", "2014-12-30 13:51:49.504962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.506192"], ["updated_at", "2014-12-30 13:51:49.506192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.507382"], ["updated_at", "2014-12-30 13:51:49.507382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.509981"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.509981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.511996"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.511996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.521816"], ["updated_at", "2014-12-30 13:51:49.521816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.524490"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.524490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.525319"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.525319"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.526025"], ["updated_at", "2014-12-30 13:51:49.526025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.526646"], ["updated_at", "2014-12-30 13:51:49.526646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.527884"], ["updated_at", "2014-12-30 13:51:49.527884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.532765"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.532765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.534086"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.534086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.542320"], ["updated_at", "2014-12-30 13:51:49.542320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.546273"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.546273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.548123"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.548123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.549156"], ["updated_at", "2014-12-30 13:51:49.549156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.549983"], ["updated_at", "2014-12-30 13:51:49.549983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.550689"], ["updated_at", "2014-12-30 13:51:49.550689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.552209"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.552209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.553232"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.553232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.561408"], ["updated_at", "2014-12-30 13:51:49.561408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.565939"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.565939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.567643"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.567643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.568855"], ["updated_at", "2014-12-30 13:51:49.568855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.569797"], ["updated_at", "2014-12-30 13:51:49.569797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.570635"], ["updated_at", "2014-12-30 13:51:49.570635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.572339"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.572339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.573669"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.573669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.580950"], ["updated_at", "2014-12-30 13:51:49.580950"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.585165"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.585165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:51:49.586842"], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.586842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.587736"], ["updated_at", "2014-12-30 13:51:49.587736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.588571"], ["updated_at", "2014-12-30 13:51:49.588571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:51:49.589487"], ["updated_at", "2014-12-30 13:51:49.589487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.591094"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.591094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.592152"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:51:49.592152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:51:49.653664"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:51:49.653664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (1.6ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "items_people"  (0.3ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.5ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.798044"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:53:06.798044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'  (0.2ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "items_people"  (0.2ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.0ms) SELECT version FROM "schema_migrations"  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.5ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.862894"], ["updated_at", "2014-12-30 13:53:06.862894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.893531"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.893531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.894969"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.894969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.895728"], ["updated_at", "2014-12-30 13:53:06.895728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.896418"], ["updated_at", "2014-12-30 13:53:06.896418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.897166"], ["updated_at", "2014-12-30 13:53:06.897166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.905875"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.905875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.908052"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.908052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.915084"], ["updated_at", "2014-12-30 13:53:06.915084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.917722"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.917722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.918719"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.918719"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.919974"], ["updated_at", "2014-12-30 13:53:06.919974"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.921387"], ["updated_at", "2014-12-30 13:53:06.921387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.922265"], ["updated_at", "2014-12-30 13:53:06.922265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.923904"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.923904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.925173"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.925173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (1.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.936360"], ["updated_at", "2014-12-30 13:53:06.936360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.940600"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.940600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.941772"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.941772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.942752"], ["updated_at", "2014-12-30 13:53:06.942752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.943582"], ["updated_at", "2014-12-30 13:53:06.943582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.944406"], ["updated_at", "2014-12-30 13:53:06.944406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.945854"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.945854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.946845"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.946845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.952710"], ["updated_at", "2014-12-30 13:53:06.952710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.955641"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.955641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.957191"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.957191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.958148"], ["updated_at", "2014-12-30 13:53:06.958148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.959001"], ["updated_at", "2014-12-30 13:53:06.959001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.959668"], ["updated_at", "2014-12-30 13:53:06.959668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.961056"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.961056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.962151"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.962151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.969520"], ["updated_at", "2014-12-30 13:53:06.969520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.973591"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.973591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.974698"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.974698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.975557"], ["updated_at", "2014-12-30 13:53:06.975557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.976367"], ["updated_at", "2014-12-30 13:53:06.976367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.977392"], ["updated_at", "2014-12-30 13:53:06.977392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.978837"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.978837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.980043"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.980043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.987416"], ["updated_at", "2014-12-30 13:53:06.987416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.990097"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.990097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:06.990991"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.990991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.991739"], ["updated_at", "2014-12-30 13:53:06.991739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.993199"], ["updated_at", "2014-12-30 13:53:06.993199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:06.994446"], ["updated_at", "2014-12-30 13:53:06.994446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.997095"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.997095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:06.999131"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:06.999131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (1.0ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.6ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.2ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (1.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.2ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("created_at", "first_name", "last_name", "ssn", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.347952"], ["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["updated_at", "2014-12-30 13:53:39.347952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.2ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.2ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.1ms) SELECT version FROM "schema_migrations"  (0.0ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.4ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.398231"], ["updated_at", "2014-12-30 13:53:39.398231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.422676"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.422676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.425132"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.425132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.426433"], ["updated_at", "2014-12-30 13:53:39.426433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.427345"], ["updated_at", "2014-12-30 13:53:39.427345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.428233"], ["updated_at", "2014-12-30 13:53:39.428233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.437002"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.437002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.438465"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.438465"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]] Place Load (0.1ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.449283"], ["updated_at", "2014-12-30 13:53:39.449283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.451954"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.451954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.452928"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.452928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.453656"], ["updated_at", "2014-12-30 13:53:39.453656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.454607"], ["updated_at", "2014-12-30 13:53:39.454607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.455309"], ["updated_at", "2014-12-30 13:53:39.455309"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.457270"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.457270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.458395"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.458395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]] Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.468702"], ["updated_at", "2014-12-30 13:53:39.468702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.472794"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.472794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.474540"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.474540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.475738"], ["updated_at", "2014-12-30 13:53:39.475738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.476633"], ["updated_at", "2014-12-30 13:53:39.476633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.477541"], ["updated_at", "2014-12-30 13:53:39.477541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.480404"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.480404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.482866"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.482866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.493102"], ["updated_at", "2014-12-30 13:53:39.493102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.496713"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.496713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.498493"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.498493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.499844"], ["updated_at", "2014-12-30 13:53:39.499844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.501096"], ["updated_at", "2014-12-30 13:53:39.501096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.502373"], ["updated_at", "2014-12-30 13:53:39.502373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.504779"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.504779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.506354"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.506354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.512884"], ["updated_at", "2014-12-30 13:53:39.512884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.515632"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.515632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.516592"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.516592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.517280"], ["updated_at", "2014-12-30 13:53:39.517280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.517970"], ["updated_at", "2014-12-30 13:53:39.517970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.519197"], ["updated_at", "2014-12-30 13:53:39.519197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.521735"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.521735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.523780"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.523780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.531906"], ["updated_at", "2014-12-30 13:53:39.531906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("address_id", "first_name") VALUES (?, ?) [["address_id", 1], ["first_name", "Primus"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.534800"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.534800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-30 13:53:39.535826"], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.535826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.536665"], ["updated_at", "2014-12-30 13:53:39.536665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.537614"], ["updated_at", "2014-12-30 13:53:39.537614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-30 13:53:39.538395"], ["updated_at", "2014-12-30 13:53:39.538395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.541042"], ["item_id", 3], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.541042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-30 13:53:39.543126"], ["item_id", 5], ["person_id", 1], ["updated_at", "2014-12-30 13:53:39.543126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.2ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.4ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.2ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.3ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.034643"], ["updated_at", "2015-01-04 17:47:25.034643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "people" ("first_name", "address_id") VALUES (?, ?) [["first_name", "Primus"], ["address_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.062490"], ["updated_at", "2015-01-04 17:47:25.062490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.065227"], ["updated_at", "2015-01-04 17:47:25.065227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.066746"], ["updated_at", "2015-01-04 17:47:25.066746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.067858"], ["updated_at", "2015-01-04 17:47:25.067858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.069047"], ["updated_at", "2015-01-04 17:47:25.069047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 3], ["created_at", "2015-01-04 17:47:25.078311"], ["updated_at", "2015-01-04 17:47:25.078311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 5], ["created_at", "2015-01-04 17:47:25.080019"], ["updated_at", "2015-01-04 17:47:25.080019"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.088228"], ["updated_at", "2015-01-04 17:47:25.088228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "address_id") VALUES (?, ?) [["first_name", "Primus"], ["address_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.091670"], ["updated_at", "2015-01-04 17:47:25.091670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.093067"], ["updated_at", "2015-01-04 17:47:25.093067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.093882"], ["updated_at", "2015-01-04 17:47:25.093882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.094639"], ["updated_at", "2015-01-04 17:47:25.094639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.095395"], ["updated_at", "2015-01-04 17:47:25.095395"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 3], ["created_at", "2015-01-04 17:47:25.097368"], ["updated_at", "2015-01-04 17:47:25.097368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 5], ["created_at", "2015-01-04 17:47:25.098773"], ["updated_at", "2015-01-04 17:47:25.098773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.105629"], ["updated_at", "2015-01-04 17:47:25.105629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "address_id") VALUES (?, ?) [["first_name", "Primus"], ["address_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.108911"], ["updated_at", "2015-01-04 17:47:25.108911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.110526"], ["updated_at", "2015-01-04 17:47:25.110526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.111497"], ["updated_at", "2015-01-04 17:47:25.111497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.112309"], ["updated_at", "2015-01-04 17:47:25.112309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.113056"], ["updated_at", "2015-01-04 17:47:25.113056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 3], ["created_at", "2015-01-04 17:47:25.115227"], ["updated_at", "2015-01-04 17:47:25.115227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 5], ["created_at", "2015-01-04 17:47:25.116579"], ["updated_at", "2015-01-04 17:47:25.116579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.123448"], ["updated_at", "2015-01-04 17:47:25.123448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "address_id") VALUES (?, ?) [["first_name", "Primus"], ["address_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.126644"], ["updated_at", "2015-01-04 17:47:25.126644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.127954"], ["updated_at", "2015-01-04 17:47:25.127954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.128977"], ["updated_at", "2015-01-04 17:47:25.128977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.130001"], ["updated_at", "2015-01-04 17:47:25.130001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.131215"], ["updated_at", "2015-01-04 17:47:25.131215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 3], ["created_at", "2015-01-04 17:47:25.135187"], ["updated_at", "2015-01-04 17:47:25.135187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 5], ["created_at", "2015-01-04 17:47:25.136869"], ["updated_at", "2015-01-04 17:47:25.136869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.142551"], ["updated_at", "2015-01-04 17:47:25.142551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "address_id") VALUES (?, ?) [["first_name", "Primus"], ["address_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.145774"], ["updated_at", "2015-01-04 17:47:25.145774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.147596"], ["updated_at", "2015-01-04 17:47:25.147596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.148748"], ["updated_at", "2015-01-04 17:47:25.148748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.149836"], ["updated_at", "2015-01-04 17:47:25.149836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.150686"], ["updated_at", "2015-01-04 17:47:25.150686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 3], ["created_at", "2015-01-04 17:47:25.152385"], ["updated_at", "2015-01-04 17:47:25.152385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 5], ["created_at", "2015-01-04 17:47:25.153685"], ["updated_at", "2015-01-04 17:47:25.153685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.160223"], ["updated_at", "2015-01-04 17:47:25.160223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "address_id") VALUES (?, ?) [["first_name", "Primus"], ["address_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.163618"], ["updated_at", "2015-01-04 17:47:25.163618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES (?, ?, ?) [["person_id", 1], ["created_at", "2015-01-04 17:47:25.164836"], ["updated_at", "2015-01-04 17:47:25.164836"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.166327"], ["updated_at", "2015-01-04 17:47:25.166327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.167621"], ["updated_at", "2015-01-04 17:47:25.167621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-04 17:47:25.168730"], ["updated_at", "2015-01-04 17:47:25.168730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 3], ["created_at", "2015-01-04 17:47:25.170947"], ["updated_at", "2015-01-04 17:47:25.170947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["person_id", 1], ["item_id", 5], ["created_at", "2015-01-04 17:47:25.172523"], ["updated_at", "2015-01-04 17:47:25.172523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.4ms) DROP TABLE "items"  (0.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.0ms) begin transaction ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.2ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)  (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.7ms) rollback transaction  (0.1ms) begin transaction ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-04 17:47:25.252935"], ["updated_at", "2015-01-04 17:47:25.252935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_profile" SQLite3::SQLException: no such view: v_profile: DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_profile' AND NOT name = 'sqlite_sequence'   (0.1ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.2ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.0ms) SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'   (0.3ms) DROP TABLE "items"  (0.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "items_people"  (0.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "people"  (0.1ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)   (0.1ms) DROP TABLE "people2"  (0.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP TABLE "places"  (0.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people  (0.0ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.0ms) drop view if exists V_PROFILE  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" SQLite3::SQLException: no such view: v_place: DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" AS select address, city, cstate, country from places  (0.1ms) DROP VIEW "v_place"  (0.1ms) SELECT * FROM v_place SQLite3::SQLException: no such table: v_place: SELECT * FROM v_place  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.2ms) SELECT sql FROM sqlite_master WHERE name = 'foo' AND NOT name = 'sqlite_sequence'  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE (type = 'table') AND NOT name = 'sqlite_sequence'   (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW v_people AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.6ms) rollback transaction  (0.2ms) begin transaction --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people  (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'view' AND NOT name = 'sqlite_sequence'   (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (1.7ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-11 19:18:30.511652"], ["updated_at", "2015-01-11 19:18:30.511652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (1.9ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'   (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.5ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.4ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.0ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (1.9ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'   (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (1.3ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-11 19:20:27.855386"], ["updated_at", "2015-01-11 19:20:27.855386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.6ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ---------------------------------- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (2.1ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')   (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (1.3ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'   (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-11 19:24:08.738879"], ["updated_at", "2015-01-11 19:24:08.738879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.4ms) ROLLBACK  (0.2ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.6ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (1.9ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-11 19:25:51.927476"], ["updated_at", "2015-01-11 19:25:51.927476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.1ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.1ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (1.1ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'   (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.5ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (2.2ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-11 19:27:01.045298"], ["updated_at", "2015-01-11 19:27:01.045298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (1.5ms) DROP VIEW "v_people"  (1.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (1.9ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.4ms) DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.4ms) DROP VIEW "v_people"  (0.5ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.3ms) DROP VIEW "v_people"  (0.6ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (1.0ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.9ms) DROP VIEW "v_people"  (2.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (2.2ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')   (0.4ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (1.4ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  (0.5ms) ROLLBACK  (0.2ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.8ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'   (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.8ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.4ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.7ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.5ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-11 19:41:16.687584"], ["updated_at", "2015-01-11 19:41:16.687584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.4ms) DROP VIEW "v_people"  (0.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::UndefinedTable: ERROR: relation "places" does not exist LINE 5: WHERE a.attrelid = '"places"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"places"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) DROP VIEW "v_people"  (0.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::UndefinedTable: ERROR: relation "places" does not exist LINE 5: WHERE a.attrelid = '"places"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"places"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) DROP VIEW "v_people"  (0.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::UndefinedTable: ERROR: relation "places" does not exist LINE 5: WHERE a.attrelid = '"places"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"places"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.4ms) DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::UndefinedTable: ERROR: relation "places" does not exist LINE 5: WHERE a.attrelid = '"places"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"places"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.5ms) DROP VIEW "v_people"  (0.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::UndefinedTable: ERROR: relation "places" does not exist LINE 5: WHERE a.attrelid = '"places"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"places"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.4ms) DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::UndefinedTable: ERROR: relation "places" does not exist LINE 5: WHERE a.attrelid = '"places"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"places"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK  (113.6ms) DROP DATABASE IF EXISTS "rails_sql_views_unittest"  (264.8ms) CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode'  (113.7ms) DROP DATABASE IF EXISTS "rails_sql_views_unittest"  (238.3ms) CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode' SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (4.2ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.6ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.8ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (3.2ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)   (3.0ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200436')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200437')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200438')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200439') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (2.0ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-12 09:15:10.521336"], ["updated_at", "2015-01-12 09:15:10.521336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.3ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (1.2ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'   (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.5ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people Could not log "sql.active_record" event. SignalException: SIGHUP ["/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:46:in `current_tags'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:51:in `tags_text'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/tagged_logging.rb:21:in `call'", "/Users/laurent/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/logger.rb:491:in `format_message'", "/Users/laurent/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/logger.rb:379:in `add'", "/Users/laurent/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/logger.rb:400:in `debug'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/log_subscriber.rb:93:in `debug'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/log_subscriber.rb:62:in `sql'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/subscriber.rb:100:in `finish'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/log_subscriber.rb:83:in `finish'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/notifications/fanout.rb:102:in `finish'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/notifications/fanout.rb:46:in `block in finish'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/notifications/fanout.rb:46:in `each'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/notifications/fanout.rb:46:in `finish'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/notifications/instrumenter.rb:36:in `finish'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0.rc3/lib/active_support/notifications/instrumenter.rb:25:in `instrument'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/connection_adapters/abstract_adapter.rb:460:in `log'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/connection_adapters/postgresql/database_statements.rb:227:in `rollback_db_transaction'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/connection_adapters/abstract/transaction.rb:149:in `rollback'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/connection_adapters/abstract/transaction.rb:183:in `rollback_transaction'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/connection_adapters/abstract/database_statements.rb:221:in `rollback_transaction'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/fixtures.rb:960:in `block in teardown_fixtures'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/fixtures.rb:959:in `each'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/fixtures.rb:959:in `teardown_fixtures'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0.rc3/lib/active_record/fixtures.rb:829:in `after_teardown'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:113:in `block (4 levels) in run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:112:in `block (3 levels) in run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:111:in `each'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:111:in `block (2 levels) in run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'", "/Users/laurent/.rvm/gems/ruby-2.1.5/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'"]  (113.0ms) DROP DATABASE IF EXISTS "rails_sql_views_unittest"  (236.2ms) CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode'  (113.1ms) DROP DATABASE IF EXISTS "rails_sql_views_unittest"  (236.8ms) CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode' SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (3.9ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.7ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)   (2.3ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (2.9ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)   (2.4ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200436')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200437')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200438')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141228200439') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.5ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.6ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.5ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (2.5ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'   (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.5ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.5ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.3ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (1.9ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.7ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.4ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-12 09:25:12.040851"], ["updated_at", "2015-01-12 09:25:12.040851"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.3ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.7ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.5ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (2.0ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'   (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.4ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.3ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (1.4ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.3ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.7ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.4ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.3ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-12 09:40:09.285243"], ["updated_at", "2015-01-12 09:40:09.285243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.3ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK  (0.2ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.5ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.4ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (3.0ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-12 09:40:42.493888"], ["updated_at", "2015-01-12 09:40:42.493888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.3ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.2ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.1ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (1.7ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'   (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (2.8ms) CREATE VIEW "toto" AS select id, first_name from people  (0.5ms) CREATE VIEW "toto" AS select id, first_name from people PG::DuplicateTable: ERROR: relation "toto" already exists : CREATE VIEW "toto" AS select id, first_name from people  (0.4ms) DROP VIEW "totota" PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : DROP VIEW "totota"  (0.3ms) CREATE VIEW "totota" AS select id, first_name from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "totota" AS select id, first_name from people  (0.7ms) CREATE VIEW "totota" AS select id, first_name from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "totota" AS select id, first_name from people  (0.4ms) CREATE VIEW "totota" AS select id, first_name from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "totota" AS select id, first_name from people  (0.3ms) CREATE VIEW "totota" AS select id, first_name from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "totota" AS select id, first_name from people  (0.3ms) CREATE VIEW "totota" AS select id, first_name from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "totota" AS select id, first_name from people  (0.3ms) CREATE VIEW "totota" AS select id, first_name from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "totota" AS select id, first_name from people ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.6ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (2.4ms) CREATE VIEW "tata" AS select id, first_name from people  (1.0ms) CREATE VIEW "tataplus" AS select id, first_name from people  (0.5ms) DROP VIEW "tatamoins" PG::UndefinedTable: ERROR: view "tatamoins" does not exist : DROP VIEW "tatamoins"  (0.3ms) CREATE VIEW "tatamoins" AS select id, first_name from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "tatamoins" AS select id, first_name from people ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.5ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (2.2ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-12 10:36:59.142744"], ["updated_at", "2015-01-12 10:36:59.142744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.7ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.5ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (1.3ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.7ms) ROLLBACK  (0.2ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people  (0.2ms) ROLLBACK  (0.2ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.3ms) DROP VIEW "v_place" PG::UndefinedTable: ERROR: view "v_place" does not exist : DROP VIEW "v_place"  (0.2ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (0.7ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (1.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.9ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.9ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (1.9ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.7ms) DROP TABLE "items" CASCADE  (1.8ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.5ms) DROP TABLE "items_people" CASCADE  (1.6ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.2ms) DROP TABLE "people" CASCADE  (2.7ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (0.9ms) DROP TABLE "people2" CASCADE  (3.1ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) DROP TABLE "places" CASCADE  (2.6ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)  (4.4ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS SELECT people.id, people.first_name AS f_name, people.last_name AS l_name, people.ssn AS social_security, people.address_id FROM people; PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS SELECT people.id, people.first_name AS f_name, people.last_name AS l_name, people.ssn AS social_security, people.address_id FROM people;  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (1.0ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'  (0.9ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE "items" CASCADE  (1.4ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.5ms) DROP TABLE "items_people" CASCADE  (1.5ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) DROP TABLE "people" CASCADE  (2.7ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (0.5ms) DROP TABLE "people2" CASCADE  (1.9ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)  (0.5ms) DROP TABLE "places" CASCADE  (2.3ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)  (0.5ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (2.5ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (1.0ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.9ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'  (0.8ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE "items" CASCADE  (2.0ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) DROP TABLE "items_people" CASCADE  (1.9ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) DROP TABLE "people" CASCADE  (2.0ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (0.5ms) DROP TABLE "people2" CASCADE  (2.0ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) DROP TABLE "places" CASCADE  (2.8ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (2.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.9ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-12 10:37:34.124008"], ["updated_at", "2015-01-12 10:37:34.124008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) DROP VIEW "v_profile" PG::UndefinedTable: ERROR: view "v_profile" does not exist : DROP VIEW "v_profile"  (0.2ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2 PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.9ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'  (0.6ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'   (0.6ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  (0.4ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.7ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (1.1ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'   (0.7ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people' SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.5ms) DROP TABLE "items" CASCADE  (1.4ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.4ms) DROP TABLE "items_people" CASCADE  (1.3ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) DROP TABLE "people" CASCADE  (2.5ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)   (0.5ms) DROP TABLE "people2" CASCADE  (2.2ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)   (1.0ms) DROP TABLE "places" CASCADE  (3.2ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)   (3.0ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS SELECT people.id, people.first_name AS f_name, people.last_name AS l_name, people.ssn AS social_security, people.address_id FROM people; PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS SELECT people.id, people.first_name AS f_name, people.last_name AS l_name, people.ssn AS social_security, people.address_id FROM people;  (0.2ms) drop view if exists V_PEOPLE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : drop view if exists V_PEOPLE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.2ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.3ms) DROP VIEW "v_people" PG::UndefinedTable: ERROR: view "v_people" does not exist : DROP VIEW "v_people"  (0.2ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (2.9ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')   (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people Person Load (0.6ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.7ms) CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places  (0.4ms) DROP VIEW "v_place"  (0.3ms) SELECT * FROM v_place PG::UndefinedTable: ERROR: relation "v_place" does not exist LINE 1: SELECT * FROM v_place ^ : SELECT * FROM v_place  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (1.1ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'   (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.8ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (1.3ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.8ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (0.5ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (1.1ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.6ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.7ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'   (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (1.4ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (1.3ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')   (0.6ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (1.1ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  (0.2ms) ROLLBACK  (0.2ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (1.0ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (1.7ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (0.5ms) ROLLBACK  (0.5ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.4ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.8ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.8ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (0.9ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE "items" CASCADE  (1.9ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) DROP TABLE "items_people" CASCADE  (1.6ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) DROP TABLE "people" CASCADE  (2.8ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (1.1ms) DROP TABLE "people2" CASCADE  (2.4ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) DROP TABLE "places" CASCADE  (3.4ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS SELECT people.id, people.first_name AS f_name, people.last_name AS l_name, people.ssn AS social_security, people.address_id FROM people;  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (2.9ms) ROLLBACK  (0.2ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (1.0ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (1.4ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE "items" CASCADE  (1.6ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.5ms) DROP TABLE "items_people" CASCADE  (1.4ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.7ms) DROP TABLE "people" CASCADE  (2.1ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)   (1.1ms) DROP TABLE "people2" CASCADE  (3.0ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)   (1.1ms) DROP TABLE "places" CASCADE  (2.2ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)   (0.2ms) SELECT version FROM "schema_migrations"  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (2.1ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.3ms) drop view if exists V_PROFILE  (1.2ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.7ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW' SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.8ms) DROP TABLE "items" CASCADE  (2.0ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.8ms) DROP TABLE "items_people" CASCADE  (2.1ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)   (0.9ms) DROP TABLE "people" CASCADE  (2.6ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)   (0.6ms) DROP TABLE "people2" CASCADE  (2.1ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)   (0.6ms) DROP TABLE "places" CASCADE  (3.0ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)   (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (2.1ms) ROLLBACK  (0.2ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-12 10:42:10.917253"], ["updated_at", "2015-01-12 10:42:10.917253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS select first_name, last_name, ssn from people UNION select first_name, last_name, ssn from people2  ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.7ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (0.7ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_profile'  SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE "items" CASCADE  (1.5ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.5ms) DROP TABLE "items_people" CASCADE  (1.4ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) DROP TABLE "people" CASCADE  (3.7ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (0.8ms) DROP TABLE "people2" CASCADE  (2.2ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)  (0.9ms) DROP TABLE "places" CASCADE  (2.1ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.3ms) CREATE VIEW "v_profile" ("first_name", "last_name", "ssn") AS SELECT people.first_name, people.last_name, people.ssn FROM people UNION SELECT people2.first_name, people2.last_name, people2.ssn FROM people2;  (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) drop view if exists V_PEOPLE  (0.4ms) drop view if exists V_PROFILE  (3.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.3ms) drop view if exists V_PEOPLE  (0.3ms) drop view if exists V_PROFILE  (1.0ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.8ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (0.7ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'   (0.6ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'  (0.7ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'   (0.7ms) SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  (0.8ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.6ms) DROP TABLE "items" CASCADE  (1.6ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) DROP TABLE "items_people" CASCADE  (1.8ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) DROP TABLE "people" CASCADE  (3.5ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (0.7ms) DROP TABLE "people2" CASCADE  (2.3ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)  (1.3ms) DROP TABLE "places" CASCADE  (3.7ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)  (0.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS SELECT people.id, people.first_name AS f_name, people.last_name AS l_name, people.ssn AS social_security, people.address_id FROM people;  (0.4ms) DROP VIEW "v_people"  (0.6ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS SELECT people.id, people.first_name AS f_name, people.last_name AS l_name, people.ssn AS social_security, people.address_id FROM people;  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) drop view if exists V_PEOPLE  (0.2ms) drop view if exists V_PROFILE  (2.1ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.280688"], ["updated_at", "2015-01-12 10:42:11.280688"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 12], ["created_at", "2015-01-12 10:42:11.339139"], ["updated_at", "2015-01-12 10:42:11.339139"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 12], ["created_at", "2015-01-12 10:42:11.352711"], ["updated_at", "2015-01-12 10:42:11.352711"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.359863"], ["updated_at", "2015-01-12 10:42:11.359863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.366814"], ["updated_at", "2015-01-12 10:42:11.366814"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.373017"], ["updated_at", "2015-01-12 10:42:11.373017"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 12], ["item_id", 3], ["created_at", "2015-01-12 10:42:11.402621"], ["updated_at", "2015-01-12 10:42:11.402621"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 12], ["item_id", 5], ["created_at", "2015-01-12 10:42:11.415887"], ["updated_at", "2015-01-12 10:42:11.415887"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.449764"], ["updated_at", "2015-01-12 10:42:11.449764"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 13], ["created_at", "2015-01-12 10:42:11.474353"], ["updated_at", "2015-01-12 10:42:11.474353"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 13], ["created_at", "2015-01-12 10:42:11.488502"], ["updated_at", "2015-01-12 10:42:11.488502"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.496881"], ["updated_at", "2015-01-12 10:42:11.496881"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.504797"], ["updated_at", "2015-01-12 10:42:11.504797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.513317"], ["updated_at", "2015-01-12 10:42:11.513317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 13], ["item_id", 8], ["created_at", "2015-01-12 10:42:11.531264"], ["updated_at", "2015-01-12 10:42:11.531264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 13], ["item_id", 10], ["created_at", "2015-01-12 10:42:11.548963"], ["updated_at", "2015-01-12 10:42:11.548963"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.574063"], ["updated_at", "2015-01-12 10:42:11.574063"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 14], ["created_at", "2015-01-12 10:42:11.603929"], ["updated_at", "2015-01-12 10:42:11.603929"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 14], ["created_at", "2015-01-12 10:42:11.619299"], ["updated_at", "2015-01-12 10:42:11.619299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.627367"], ["updated_at", "2015-01-12 10:42:11.627367"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.634435"], ["updated_at", "2015-01-12 10:42:11.634435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.642652"], ["updated_at", "2015-01-12 10:42:11.642652"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 14], ["item_id", 13], ["created_at", "2015-01-12 10:42:11.660672"], ["updated_at", "2015-01-12 10:42:11.660672"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 14], ["item_id", 15], ["created_at", "2015-01-12 10:42:11.677236"], ["updated_at", "2015-01-12 10:42:11.677236"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.705260"], ["updated_at", "2015-01-12 10:42:11.705260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 15], ["created_at", "2015-01-12 10:42:11.727318"], ["updated_at", "2015-01-12 10:42:11.727318"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 15], ["created_at", "2015-01-12 10:42:11.739353"], ["updated_at", "2015-01-12 10:42:11.739353"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.749108"], ["updated_at", "2015-01-12 10:42:11.749108"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.756311"], ["updated_at", "2015-01-12 10:42:11.756311"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.763197"], ["updated_at", "2015-01-12 10:42:11.763197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 15], ["item_id", 18], ["created_at", "2015-01-12 10:42:11.776035"], ["updated_at", "2015-01-12 10:42:11.776035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 15], ["item_id", 20], ["created_at", "2015-01-12 10:42:11.787878"], ["updated_at", "2015-01-12 10:42:11.787878"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.3ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.819717"], ["updated_at", "2015-01-12 10:42:11.819717"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 16], ["created_at", "2015-01-12 10:42:11.843063"], ["updated_at", "2015-01-12 10:42:11.843063"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 16], ["created_at", "2015-01-12 10:42:11.856131"], ["updated_at", "2015-01-12 10:42:11.856131"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.867540"], ["updated_at", "2015-01-12 10:42:11.867540"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.875687"], ["updated_at", "2015-01-12 10:42:11.875687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.882716"], ["updated_at", "2015-01-12 10:42:11.882716"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 16], ["item_id", 23], ["created_at", "2015-01-12 10:42:11.897496"], ["updated_at", "2015-01-12 10:42:11.897496"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 16], ["item_id", 25], ["created_at", "2015-01-12 10:42:11.911689"], ["updated_at", "2015-01-12 10:42:11.911689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.2ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.936246"], ["updated_at", "2015-01-12 10:42:11.936246"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 17], ["created_at", "2015-01-12 10:42:11.961677"], ["updated_at", "2015-01-12 10:42:11.961677"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 17], ["created_at", "2015-01-12 10:42:11.977380"], ["updated_at", "2015-01-12 10:42:11.977380"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.986741"], ["updated_at", "2015-01-12 10:42:11.986741"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:11.997982"], ["updated_at", "2015-01-12 10:42:11.997982"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:42:12.008170"], ["updated_at", "2015-01-12 10:42:12.008170"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 17], ["item_id", 28], ["created_at", "2015-01-12 10:42:12.023537"], ["updated_at", "2015-01-12 10:42:12.023537"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 17], ["item_id", 30], ["created_at", "2015-01-12 10:42:12.041524"], ["updated_at", "2015-01-12 10:42:12.041524"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (2.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people  (1.9ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:45:11.198848"], ["updated_at", "2015-01-12 10:45:11.198848"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 18], ["created_at", "2015-01-12 10:45:35.477950"], ["updated_at", "2015-01-12 10:45:35.477950"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 18], ["created_at", "2015-01-12 10:45:35.487816"], ["updated_at", "2015-01-12 10:45:35.487816"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:45:38.551980"], ["updated_at", "2015-01-12 10:45:38.551980"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:45:38.561814"], ["updated_at", "2015-01-12 10:45:38.561814"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-12 10:45:38.572530"], ["updated_at", "2015-01-12 10:45:38.572530"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 18], ["item_id", 33], ["created_at", "2015-01-12 10:45:39.990895"], ["updated_at", "2015-01-12 10:45:39.990895"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 18], ["item_id", 35], ["created_at", "2015-01-12 10:45:42.609092"], ["updated_at", "2015-01-12 10:45:42.609092"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.5ms) SELECT "v_people".* FROM "v_people" Person Load (0.4ms) SELECT "people".* FROM "people" Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 18]] VPerson Load (0.4ms) SELECT "v_people".* FROM "v_people" Person Load (0.9ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 Person Load (0.5ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "people" SET "last_name" = $1 WHERE "people"."id" = $2 [["last_name", "laurent"], ["id", 18]]  (0.2ms) RELEASE SAVEPOINT active_record_1 VPerson Load (0.4ms) SELECT "v_people".* FROM "v_people" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------- SchemaDumperTest: test_regex_ignore -----------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_symbol_ignore ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------- SchemaDumperTest: test_union ----------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (2.8ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')   (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["first_name", "Jane"], ["last_name", "Doe"], ["ssn", "222334444"], ["created_at", "2015-01-12 10:59:00.434782"], ["updated_at", "2015-01-12 10:59:00.434782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------- SchemaDumperTest: test_view ---------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ SchemaDumperTest: test_view_creation_order ------------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- ViewOperationsTest: test_drop_view ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- ViewOperationsTest: test_no_view_raises_error ---------------------------------------------  (1.2ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'foo'   (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------- AdapterTest: test_columns -------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------- AdapterTest: test_current_database ----------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_mapped_columns --------------------------------  (1.9ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ AdapterTest: test_mapped_views ------------------------------  (0.8ms) CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people  (0.8ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------- AdapterTest: test_old_name_not_found_error_during_mapping ---------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------- AdapterTest: test_supports_views --------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------ AdapterTest: test_tables ------------------------  (0.5ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------- AdapterTest: test_view_select_statement ---------------------------------------  (0.8ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'   (0.4ms) ROLLBACK  (0.3ms) BEGIN ----------------------- AdapterTest: test_views -----------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_access_cloned_belongs_to_association --------------------------------------------------------  (0.5ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_access_cloned_has_many_association ------------------------------------------------------  (0.4ms) ROLLBACK  (0.2ms) BEGIN -------------------------------------------------------- ViewModelTest: test_cloned_belongs_to_association_exists --------------------------------------------------------  (0.4ms) ROLLBACK  (0.3ms) BEGIN --------------------------------------------------- ViewModelTest: test_cloned_habtm_association_exists ---------------------------------------------------  (0.3ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------ ViewModelTest: test_cloned_has_many_association_exists ------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------- ViewModelTest: test_same_person -------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (2.0ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.7ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people Person Load (0.8ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 Person Load (0.4ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1 VPerson Load (0.3ms) SELECT "v_people".* FROM "v_people" LIMIT 1 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (2.9ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.6ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE'   (0.7ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'VIEW'  (1.4ms)  SELECT view_definition FROM information_schema.views WHERE table_catalog = (SELECT catalog_name FROM information_schema.information_schema_catalog_name) AND table_schema IN ('"$user"','public') AND table_name = 'v_people'  SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (0.9ms) DROP TABLE "items" CASCADE  (2.1ms) CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)  (0.6ms) DROP TABLE "items_people" CASCADE  (1.5ms) CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)  (1.0ms) DROP TABLE "people" CASCADE  (2.4ms) CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)  (1.1ms) DROP TABLE "people2" CASCADE  (2.5ms) CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)  (0.7ms) DROP TABLE "places" CASCADE  (2.9ms) CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp) ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------- AdapterTest: test_base_tables -----------------------------  (3.7ms) CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people  (3.8ms) SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type = 'BASE TABLE' ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------ ViewOperationsTest: test_create_view ------------------------------------  (1.9ms)  SELECT table_name, table_type FROM information_schema.tables WHERE table_schema IN ('"$user"','public') AND table_type IN ('BASE TABLE', 'VIEW')   (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.2ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE  (5707.8ms) CREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------- RailsSqlViews4Test: test_test_the_true --------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------ RailsSqlViews4Test: test_truth ------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------ SchemaDumperTest: test_dump_and_load ------------------------------------  (0.1ms) drop view if exists V_PEOPLE  (0.1ms) drop view if exists V_PROFILE