test/dummy/log/test.log in rails_sql_views4-0.0.1 vs test/dummy/log/test.log in rails_sql_views4-0.0.2
- old
+ new
@@ -29316,5 +29316,4965 @@
[1m[36m (0.1ms)[0m [1m SELECT name
FROM sqlite_master
WHERE type = 'view' AND NOT name = 'sqlite_sequence'
[0m
[1m[35m (0.3ms)[0m rollback transaction
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (1.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_profile"[0m
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[35m (0.2ms)[0m 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
+
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_place"[0m
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[36m (1.9ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[35m (0.5ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (1.9ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (1.3ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_profile"
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[36m (0.2ms)[0m [1mCREATE 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
+[0m
+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
+
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_place"
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[35m (0.6ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[36m (2.1ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_place"[0m
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[36m (1.3ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_profile"[0m
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[35m (0.2ms)[0m 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
+
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[35m (0.6ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (1.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_profile"[0m
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[35m (0.1ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_place"[0m
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[36m (1.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[35m (0.5ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.2ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_profile"[0m
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[35m (0.2ms)[0m 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
+
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (1.5ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (1.2ms)[0m CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people
+ [1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+ [1m[35m (1.0ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (0.9ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (2.2ms)[0m CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people
+ [1m[36m (2.2ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[35m (1.4ms)[0m 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'
+
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people
+ [1m[36m (0.8ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[35m (0.8ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people[0m
+ [1m[35mPerson Load (0.5ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.4ms)[0m DROP VIEW "v_place"
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[35m (0.7ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.4ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.4ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.4ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.5ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_profile"
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[36m (0.2ms)[0m [1mCREATE 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
+[0m
+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
+
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[36m (0.4ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[35m (0.4ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.8ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.8ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.7ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.6ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.5ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.7ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.6ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[36m (113.6ms)[0m [1mDROP DATABASE IF EXISTS "rails_sql_views_unittest"[0m
+ [1m[35m (264.8ms)[0m CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode'
+ [1m[36m (113.7ms)[0m [1mDROP DATABASE IF EXISTS "rails_sql_views_unittest"[0m
+ [1m[35m (238.3ms)[0m CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode'
+ [1m[36mSQL (0.7ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (4.2ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.6ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (2.8ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (3.2ms)[0m [1mCREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (3.0ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141228200436')[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141228200437')
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141228200438')[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141228200439')
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.0ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_profile"[0m
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[35m (0.3ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_place"[0m
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[36m (1.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (0.5ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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'"]
+ [1m[36m (113.0ms)[0m [1mDROP DATABASE IF EXISTS "rails_sql_views_unittest"[0m
+ [1m[35m (236.2ms)[0m CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode'
+ [1m[36m (113.1ms)[0m [1mDROP DATABASE IF EXISTS "rails_sql_views_unittest"[0m
+ [1m[35m (236.8ms)[0m CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode'
+ [1m[36mSQL (0.9ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (3.9ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.7ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (2.3ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (2.9ms)[0m [1mCREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (2.4ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141228200436')[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141228200437')
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141228200438')[0m
+ [1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141228200439')
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.5ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (0.6ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (2.5ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (0.5ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[35m (1.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_place"
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places[0m
+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
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[35m (0.7ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.2ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.2ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_profile"
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[36m (0.3ms)[0m [1mCREATE 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
+[0m
+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
+
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[35m (0.2ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (0.7ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.6ms)[0m 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
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (2.0ms)[0m [1m 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'
+[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[35m (1.4ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_place"
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[35m (0.7ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.2ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.2ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_profile"
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[36m (0.3ms)[0m [1mCREATE 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
+[0m
+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
+
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[35m (0.2ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.5ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (3.0ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_profile"[0m
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[35m (0.2ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_place"[0m
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[36m (1.7ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.1ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (2.8ms)[0m [1mCREATE VIEW "toto" AS select id, first_name from people[0m
+ [1m[35m (0.5ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "totota"[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: DROP VIEW "totota"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "totota" AS select id, first_name from people[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: CREATE VIEW "totota" AS select id, first_name from people
+ [1m[35m (0.4ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "totota" AS select id, first_name from people[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: CREATE VIEW "totota" AS select id, first_name from people
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "totota" AS select id, first_name from people[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: CREATE VIEW "totota" AS select id, first_name from people
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.6ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (2.4ms)[0m [1mCREATE VIEW "tata" AS select id, first_name from people[0m
+ [1m[35m (1.0ms)[0m CREATE VIEW "tataplus" AS select id, first_name from people
+ [1m[36m (0.5ms)[0m [1mDROP VIEW "tatamoins"[0m
+PG::UndefinedTable: ERROR: view "tatamoins" does not exist
+: DROP VIEW "tatamoins"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.5ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.2ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_profile"[0m
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[35m (0.2ms)[0m 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
+
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[35m (0.7ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[35m (1.3ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people[0m
+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
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.3ms)[0m DROP VIEW "v_place"
+PG::UndefinedTable: ERROR: view "v_place" does not exist
+: DROP VIEW "v_place"
+ [1m[36m (0.2ms)[0m [1mCREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places[0m
+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
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[35m (0.7ms)[0m 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'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (1.8ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (1.9ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (1.8ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (1.6ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.2ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.7ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.1ms)[0m CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.6ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (4.4ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.3ms)[0m 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;
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (1.0ms)[0m 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
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (1.1ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.9ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+[0m
+ [1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (1.4ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (1.5ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.7ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (1.9ms)[0m CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.3ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.5ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (1.0ms)[0m 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
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (1.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.8ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+[0m
+ [1m[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (2.0ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (1.9ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.0ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.0ms)[0m CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.8ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[35m (0.2ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_profile"[0m
+PG::UndefinedTable: ERROR: view "v_profile" does not exist
+: DROP VIEW "v_profile"
+ [1m[35m (0.2ms)[0m 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
+
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
+: drop view if exists V_PEOPLE
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.9ms)[0m 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
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.6ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+[0m
+ [1m[35m (0.6ms)[0m 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'
+
+ [1m[36m (0.4ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.9ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (1.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.7ms)[0m 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'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (1.4ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (1.3ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.9ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (2.5ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer) [0m
+ [1m[35m (0.5ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.2ms)[0m [1mCREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.0ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (3.2ms)[0m [1mCREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (3.0ms)[0m DROP VIEW "v_people"
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[36m (0.3ms)[0m [1mCREATE 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;[0m
+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;
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+PG::UndefinedTable: ERROR: view "v_people" does not exist
+: DROP VIEW "v_people"
+ [1m[35m (0.2ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[36m (2.9ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.7ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people[0m
+ [1m[35mPerson Load (0.6ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" LIMIT 1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_place" ("v_address", "v_city", "v_state", "v_country") AS select address, city, cstate, country from places
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_place"[0m
+ [1m[35m (0.3ms)[0m SELECT * FROM v_place
+PG::UndefinedTable: ERROR: relation "v_place" does not exist
+LINE 1: SELECT * FROM v_place
+ ^
+: SELECT * FROM v_place
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[36m (1.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.8ms)[0m CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people
+ [1m[36m (1.3ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.8ms)[0m CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[36m (1.1ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people
+ [1m[36m (0.7ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[35m (1.4ms)[0m CREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people
+ [1m[36m (1.3ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+[0m
+ [1m[35m (0.6ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[35m (1.1ms)[0m 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'
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (1.0ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+ [1m[35m (1.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.4ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.8ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.8ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.9ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (1.9ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (1.6ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.0ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.8ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (1.1ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.4ms)[0m CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.0ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.4ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.3ms)[0m [1mCREATE 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;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.4ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (1.0ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (1.0ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (1.4ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (1.6ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (1.4ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (2.1ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer) [0m
+ [1m[35m (1.1ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.0ms)[0m [1mCREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.1ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.2ms)[0m [1mCREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PROFILE
+ [1m[36m (1.2ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (1.1ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.8ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (2.0ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.8ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.1ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.9ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (2.6ms)[0m [1mCREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.1ms)[0m [1mCREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (3.0ms)[0m [1mCREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id" [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people2" ("first_name", "last_name", "ssn", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.9ms)[0m [1mCREATE 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
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.9ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.7ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (1.5ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (1.4ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (3.7ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.2ms)[0m CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.1ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.3ms)[0m [1mCREATE 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;[0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.4ms)[0m drop view if exists V_PROFILE
+ [1m[36m (3.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PROFILE
+ [1m[36m (1.0ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (1.0ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.8ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.7ms)[0m [1m 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'
+[0m
+ [1m[35m (0.6ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[35m (0.2ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.7ms)[0m 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
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (1.2ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.7ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+[0m
+ [1m[35m (0.7ms)[0m 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'
+
+ [1m[36m (0.8ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (1.6ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (1.8ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (3.5ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.3ms)[0m CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.3ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.7ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.8ms)[0m [1mCREATE 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;[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.6ms)[0m [1mCREATE 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;[0m
+ [1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.280688"], ["updated_at", "2015-01-12 10:42:11.280688"]]
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 1]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 12], ["created_at", "2015-01-12 10:42:11.339139"], ["updated_at", "2015-01-12 10:42:11.339139"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.359863"], ["updated_at", "2015-01-12 10:42:11.359863"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.373017"], ["updated_at", "2015-01-12 10:42:11.373017"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 12], ["item_id", 5], ["created_at", "2015-01-12 10:42:11.415887"], ["updated_at", "2015-01-12 10:42:11.415887"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.449764"], ["updated_at", "2015-01-12 10:42:11.449764"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 2]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 13], ["created_at", "2015-01-12 10:42:11.474353"], ["updated_at", "2015-01-12 10:42:11.474353"]]
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.496881"], ["updated_at", "2015-01-12 10:42:11.496881"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.513317"], ["updated_at", "2015-01-12 10:42:11.513317"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 13], ["item_id", 10], ["created_at", "2015-01-12 10:42:11.548963"], ["updated_at", "2015-01-12 10:42:11.548963"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.574063"], ["updated_at", "2015-01-12 10:42:11.574063"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 3]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 14], ["created_at", "2015-01-12 10:42:11.603929"], ["updated_at", "2015-01-12 10:42:11.603929"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.627367"], ["updated_at", "2015-01-12 10:42:11.627367"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.642652"], ["updated_at", "2015-01-12 10:42:11.642652"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 14], ["item_id", 15], ["created_at", "2015-01-12 10:42:11.677236"], ["updated_at", "2015-01-12 10:42:11.677236"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.705260"], ["updated_at", "2015-01-12 10:42:11.705260"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 4]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 15], ["created_at", "2015-01-12 10:42:11.727318"], ["updated_at", "2015-01-12 10:42:11.727318"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.749108"], ["updated_at", "2015-01-12 10:42:11.749108"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.763197"], ["updated_at", "2015-01-12 10:42:11.763197"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 15], ["item_id", 20], ["created_at", "2015-01-12 10:42:11.787878"], ["updated_at", "2015-01-12 10:42:11.787878"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.819717"], ["updated_at", "2015-01-12 10:42:11.819717"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 5]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 16], ["created_at", "2015-01-12 10:42:11.843063"], ["updated_at", "2015-01-12 10:42:11.843063"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.867540"], ["updated_at", "2015-01-12 10:42:11.867540"]]
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.882716"], ["updated_at", "2015-01-12 10:42:11.882716"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 16], ["item_id", 25], ["created_at", "2015-01-12 10:42:11.911689"], ["updated_at", "2015-01-12 10:42:11.911689"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.936246"], ["updated_at", "2015-01-12 10:42:11.936246"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 6]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 17], ["created_at", "2015-01-12 10:42:11.961677"], ["updated_at", "2015-01-12 10:42:11.961677"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:11.986741"], ["updated_at", "2015-01-12 10:42:11.986741"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:42:12.008170"], ["updated_at", "2015-01-12 10:42:12.008170"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 17], ["item_id", 30], ["created_at", "2015-01-12 10:42:12.041524"], ["updated_at", "2015-01-12 10:42:12.041524"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (2.7ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (1.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 7]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 18], ["created_at", "2015-01-12 10:45:35.487816"], ["updated_at", "2015-01-12 10:45:35.487816"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-01-12 10:45:38.561814"], ["updated_at", "2015-01-12 10:45:38.561814"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 18], ["item_id", 33], ["created_at", "2015-01-12 10:45:39.990895"], ["updated_at", "2015-01-12 10:45:39.990895"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.5ms)[0m SELECT "v_people".* FROM "v_people"
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people"[0m
+ [1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1 [["id", 18]]
+ [1m[36mVPerson Load (0.4ms)[0m [1mSELECT "v_people".* FROM "v_people"[0m
+ [1m[35mPerson Load (0.9ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
+ [1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mUPDATE "people" SET "last_name" = $1 WHERE "people"."id" = $2[0m [["last_name", "laurent"], ["id", 18]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.4ms)[0m [1mSELECT "v_people".* FROM "v_people"[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_ignore
+-----------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_symbol_ignore
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.8ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "Joe"], ["last_name", "User"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------
+SchemaDumperTest: test_view
+---------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------
+SchemaDumperTest: test_view_creation_order
+------------------------------------------
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[36m (1.2ms)[0m [1m 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'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (1.9ms)[0m CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people[0m
+ [1m[35m (0.8ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------
+AdapterTest: test_old_name_not_found_error_during_mapping
+---------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------------------------------------
+AdapterTest: test_only_base_table_triggers_are_dropped_for_disabled_ref_integrity
+---------------------------------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (0.8ms)[0m [1m 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'
+[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[36m (2.0ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (2.7ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people[0m
+ [1m[35mPerson Load (0.8ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.9ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (2.6ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (1.4ms)[0m [1m 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'
+[0m
+ [1m[35mSQL (0.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (2.1ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (1.5ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.0ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.4ms)[0m CREATE TABLE "people" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "address_id" integer)
+ [1m[36m (1.1ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.5ms)[0m CREATE TABLE "people2" ("id" serial primary key, "first_name" character varying, "last_name" character varying, "ssn" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.9ms)[0m CREATE TABLE "places" ("id" serial primary key, "address" text, "city" character varying, "cstate" character varying, "country" character varying, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (3.7ms)[0m [1mCREATE VIEW "v_people" ("f_name", "l_name", "social_security") AS select first_name, last_name, ssn from people[0m
+ [1m[35m (3.8ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------
+ViewOperationsTest: test_create_view
+------------------------------------
+ [1m[36m (1.9ms)[0m [1m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type IN ('BASE TABLE', 'VIEW')
+[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "people" ("first_name", "last_name", "ssn") VALUES ($1, $2, $3) RETURNING "id"[0m [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (2.5ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security") AS select id, first_name, last_name, ssn from people[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.2ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (5707.8ms)[0m [1mCREATE VIEW "v_people" ("id", "f_name", "l_name", "social_security", "address_id") AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------
+RailsSqlViews4Test: test_test_the_true
+--------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+RailsSqlViews4Test: test_truth
+------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE