test/dummy/log/test.log in rails_sql_views4-0.0.2 vs test/dummy/log/test.log in rails_sql_views4-0.0.3
- old
+ new
@@ -34276,5 +34276,9443 @@
------------------------------------
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 (112.9ms)[0m [1mDROP DATABASE IF EXISTS "rails_sql_views_unittest"[0m
+ [1m[35m (239.1ms)[0m CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode'
+ [1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (3.1ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.8ms)[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.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 (3.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 (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 (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.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141228200440')
+ [1m[36m (0.3ms)[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.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [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 [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [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 [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [1m[36m (2.6ms)[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 [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.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.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[35m (1.8ms)[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
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [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 (1.3ms)[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.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.8ms)[0m CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people
+ [1m[36m (1.0ms)[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.2ms)[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 ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [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.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [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[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.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 (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.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[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-12-19 11:32:28.245375"], ["updated_at", "2015-12-19 11:32:28.245375"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [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_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.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_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 if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (4.2ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id 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 IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:21:52.688234"], ["updated_at", "2015-12-19 13:21:52.688234"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 1]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.4ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 4], ["created_at", "2015-12-19 13:21:52.733365"], ["updated_at", "2015-12-19 13:21:52.733365"]]
+ [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", 4], ["created_at", "2015-12-19 13:21:52.743065"], ["updated_at", "2015-12-19 13:21:52.743065"]]
+ [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-12-19 13:21:52.747599"], ["updated_at", "2015-12-19 13:21:52.747599"]]
+ [1m[36m (0.1ms)[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-12-19 13:21:52.751310"], ["updated_at", "2015-12-19 13:21:52.751310"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:21:52.754803"], ["updated_at", "2015-12-19 13:21:52.754803"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 4], ["item_id", 3], ["created_at", "2015-12-19 13:21:52.785071"], ["updated_at", "2015-12-19 13:21:52.785071"]]
+ [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", 4], ["item_id", 5], ["created_at", "2015-12-19 13:21:52.793896"], ["updated_at", "2015-12-19 13:21:52.793896"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (2.3ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[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.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:11.094106"], ["updated_at", "2015-12-19 13:22:11.094106"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 2]]
+ [1m[35m (0.1ms)[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", 5], ["created_at", "2015-12-19 13:22:11.135615"], ["updated_at", "2015-12-19 13:22:11.135615"]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 5], ["created_at", "2015-12-19 13:22:11.141568"], ["updated_at", "2015-12-19 13:22:11.141568"]]
+ [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-12-19 13:22:11.145615"], ["updated_at", "2015-12-19 13:22:11.145615"]]
+ [1m[36m (0.1ms)[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-12-19 13:22:11.149321"], ["updated_at", "2015-12-19 13:22:11.149321"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:11.153001"], ["updated_at", "2015-12-19 13:22:11.153001"]]
+ [1m[36m (0.1ms)[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", 5], ["item_id", 8], ["created_at", "2015-12-19 13:22:11.183173"], ["updated_at", "2015-12-19 13:22:11.183173"]]
+ [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_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 5], ["item_id", 10], ["created_at", "2015-12-19 13:22:11.191311"], ["updated_at", "2015-12-19 13:22:11.191311"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (1.2ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:13.616665"], ["updated_at", "2015-12-19 13:22:13.616665"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 3]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 6], ["created_at", "2015-12-19 13:22:13.629839"], ["updated_at", "2015-12-19 13:22:13.629839"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 6], ["created_at", "2015-12-19 13:22:13.635310"], ["updated_at", "2015-12-19 13:22:13.635310"]]
+ [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" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:13.640226"], ["updated_at", "2015-12-19 13:22:13.640226"]]
+ [1m[36m (0.1ms)[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-12-19 13:22:13.644803"], ["updated_at", "2015-12-19 13:22:13.644803"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:13.648620"], ["updated_at", "2015-12-19 13:22:13.648620"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 6], ["item_id", 13], ["created_at", "2015-12-19 13:22:13.658505"], ["updated_at", "2015-12-19 13:22:13.658505"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 6], ["item_id", 15], ["created_at", "2015-12-19 13:22:13.667457"], ["updated_at", "2015-12-19 13:22:13.667457"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (1.3ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:15.830616"], ["updated_at", "2015-12-19 13:22:15.830616"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 4]]
+ [1m[35m (0.1ms)[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", 7], ["created_at", "2015-12-19 13:22:15.843170"], ["updated_at", "2015-12-19 13:22:15.843170"]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 7], ["created_at", "2015-12-19 13:22:15.849392"], ["updated_at", "2015-12-19 13:22:15.849392"]]
+ [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" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:15.853830"], ["updated_at", "2015-12-19 13:22:15.853830"]]
+ [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-12-19 13:22:15.858440"], ["updated_at", "2015-12-19 13:22:15.858440"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:15.862208"], ["updated_at", "2015-12-19 13:22:15.862208"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 7], ["item_id", 18], ["created_at", "2015-12-19 13:22:15.869884"], ["updated_at", "2015-12-19 13:22:15.869884"]]
+ [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_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 7], ["item_id", 20], ["created_at", "2015-12-19 13:22:15.878553"], ["updated_at", "2015-12-19 13:22:15.878553"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (1.2ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:19.700495"], ["updated_at", "2015-12-19 13:22:19.700495"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 5]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 8], ["created_at", "2015-12-19 13:22:19.714304"], ["updated_at", "2015-12-19 13:22:19.714304"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 8], ["created_at", "2015-12-19 13:22:19.720364"], ["updated_at", "2015-12-19 13:22:19.720364"]]
+ [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-12-19 13:22:19.725869"], ["updated_at", "2015-12-19 13:22:19.725869"]]
+ [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-12-19 13:22:19.730441"], ["updated_at", "2015-12-19 13:22:19.730441"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:19.734357"], ["updated_at", "2015-12-19 13:22:19.734357"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 8], ["item_id", 23], ["created_at", "2015-12-19 13:22:19.749200"], ["updated_at", "2015-12-19 13:22:19.749200"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 8], ["item_id", 25], ["created_at", "2015-12-19 13:22:19.757344"], ["updated_at", "2015-12-19 13:22:19.757344"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (1.3ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:21.963208"], ["updated_at", "2015-12-19 13:22:21.963208"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 6]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 9], ["created_at", "2015-12-19 13:22:21.977864"], ["updated_at", "2015-12-19 13:22:21.977864"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 9], ["created_at", "2015-12-19 13:22:21.984253"], ["updated_at", "2015-12-19 13:22:21.984253"]]
+ [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-12-19 13:22:21.990826"], ["updated_at", "2015-12-19 13:22:21.990826"]]
+ [1m[36m (0.1ms)[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-12-19 13:22:21.995981"], ["updated_at", "2015-12-19 13:22:21.995981"]]
+ [1m[35m (0.1ms)[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-12-19 13:22:22.000514"], ["updated_at", "2015-12-19 13:22:22.000514"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 9], ["item_id", 28], ["created_at", "2015-12-19 13:22:22.009130"], ["updated_at", "2015-12-19 13:22:22.009130"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 9], ["item_id", 30], ["created_at", "2015-12-19 13:22:22.016499"], ["updated_at", "2015-12-19 13:22:22.016499"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (1.3ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:25.521650"], ["updated_at", "2015-12-19 13:22:25.521650"]]
+ [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 "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.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 10], ["created_at", "2015-12-19 13:22:25.535710"], ["updated_at", "2015-12-19 13:22:25.535710"]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 10], ["created_at", "2015-12-19 13:22:25.542012"], ["updated_at", "2015-12-19 13:22:25.542012"]]
+ [1m[35m (0.1ms)[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-12-19 13:22:25.547243"], ["updated_at", "2015-12-19 13:22:25.547243"]]
+ [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-12-19 13:22:25.551550"], ["updated_at", "2015-12-19 13:22:25.551550"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:22:25.555599"], ["updated_at", "2015-12-19 13:22:25.555599"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 10], ["item_id", 33], ["created_at", "2015-12-19 13:22:25.566702"], ["updated_at", "2015-12-19 13:22:25.566702"]]
+ [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_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 10], ["item_id", 35], ["created_at", "2015-12-19 13:22:25.575847"], ["updated_at", "2015-12-19 13:22:25.575847"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[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.2ms)[0m [1mBEGIN[0m
+------------------------------------
+SchemaDumperTest: test_dump_and_load
+------------------------------------
+ [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.9ms)[0m CREATE VIEW "v_people" 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.5ms)[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 (2.0ms)[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.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (19.8ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (3.4ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (1.9ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.5ms)[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 (1.1ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.3ms)[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 (1.3ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[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 (2.6ms)[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 (1.4ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[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.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.0ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.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.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 (0.6ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.6ms)[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.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.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [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 (2.0ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+------------------------------------
+SchemaDumperTest: test_symbol_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 (2.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[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[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (18.1ms)[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.7ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.1ms)[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.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.7ms)[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.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [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 (2.6ms)[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.1ms)[0m [1mdrop view if exists V_PROFILE[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.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[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-12-19 13:22:41.316997"], ["updated_at", "2015-12-19 13:22:41.316997"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[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
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (2.9ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (3.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.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (1.3ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+----------------------------------
+AdapterTest: test_current_database
+----------------------------------
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+--------------------------------
+AdapterTest: test_mapped_columns
+--------------------------------
+ [1m[35m (0.8ms)[0m CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[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.2ms)[0m BEGIN
+--------------------------------
+AdapterTest: test_supports_views
+--------------------------------
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (1.3ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (1.5ms)[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 [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [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.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (1.2ms)[0m CREATE VIEW "v_people" 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 = 'VIEW'
+[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (1.3ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id 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 IN ('BASE TABLE', 'VIEW')
+[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-12-19 13:28:15.043521"], ["updated_at", "2015-12-19 13:28:15.043521"]]
+ [1m[35m (0.1ms)[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", 8]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 12], ["created_at", "2015-12-19 13:28:15.092853"], ["updated_at", "2015-12-19 13:28:15.092853"]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 12], ["created_at", "2015-12-19 13:28:15.112088"], ["updated_at", "2015-12-19 13:28:15.112088"]]
+ [1m[36m (0.1ms)[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-12-19 13:28:15.116745"], ["updated_at", "2015-12-19 13:28:15.116745"]]
+ [1m[35m (0.1ms)[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-12-19 13:28:15.120720"], ["updated_at", "2015-12-19 13:28:15.120720"]]
+ [1m[36m (0.1ms)[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-12-19 13:28:15.124684"], ["updated_at", "2015-12-19 13:28:15.124684"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 12], ["item_id", 38], ["created_at", "2015-12-19 13:28:15.145392"], ["updated_at", "2015-12-19 13:28:15.145392"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 12], ["item_id", 40], ["created_at", "2015-12-19 13:28:15.152623"], ["updated_at", "2015-12-19 13:28:15.152623"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [1m[36m (1.7ms)[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 (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 (2.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.7ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (1.2ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.7ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.4ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [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 = '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[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 (1.4ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (2.0ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" 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.5ms)[0m CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn 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 IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [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 = 'v_people'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" 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.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_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.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", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[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.1ms)[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.7ms)[0m [1mCREATE VIEW "v_people" 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.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_place" 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[36m (0.6ms)[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
+------------------------------------
+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.6ms)[0m CREATE VIEW "v_people" 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 (0.8ms)[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.8ms)[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.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.4ms)[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.2ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.2ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.0ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.5ms)[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.8ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.3ms)[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.6ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (3.0ms)[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.9ms)[0m CREATE VIEW "v_people" 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 (0.7ms)[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[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.8ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.0ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.6ms)[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 (2.1ms)[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.0ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.6ms)[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.2ms)[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.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 (1.1ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[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[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.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 (18.2ms)[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 (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 (0.8ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.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 (1.1ms)[0m [1mDROP TABLE "places" CASCADE[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 (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.4ms)[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 (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", "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.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-12-19 13:34:36.209102"], ["updated_at", "2015-12-19 13:34:36.209102"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.0ms)[0m CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[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[35m (0.8ms)[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_profile'
+
+ [1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.7ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.2ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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.2ms)[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 (3.7ms)[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.5ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.3ms)[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.7ms)[0m CREATE VIEW "v_profile" AS SELECT people.first_name,
+ people.last_name,
+ people.ssn
+ FROM people
+UNION
+ SELECT people2.first_name,
+ people2.last_name,
+ people2.ssn
+ FROM people2;
+ [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.4ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.4ms)[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.8ms)[0m CREATE VIEW "v_people" 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.7ms)[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.6ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.6ms)[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.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.9ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.2ms)[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.3ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.3ms)[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 (2.4ms)[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.9ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.5ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (1.2ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[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.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.799175"], ["updated_at", "2015-12-19 13:34:56.799175"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 9]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 18], ["created_at", "2015-12-19 13:34:56.824929"], ["updated_at", "2015-12-19 13:34:56.824929"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 18], ["created_at", "2015-12-19 13:34:56.826786"], ["updated_at", "2015-12-19 13:34:56.826786"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.827830"], ["updated_at", "2015-12-19 13:34:56.827830"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:34:56.828922"], ["updated_at", "2015-12-19 13:34:56.828922"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.829882"], ["updated_at", "2015-12-19 13:34:56.829882"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 18], ["item_id", 43], ["created_at", "2015-12-19 13:34:56.839111"], ["updated_at", "2015-12-19 13:34:56.839111"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[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", 45], ["created_at", "2015-12-19 13:34:56.841150"], ["updated_at", "2015-12-19 13:34:56.841150"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.846838"], ["updated_at", "2015-12-19 13:34:56.846838"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 10]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 19], ["created_at", "2015-12-19 13:34:56.850074"], ["updated_at", "2015-12-19 13:34:56.850074"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 19], ["created_at", "2015-12-19 13:34:56.851334"], ["updated_at", "2015-12-19 13:34:56.851334"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.852367"], ["updated_at", "2015-12-19 13:34:56.852367"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:34:56.853304"], ["updated_at", "2015-12-19 13:34:56.853304"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.854265"], ["updated_at", "2015-12-19 13:34:56.854265"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 19], ["item_id", 48], ["created_at", "2015-12-19 13:34:56.855997"], ["updated_at", "2015-12-19 13:34:56.855997"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 19], ["item_id", 50], ["created_at", "2015-12-19 13:34:56.857466"], ["updated_at", "2015-12-19 13:34:56.857466"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.9ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.862963"], ["updated_at", "2015-12-19 13:34:56.862963"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 11]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 20], ["created_at", "2015-12-19 13:34:56.865922"], ["updated_at", "2015-12-19 13:34:56.865922"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 20], ["created_at", "2015-12-19 13:34:56.867160"], ["updated_at", "2015-12-19 13:34:56.867160"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.868153"], ["updated_at", "2015-12-19 13:34:56.868153"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:34:56.869085"], ["updated_at", "2015-12-19 13:34:56.869085"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.870041"], ["updated_at", "2015-12-19 13:34:56.870041"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 20], ["item_id", 53], ["created_at", "2015-12-19 13:34:56.871780"], ["updated_at", "2015-12-19 13:34:56.871780"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 20], ["item_id", 55], ["created_at", "2015-12-19 13:34:56.873251"], ["updated_at", "2015-12-19 13:34:56.873251"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.878781"], ["updated_at", "2015-12-19 13:34:56.878781"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 12]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 21], ["created_at", "2015-12-19 13:34:56.882285"], ["updated_at", "2015-12-19 13:34:56.882285"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 21], ["created_at", "2015-12-19 13:34:56.883580"], ["updated_at", "2015-12-19 13:34:56.883580"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.884579"], ["updated_at", "2015-12-19 13:34:56.884579"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:34:56.885523"], ["updated_at", "2015-12-19 13:34:56.885523"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.886452"], ["updated_at", "2015-12-19 13:34:56.886452"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 21], ["item_id", 58], ["created_at", "2015-12-19 13:34:56.888181"], ["updated_at", "2015-12-19 13:34:56.888181"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 21], ["item_id", 60], ["created_at", "2015-12-19 13:34:56.889688"], ["updated_at", "2015-12-19 13:34:56.889688"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.894923"], ["updated_at", "2015-12-19 13:34:56.894923"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 13]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 22], ["created_at", "2015-12-19 13:34:56.899912"], ["updated_at", "2015-12-19 13:34:56.899912"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 22], ["created_at", "2015-12-19 13:34:56.901661"], ["updated_at", "2015-12-19 13:34:56.901661"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.902823"], ["updated_at", "2015-12-19 13:34:56.902823"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:34:56.903854"], ["updated_at", "2015-12-19 13:34:56.903854"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.904785"], ["updated_at", "2015-12-19 13:34:56.904785"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 22], ["item_id", 63], ["created_at", "2015-12-19 13:34:56.906853"], ["updated_at", "2015-12-19 13:34:56.906853"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 22], ["item_id", 65], ["created_at", "2015-12-19 13:34:56.908334"], ["updated_at", "2015-12-19 13:34:56.908334"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.914326"], ["updated_at", "2015-12-19 13:34:56.914326"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 14]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 23], ["created_at", "2015-12-19 13:34:56.917749"], ["updated_at", "2015-12-19 13:34:56.917749"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 23], ["created_at", "2015-12-19 13:34:56.919009"], ["updated_at", "2015-12-19 13:34:56.919009"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.920001"], ["updated_at", "2015-12-19 13:34:56.920001"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:34:56.920947"], ["updated_at", "2015-12-19 13:34:56.920947"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:34:56.921940"], ["updated_at", "2015-12-19 13:34:56.921940"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 23], ["item_id", 68], ["created_at", "2015-12-19 13:34:56.923635"], ["updated_at", "2015-12-19 13:34:56.923635"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 23], ["item_id", 70], ["created_at", "2015-12-19 13:34:56.925095"], ["updated_at", "2015-12-19 13:34:56.925095"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[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_or_update_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_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.8ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.2ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [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 = 'foo'
+
+ [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.6ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.1ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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.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.6ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.8ms)[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.5ms)[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.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [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 (2.9ms)[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.8ms)[0m [1mCREATE VIEW "v_people" 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.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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.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 (3.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (2.7ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.6ms)[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 (2.6ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.3ms)[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.7ms)[0m [1mCREATE VIEW "v_people" 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 (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.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.0ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (17.2ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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 (0.8ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (4.4ms)[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 (6.9ms)[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.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.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.2ms)[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-12-19 13:34:57.158329"], ["updated_at", "2015-12-19 13:34:57.158329"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.5ms)[0m [1mCREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.7ms)[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.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_profile'
+[0m
+ [1m[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.2ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.6ms)[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.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 (0.5ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.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.6ms)[0m [1mDROP TABLE "places" CASCADE[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 (0.8ms)[0m [1mCREATE VIEW "v_profile" 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.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.2ms)[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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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.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.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_people'
+[0m
+ [1m[35m (0.9ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (0.3ms)[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.8ms)[0m CREATE VIEW "v_people" 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.7ms)[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.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.4ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.3ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (3.2ms)[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.0ms)[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.6ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.2ms)[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" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+ [1m[36m (1.0ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [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 (1.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (1.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.6ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn 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 (113.4ms)[0m [1mDROP DATABASE IF EXISTS "rails_sql_views_unittest"[0m
+ [1m[35m (241.9ms)[0m CREATE DATABASE "rails_sql_views_unittest" ENCODING = 'unicode'
+ [1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (3.3ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (2.0ms)[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.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 (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 (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.5ms)[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.3ms)[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.2ms)[0m BEGIN
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [1m[36m (1.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.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 (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 (1.3ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.5ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [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 = 'foo'
+
+ [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.7ms)[0m [1mCREATE VIEW "v_people" 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.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.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.8ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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.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 (1.1ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.7ms)[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.6ms)[0m [1mDROP TABLE "places" CASCADE[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 (0.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.9ms)[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.7ms)[0m [1mCREATE VIEW "v_people" 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 (0.7ms)[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.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.9ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.4ms)[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.3ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.7ms)[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 (2.4ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.3ms)[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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.0ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [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 (0.7ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (2.3ms)[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 (3.7ms)[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.8ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.9ms)[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.1ms)[0m SELECT version FROM "schema_migrations"
+ [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.3ms)[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.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 (1.8ms)[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-12-19 13:36:37.443398"], ["updated_at", "2015-12-19 13:36:37.443398"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.0ms)[0m [1mCREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.1ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.6ms)[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.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.9ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.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.7ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.6ms)[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.4ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.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.5ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.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.4ms)[0m [1mCREATE VIEW "v_profile" 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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.4ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.0ms)[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.2ms)[0m drop view if exists V_PROFILE
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" 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 (0.7ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.6ms)[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.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 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.7ms)[0m CREATE VIEW "v_people" 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.8ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (1.0ms)[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.6ms)[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 (17.9ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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.9ms)[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.0ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.6ms)[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.6ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (4.5ms)[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.9ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [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 (1.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (1.1ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[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-12-19 13:36:37.631334"], ["updated_at", "2015-12-19 13:36:37.631334"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 1]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 4], ["created_at", "2015-12-19 13:36:37.660519"], ["updated_at", "2015-12-19 13:36:37.660519"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 4], ["created_at", "2015-12-19 13:36:37.663945"], ["updated_at", "2015-12-19 13:36:37.663945"]]
+ [1m[36m (0.1ms)[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-12-19 13:36:37.665762"], ["updated_at", "2015-12-19 13:36:37.665762"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:36:37.667567"], ["updated_at", "2015-12-19 13:36:37.667567"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.669200"], ["updated_at", "2015-12-19 13:36:37.669200"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 4], ["item_id", 3], ["created_at", "2015-12-19 13:36:37.681941"], ["updated_at", "2015-12-19 13:36:37.681941"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 4], ["item_id", 5], ["created_at", "2015-12-19 13:36:37.684935"], ["updated_at", "2015-12-19 13:36:37.684935"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.691610"], ["updated_at", "2015-12-19 13:36:37.691610"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 2]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 5], ["created_at", "2015-12-19 13:36:37.695427"], ["updated_at", "2015-12-19 13:36:37.695427"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 5], ["created_at", "2015-12-19 13:36:37.697281"], ["updated_at", "2015-12-19 13:36:37.697281"]]
+ [1m[36m (0.1ms)[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-12-19 13:36:37.698830"], ["updated_at", "2015-12-19 13:36:37.698830"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:36:37.700529"], ["updated_at", "2015-12-19 13:36:37.700529"]]
+ [1m[36m (0.1ms)[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-12-19 13:36:37.701806"], ["updated_at", "2015-12-19 13:36:37.701806"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 5], ["item_id", 8], ["created_at", "2015-12-19 13:36:37.705169"], ["updated_at", "2015-12-19 13:36:37.705169"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 5], ["item_id", 10], ["created_at", "2015-12-19 13:36:37.707776"], ["updated_at", "2015-12-19 13:36:37.707776"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.714550"], ["updated_at", "2015-12-19 13:36:37.714550"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 3]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 6], ["created_at", "2015-12-19 13:36:37.718613"], ["updated_at", "2015-12-19 13:36:37.718613"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 6], ["created_at", "2015-12-19 13:36:37.720699"], ["updated_at", "2015-12-19 13:36:37.720699"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.722710"], ["updated_at", "2015-12-19 13:36:37.722710"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:36:37.724137"], ["updated_at", "2015-12-19 13:36:37.724137"]]
+ [1m[36m (0.1ms)[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-12-19 13:36:37.725684"], ["updated_at", "2015-12-19 13:36:37.725684"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 6], ["item_id", 13], ["created_at", "2015-12-19 13:36:37.728426"], ["updated_at", "2015-12-19 13:36:37.728426"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 6], ["item_id", 15], ["created_at", "2015-12-19 13:36:37.730298"], ["updated_at", "2015-12-19 13:36:37.730298"]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (1.4ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.746633"], ["updated_at", "2015-12-19 13:36:37.746633"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 4]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 7], ["created_at", "2015-12-19 13:36:37.750353"], ["updated_at", "2015-12-19 13:36:37.750353"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 7], ["created_at", "2015-12-19 13:36:37.751761"], ["updated_at", "2015-12-19 13:36:37.751761"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.752800"], ["updated_at", "2015-12-19 13:36:37.752800"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:36:37.753784"], ["updated_at", "2015-12-19 13:36:37.753784"]]
+ [1m[36m (0.1ms)[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-12-19 13:36:37.755141"], ["updated_at", "2015-12-19 13:36:37.755141"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 7], ["item_id", 18], ["created_at", "2015-12-19 13:36:37.758362"], ["updated_at", "2015-12-19 13:36:37.758362"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 7], ["item_id", 20], ["created_at", "2015-12-19 13:36:37.761080"], ["updated_at", "2015-12-19 13:36:37.761080"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.767801"], ["updated_at", "2015-12-19 13:36:37.767801"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 5]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 8], ["created_at", "2015-12-19 13:36:37.771068"], ["updated_at", "2015-12-19 13:36:37.771068"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 8], ["created_at", "2015-12-19 13:36:37.772340"], ["updated_at", "2015-12-19 13:36:37.772340"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.773361"], ["updated_at", "2015-12-19 13:36:37.773361"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:36:37.774459"], ["updated_at", "2015-12-19 13:36:37.774459"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.776064"], ["updated_at", "2015-12-19 13:36:37.776064"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 8], ["item_id", 23], ["created_at", "2015-12-19 13:36:37.778406"], ["updated_at", "2015-12-19 13:36:37.778406"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 8], ["item_id", 25], ["created_at", "2015-12-19 13:36:37.780143"], ["updated_at", "2015-12-19 13:36:37.780143"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.785314"], ["updated_at", "2015-12-19 13:36:37.785314"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 6]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 9], ["created_at", "2015-12-19 13:36:37.788739"], ["updated_at", "2015-12-19 13:36:37.788739"]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 9], ["created_at", "2015-12-19 13:36:37.791219"], ["updated_at", "2015-12-19 13:36:37.791219"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.793086"], ["updated_at", "2015-12-19 13:36:37.793086"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:36:37.794596"], ["updated_at", "2015-12-19 13:36:37.794596"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:36:37.795670"], ["updated_at", "2015-12-19 13:36:37.795670"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 9], ["item_id", 28], ["created_at", "2015-12-19 13:36:37.797972"], ["updated_at", "2015-12-19 13:36:37.797972"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 9], ["item_id", 30], ["created_at", "2015-12-19 13:36:37.799536"], ["updated_at", "2015-12-19 13:36:37.799536"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.5ms)[0m 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_mapped_views
+------------------------------
+ [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 (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.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.8ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (1.3ms)[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 [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (0.6ms)[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.6ms)[0m CREATE VIEW "v_people" 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.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[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (1.2ms)[0m [1mCREATE VIEW "v_people" 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 (1.7ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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 = '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 (17.2ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (3.4ms)[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.9ms)[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 (3.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 (3.5ms)[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.9ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ 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.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.2ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.5ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.4ms)[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 (4.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 (0.9ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (3.5ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (1.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.1ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (4.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.8ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.2ms)[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.9ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.6ms)[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 (2.9ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.0ms)[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.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.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.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-12-19 13:40:10.178992"], ["updated_at", "2015-12-19 13:40:10.178992"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.3ms)[0m CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+
+ [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.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.8ms)[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_profile'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.9ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.0ms)[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.7ms)[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 (3.3ms)[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.7ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.3ms)[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.8ms)[0m CREATE VIEW "v_profile" AS SELECT people.first_name,
+ people.last_name,
+ people.ssn
+ FROM people
+UNION
+ SELECT people2.first_name,
+ people2.last_name,
+ people2.ssn
+ FROM people2;
+ [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.5ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.3ms)[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.7ms)[0m CREATE VIEW "v_people" 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.8ms)[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" 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.7ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.6ms)[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.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.4ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (3.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.9ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.7ms)[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 (2.7ms)[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 (1.0ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.0ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (1.0ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn from people
+ [1m[36m (1.2ms)[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.9ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn from people
+ [1m[36m (0.2ms)[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.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 (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [1m[35m (0.5ms)[0m CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people
+ [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[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.8ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn 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 IN ('BASE TABLE', 'VIEW')
+[0m
+ [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.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn 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
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_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", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[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.7ms)[0m [1mCREATE VIEW "v_people" 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.5ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_place" AS select address, city, cstate, country from places
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_place"[0m
+ [1m[35m (0.3ms)[0m 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 (0.6ms)[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
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[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-12-19 13:40:10.417904"], ["updated_at", "2015-12-19 13:40:10.417904"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 7]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 13], ["created_at", "2015-12-19 13:40:10.443422"], ["updated_at", "2015-12-19 13:40:10.443422"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 13], ["created_at", "2015-12-19 13:40:10.445934"], ["updated_at", "2015-12-19 13:40:10.445934"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.448003"], ["updated_at", "2015-12-19 13:40:10.448003"]]
+ [1m[36m (0.1ms)[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-12-19 13:40:10.450091"], ["updated_at", "2015-12-19 13:40:10.450091"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.451953"], ["updated_at", "2015-12-19 13:40:10.451953"]]
+ [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", 13], ["item_id", 33], ["created_at", "2015-12-19 13:40:10.464566"], ["updated_at", "2015-12-19 13:40:10.464566"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 13], ["item_id", 35], ["created_at", "2015-12-19 13:40:10.467216"], ["updated_at", "2015-12-19 13:40:10.467216"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.473620"], ["updated_at", "2015-12-19 13:40:10.473620"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 8]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 14], ["created_at", "2015-12-19 13:40:10.477219"], ["updated_at", "2015-12-19 13:40:10.477219"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 14], ["created_at", "2015-12-19 13:40:10.478732"], ["updated_at", "2015-12-19 13:40:10.478732"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.479910"], ["updated_at", "2015-12-19 13:40:10.479910"]]
+ [1m[36m (0.1ms)[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-12-19 13:40:10.481030"], ["updated_at", "2015-12-19 13:40:10.481030"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.482429"], ["updated_at", "2015-12-19 13:40:10.482429"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[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", 38], ["created_at", "2015-12-19 13:40:10.484662"], ["updated_at", "2015-12-19 13:40:10.484662"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[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", 40], ["created_at", "2015-12-19 13:40:10.486411"], ["updated_at", "2015-12-19 13:40:10.486411"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.492358"], ["updated_at", "2015-12-19 13:40:10.492358"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 9]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 15], ["created_at", "2015-12-19 13:40:10.496060"], ["updated_at", "2015-12-19 13:40:10.496060"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 15], ["created_at", "2015-12-19 13:40:10.497749"], ["updated_at", "2015-12-19 13:40:10.497749"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.499074"], ["updated_at", "2015-12-19 13:40:10.499074"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:40:10.500199"], ["updated_at", "2015-12-19 13:40:10.500199"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.501288"], ["updated_at", "2015-12-19 13:40:10.501288"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[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", 43], ["created_at", "2015-12-19 13:40:10.511258"], ["updated_at", "2015-12-19 13:40:10.511258"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 15], ["item_id", 45], ["created_at", "2015-12-19 13:40:10.513084"], ["updated_at", "2015-12-19 13:40:10.513084"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.520041"], ["updated_at", "2015-12-19 13:40:10.520041"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 10]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 16], ["created_at", "2015-12-19 13:40:10.523846"], ["updated_at", "2015-12-19 13:40:10.523846"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 16], ["created_at", "2015-12-19 13:40:10.525272"], ["updated_at", "2015-12-19 13:40:10.525272"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.526320"], ["updated_at", "2015-12-19 13:40:10.526320"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:40:10.527412"], ["updated_at", "2015-12-19 13:40:10.527412"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.528382"], ["updated_at", "2015-12-19 13:40:10.528382"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[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", 48], ["created_at", "2015-12-19 13:40:10.530644"], ["updated_at", "2015-12-19 13:40:10.530644"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[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", 50], ["created_at", "2015-12-19 13:40:10.532261"], ["updated_at", "2015-12-19 13:40:10.532261"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.537620"], ["updated_at", "2015-12-19 13:40:10.537620"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 11]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 17], ["created_at", "2015-12-19 13:40:10.541366"], ["updated_at", "2015-12-19 13:40:10.541366"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 17], ["created_at", "2015-12-19 13:40:10.542717"], ["updated_at", "2015-12-19 13:40:10.542717"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.543789"], ["updated_at", "2015-12-19 13:40:10.543789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:40:10.544821"], ["updated_at", "2015-12-19 13:40:10.544821"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.545973"], ["updated_at", "2015-12-19 13:40:10.545973"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[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", 53], ["created_at", "2015-12-19 13:40:10.547967"], ["updated_at", "2015-12-19 13:40:10.547967"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[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", 55], ["created_at", "2015-12-19 13:40:10.549557"], ["updated_at", "2015-12-19 13:40:10.549557"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.555502"], ["updated_at", "2015-12-19 13:40:10.555502"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 12]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 18], ["created_at", "2015-12-19 13:40:10.559312"], ["updated_at", "2015-12-19 13:40:10.559312"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 18], ["created_at", "2015-12-19 13:40:10.560631"], ["updated_at", "2015-12-19 13:40:10.560631"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:40:10.561884"], ["updated_at", "2015-12-19 13:40:10.561884"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:40:10.562964"], ["updated_at", "2015-12-19 13:40:10.562964"]]
+ [1m[35m (0.1ms)[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-12-19 13:40:10.564691"], ["updated_at", "2015-12-19 13:40:10.564691"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[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", 58], ["created_at", "2015-12-19 13:40:10.567711"], ["updated_at", "2015-12-19 13:40:10.567711"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 18], ["item_id", 60], ["created_at", "2015-12-19 13:40:10.569753"], ["updated_at", "2015-12-19 13:40:10.569753"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[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[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
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (1.9ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (1.6ms)[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 "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.306019"], ["updated_at", "2015-12-19 13:46:45.306019"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 13]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 19], ["created_at", "2015-12-19 13:46:45.331237"], ["updated_at", "2015-12-19 13:46:45.331237"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 19], ["created_at", "2015-12-19 13:46:45.333232"], ["updated_at", "2015-12-19 13:46:45.333232"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.334977"], ["updated_at", "2015-12-19 13:46:45.334977"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:46:45.336325"], ["updated_at", "2015-12-19 13:46:45.336325"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.337331"], ["updated_at", "2015-12-19 13:46:45.337331"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 19], ["item_id", 63], ["created_at", "2015-12-19 13:46:45.347186"], ["updated_at", "2015-12-19 13:46:45.347186"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 19], ["item_id", 65], ["created_at", "2015-12-19 13:46:45.349350"], ["updated_at", "2015-12-19 13:46:45.349350"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.9ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.356624"], ["updated_at", "2015-12-19 13:46:45.356624"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 14]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 20], ["created_at", "2015-12-19 13:46:45.359782"], ["updated_at", "2015-12-19 13:46:45.359782"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 20], ["created_at", "2015-12-19 13:46:45.361080"], ["updated_at", "2015-12-19 13:46:45.361080"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.362097"], ["updated_at", "2015-12-19 13:46:45.362097"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:46:45.363092"], ["updated_at", "2015-12-19 13:46:45.363092"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.364090"], ["updated_at", "2015-12-19 13:46:45.364090"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 20], ["item_id", 68], ["created_at", "2015-12-19 13:46:45.365888"], ["updated_at", "2015-12-19 13:46:45.365888"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 20], ["item_id", 70], ["created_at", "2015-12-19 13:46:45.367520"], ["updated_at", "2015-12-19 13:46:45.367520"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.372872"], ["updated_at", "2015-12-19 13:46:45.372872"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 15]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 21], ["created_at", "2015-12-19 13:46:45.375867"], ["updated_at", "2015-12-19 13:46:45.375867"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 21], ["created_at", "2015-12-19 13:46:45.377176"], ["updated_at", "2015-12-19 13:46:45.377176"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.378173"], ["updated_at", "2015-12-19 13:46:45.378173"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:46:45.379167"], ["updated_at", "2015-12-19 13:46:45.379167"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.380117"], ["updated_at", "2015-12-19 13:46:45.380117"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 21], ["item_id", 73], ["created_at", "2015-12-19 13:46:45.381860"], ["updated_at", "2015-12-19 13:46:45.381860"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 21], ["item_id", 75], ["created_at", "2015-12-19 13:46:45.383325"], ["updated_at", "2015-12-19 13:46:45.383325"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.389080"], ["updated_at", "2015-12-19 13:46:45.389080"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 16]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 22], ["created_at", "2015-12-19 13:46:45.392239"], ["updated_at", "2015-12-19 13:46:45.392239"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 22], ["created_at", "2015-12-19 13:46:45.393540"], ["updated_at", "2015-12-19 13:46:45.393540"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.394523"], ["updated_at", "2015-12-19 13:46:45.394523"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:46:45.395502"], ["updated_at", "2015-12-19 13:46:45.395502"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.396443"], ["updated_at", "2015-12-19 13:46:45.396443"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 22], ["item_id", 78], ["created_at", "2015-12-19 13:46:45.398180"], ["updated_at", "2015-12-19 13:46:45.398180"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 22], ["item_id", 80], ["created_at", "2015-12-19 13:46:45.399646"], ["updated_at", "2015-12-19 13:46:45.399646"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.9ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.406339"], ["updated_at", "2015-12-19 13:46:45.406339"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 17]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 23], ["created_at", "2015-12-19 13:46:45.409526"], ["updated_at", "2015-12-19 13:46:45.409526"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 23], ["created_at", "2015-12-19 13:46:45.410833"], ["updated_at", "2015-12-19 13:46:45.410833"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.411842"], ["updated_at", "2015-12-19 13:46:45.411842"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:46:45.412805"], ["updated_at", "2015-12-19 13:46:45.412805"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.413781"], ["updated_at", "2015-12-19 13:46:45.413781"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 23], ["item_id", 83], ["created_at", "2015-12-19 13:46:45.415550"], ["updated_at", "2015-12-19 13:46:45.415550"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 23], ["item_id", 85], ["created_at", "2015-12-19 13:46:45.417173"], ["updated_at", "2015-12-19 13:46:45.417173"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.422553"], ["updated_at", "2015-12-19 13:46:45.422553"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 18]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 24], ["created_at", "2015-12-19 13:46:45.425895"], ["updated_at", "2015-12-19 13:46:45.425895"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 24], ["created_at", "2015-12-19 13:46:45.427182"], ["updated_at", "2015-12-19 13:46:45.427182"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.428198"], ["updated_at", "2015-12-19 13:46:45.428198"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:46:45.429186"], ["updated_at", "2015-12-19 13:46:45.429186"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:46:45.430147"], ["updated_at", "2015-12-19 13:46:45.430147"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 24], ["item_id", 88], ["created_at", "2015-12-19 13:46:45.431947"], ["updated_at", "2015-12-19 13:46:45.431947"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 24], ["item_id", 90], ["created_at", "2015-12-19 13:46:45.433458"], ["updated_at", "2015-12-19 13:46:45.433458"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_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_create_view
+------------------------------------
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[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.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.2ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[35m (1.0ms)[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
+------------------------------------
+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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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.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.6ms)[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[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (16.7ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (18.1ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.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.2ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (3.2ms)[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.7ms)[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 (3.2ms)[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.1ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [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 (2.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_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.8ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.9ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.2ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.2ms)[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.9ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (4.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 (0.6ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.4ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[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 (1.1ms)[0m [1mCREATE VIEW "v_people" 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 (1.2ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.0ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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.0ms)[0m DROP TABLE "people2" CASCADE
+ [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 (0.9ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.5ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.0ms)[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.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.2ms)[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-12-19 13:46:45.672920"], ["updated_at", "2015-12-19 13:46:45.672920"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.2ms)[0m [1mCREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.7ms)[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.1ms)[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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.9ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (17.7ms)[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 (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.8ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.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.9ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.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 (1.3ms)[0m [1mCREATE VIEW "v_profile" 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.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.4ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.0ms)[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.7ms)[0m [1mCREATE VIEW "v_people" 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 (0.7ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.6ms)[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 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.6ms)[0m CREATE VIEW "v_people" 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 (0.6ms)[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.8ms)[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.6ms)[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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.9ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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.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.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.8ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.2ms)[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.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ 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.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.8ms)[0m 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_mapped_views
+------------------------------
+ [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 (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.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (0.6ms)[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.5ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn 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[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 (1.7ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (1.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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.7ms)[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.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [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 = 'v_people'
+[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn 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
+--------------------------------------
+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.2ms)[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.7ms)[0m CREATE VIEW "v_people" 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 (0.7ms)[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.8ms)[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.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.8ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.2ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.2ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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.8ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.5ms)[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.8ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (3.4ms)[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 (1.1ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.6ms)[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.9ms)[0m CREATE VIEW "v_people" 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.4ms)[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.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.8ms)[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 (2.3ms)[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 (3.1ms)[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 (4.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.9ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.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.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [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 (3.6ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------
+SchemaDumperTest: test_symbol_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 (1.0ms)[0m CREATE VIEW "v_people" 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 (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[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.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 (2.4ms)[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 (3.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 (0.9ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.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.7ms)[0m [1mDROP TABLE "places" CASCADE[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 (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.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.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-12-19 13:52:27.961376"], ["updated_at", "2015-12-19 13:52:27.961376"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.7ms)[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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.3ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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 (3.1ms)[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.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.6ms)[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 (1.3ms)[0m [1mCREATE VIEW "v_profile" 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.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PROFILE
+ [1m[36m (1.9ms)[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.6ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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_people'
+[0m
+ [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.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.5ms)[0m CREATE VIEW "v_people" 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 (0.7ms)[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.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.6ms)[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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.9ms)[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.7ms)[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.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 (0.5ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.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.9ms)[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[36m (0.8ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.6ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_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", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[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.6ms)[0m [1mCREATE VIEW "v_people" 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.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_place" AS select address, city, cstate, country from places
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_place"[0m
+ [1m[35m (0.3ms)[0m 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 (0.6ms)[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
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (1.3ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", nil]]
+ [1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
+ [1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people"[0m
+ [1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people"
+ [1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people"[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 13:54:46.858242"], ["updated_at", "2015-12-19 13:54:46.858242"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 19]]
+ [1m[36m (0.4ms)[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", 31], ["created_at", "2015-12-19 13:54:48.971203"], ["updated_at", "2015-12-19 13:54:48.971203"]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 31], ["created_at", "2015-12-19 13:54:48.981073"], ["updated_at", "2015-12-19 13:54:48.981073"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[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-12-19 13:54:49.849721"], ["updated_at", "2015-12-19 13:54:49.849721"]]
+ [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" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 13:54:49.863130"], ["updated_at", "2015-12-19 13:54:49.863130"]]
+ [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-12-19 13:54:49.871200"], ["updated_at", "2015-12-19 13:54:49.871200"]]
+ [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", 31], ["item_id", 93], ["created_at", "2015-12-19 13:54:50.733998"], ["updated_at", "2015-12-19 13:54:50.733998"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[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", 31], ["item_id", 95], ["created_at", "2015-12-19 13:54:52.050841"], ["updated_at", "2015-12-19 13:54:52.050841"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.4ms)[0m [1mSELECT "v_people".* FROM "v_people" LIMIT 1[0m
+ [1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
+ [1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = $1 LIMIT 1[0m [["id", 31]]
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [1m[36m (1.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.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.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.1ms)[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 (1.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [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 = '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[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.6ms)[0m [1mCREATE VIEW "v_people" 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 (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.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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 = 'v_people'
+[0m
+ [1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.5ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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 (3.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.8ms)[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.6ms)[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.7ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ 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.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (3.2ms)[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.7ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.8ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (17.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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.9ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.5ms)[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.4ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (3.7ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[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 (1.2ms)[0m [1mCREATE VIEW "v_people" 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.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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.8ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (2.9ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.7ms)[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.9ms)[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.1ms)[0m SELECT version FROM "schema_migrations"
+ [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.9ms)[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.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-12-19 14:03:40.173098"], ["updated_at", "2015-12-19 14:03:40.173098"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.9ms)[0m [1mCREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[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.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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.9ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.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 (2.6ms)[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 (3.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 (0.5ms)[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 (1.4ms)[0m [1mCREATE VIEW "v_profile" 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.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.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.8ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.6ms)[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.5ms)[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 (1.5ms)[0m CREATE VIEW "v_people" 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 (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.8ms)[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.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[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.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.6ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.2ms)[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 (3.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.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 (0.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [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 (2.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.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.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (0.6ms)[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.5ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn from people
+ [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.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (1.3ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (3.1ms)[0m [1mCREATE VIEW "v_people" 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
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_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.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.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.1ms)[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 (1.4ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.2ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [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 = 'foo'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (1.3ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.5ms)[0m CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (0.6ms)[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.8ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn 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
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (1.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "people" ("first_name") VALUES ($1) RETURNING "id" [["first_name", "toto"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people"
+ [1m[36mVPerson Load (0.4ms)[0m [1mSELECT "v_people".* FROM "v_people"[0m
+ [1m[35m (0.5ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36mActiveRecord::SchemaMigration Load (1.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
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (3.1ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[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.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:25.321847"], ["updated_at", "2015-12-19 14:53:25.321847"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 20]]
+ [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", 38], ["created_at", "2015-12-19 14:53:26.431779"], ["updated_at", "2015-12-19 14:53:26.431779"]]
+ [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", 38], ["created_at", "2015-12-19 14:53:26.446885"], ["updated_at", "2015-12-19 14:53:26.446885"]]
+ [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-12-19 14:53:26.916216"], ["updated_at", "2015-12-19 14:53:26.916216"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[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-12-19 14:53:26.929006"], ["updated_at", "2015-12-19 14:53:26.929006"]]
+ [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" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:26.943334"], ["updated_at", "2015-12-19 14:53:26.943334"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 38], ["item_id", 98], ["created_at", "2015-12-19 14:53:27.574631"], ["updated_at", "2015-12-19 14:53:27.574631"]]
+ [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_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 38], ["item_id", 100], ["created_at", "2015-12-19 14:53:28.214882"], ["updated_at", "2015-12-19 14:53:28.214882"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.6ms)[0m SELECT "v_people".* FROM "v_people"
+ [1m[36mVPerson Load (0.3ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 38]]
+ [1m[35mPlace Load (0.4ms)[0m SELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1 [["id", 20]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (1.2ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[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-12-19 14:53:39.278036"], ["updated_at", "2015-12-19 14:53:39.278036"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 21]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 39], ["created_at", "2015-12-19 14:53:39.282346"], ["updated_at", "2015-12-19 14:53:39.282346"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 39], ["created_at", "2015-12-19 14:53:39.284157"], ["updated_at", "2015-12-19 14:53:39.284157"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:39.285233"], ["updated_at", "2015-12-19 14:53:39.285233"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:39.286222"], ["updated_at", "2015-12-19 14:53:39.286222"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:39.287195"], ["updated_at", "2015-12-19 14:53:39.287195"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 39], ["item_id", 103], ["created_at", "2015-12-19 14:53:39.289045"], ["updated_at", "2015-12-19 14:53:39.289045"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 39], ["item_id", 105], ["created_at", "2015-12-19 14:53:39.290643"], ["updated_at", "2015-12-19 14:53:39.290643"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.3ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 39]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = $1 [["person_id", 39]]
+ [1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."person_id" = $1[0m [["person_id", 39]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (1.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:39.956227"], ["updated_at", "2015-12-19 14:53:39.956227"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 22]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 40], ["created_at", "2015-12-19 14:53:39.960393"], ["updated_at", "2015-12-19 14:53:39.960393"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 40], ["created_at", "2015-12-19 14:53:39.962328"], ["updated_at", "2015-12-19 14:53:39.962328"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:39.964341"], ["updated_at", "2015-12-19 14:53:39.964341"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:39.966005"], ["updated_at", "2015-12-19 14:53:39.966005"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:39.967074"], ["updated_at", "2015-12-19 14:53:39.967074"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 40], ["item_id", 108], ["created_at", "2015-12-19 14:53:39.969023"], ["updated_at", "2015-12-19 14:53:39.969023"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 40], ["item_id", 110], ["created_at", "2015-12-19 14:53:39.970613"], ["updated_at", "2015-12-19 14:53:39.970613"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 40]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (1.4ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:40.527125"], ["updated_at", "2015-12-19 14:53:40.527125"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 23]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 41], ["created_at", "2015-12-19 14:53:40.531199"], ["updated_at", "2015-12-19 14:53:40.531199"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 41], ["created_at", "2015-12-19 14:53:40.532747"], ["updated_at", "2015-12-19 14:53:40.532747"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:40.533803"], ["updated_at", "2015-12-19 14:53:40.533803"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:40.534772"], ["updated_at", "2015-12-19 14:53:40.534772"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:40.535737"], ["updated_at", "2015-12-19 14:53:40.535737"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 41], ["item_id", 113], ["created_at", "2015-12-19 14:53:40.537532"], ["updated_at", "2015-12-19 14:53:40.537532"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 41], ["item_id", 115], ["created_at", "2015-12-19 14:53:40.539004"], ["updated_at", "2015-12-19 14:53:40.539004"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 41]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [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 (1.4ms)[0m [1mCREATE VIEW "v_people" 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 (1.7ms)[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.6ms)[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 (1.0ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.6ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (3.4ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.3ms)[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.8ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.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.9ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.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 (1.0ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ 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.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_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 (1.3ms)[0m [1mCREATE VIEW "v_people" 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.9ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.9ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.1ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.3ms)[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.5ms)[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.4ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.9ms)[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.8ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.5ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.1ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (3.2ms)[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.4ms)[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 (0.5ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.1ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.3ms)[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.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.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.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-12-19 14:53:57.534421"], ["updated_at", "2015-12-19 14:53:57.534421"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (1.0ms)[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_profile'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.0ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.9ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.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 (0.9ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.8ms)[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 (1.5ms)[0m CREATE VIEW "v_profile" AS SELECT people.first_name,
+ people.last_name,
+ people.ssn
+ FROM people
+UNION
+ SELECT people2.first_name,
+ people2.last_name,
+ people2.ssn
+ FROM people2;
+ [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.3ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (1.6ms)[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" 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.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" 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 (0.7ms)[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.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 (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[36mSQL (0.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.0ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.2ms)[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.6ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (4.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.9ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.4ms)[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 CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.5ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.5ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.7ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [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 (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.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.5ms)[0m SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mSELECT * FROM v_place[0m
+ [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
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.5ms)[0m 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_mapped_views
+------------------------------
+ [1m[36m (0.7ms)[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.6ms)[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.2ms)[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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.6ms)[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 [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [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.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn 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
+--------------------------------------
+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.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.774558"], ["updated_at", "2015-12-19 14:53:57.774558"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 24]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 45], ["created_at", "2015-12-19 14:53:57.800919"], ["updated_at", "2015-12-19 14:53:57.800919"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 45], ["created_at", "2015-12-19 14:53:57.803454"], ["updated_at", "2015-12-19 14:53:57.803454"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.804600"], ["updated_at", "2015-12-19 14:53:57.804600"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.805739"], ["updated_at", "2015-12-19 14:53:57.805739"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.806819"], ["updated_at", "2015-12-19 14:53:57.806819"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 45], ["item_id", 118], ["created_at", "2015-12-19 14:53:57.817346"], ["updated_at", "2015-12-19 14:53:57.817346"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 45], ["item_id", 120], ["created_at", "2015-12-19 14:53:57.819594"], ["updated_at", "2015-12-19 14:53:57.819594"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 45]]
+ [1m[36mPlace Load (0.2ms)[0m [1mSELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1[0m [["id", 24]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.830347"], ["updated_at", "2015-12-19 14:53:57.830347"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 25]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 46], ["created_at", "2015-12-19 14:53:57.833989"], ["updated_at", "2015-12-19 14:53:57.833989"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 46], ["created_at", "2015-12-19 14:53:57.835413"], ["updated_at", "2015-12-19 14:53:57.835413"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.836527"], ["updated_at", "2015-12-19 14:53:57.836527"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.837618"], ["updated_at", "2015-12-19 14:53:57.837618"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.838739"], ["updated_at", "2015-12-19 14:53:57.838739"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 46], ["item_id", 123], ["created_at", "2015-12-19 14:53:57.840913"], ["updated_at", "2015-12-19 14:53:57.840913"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 46], ["item_id", 125], ["created_at", "2015-12-19 14:53:57.842714"], ["updated_at", "2015-12-19 14:53:57.842714"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 46]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "items" WHERE "items"."person_id" = $1[0m [["person_id", 46]]
+ [1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."person_id" = $1 [["person_id", 46]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.858128"], ["updated_at", "2015-12-19 14:53:57.858128"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 26]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 47], ["created_at", "2015-12-19 14:53:57.862043"], ["updated_at", "2015-12-19 14:53:57.862043"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 47], ["created_at", "2015-12-19 14:53:57.863810"], ["updated_at", "2015-12-19 14:53:57.863810"]]
+ [1m[36m (0.1ms)[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-12-19 14:53:57.865075"], ["updated_at", "2015-12-19 14:53:57.865075"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.866420"], ["updated_at", "2015-12-19 14:53:57.866420"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.867540"], ["updated_at", "2015-12-19 14:53:57.867540"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 47], ["item_id", 128], ["created_at", "2015-12-19 14:53:57.869530"], ["updated_at", "2015-12-19 14:53:57.869530"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 47], ["item_id", 130], ["created_at", "2015-12-19 14:53:57.871100"], ["updated_at", "2015-12-19 14:53:57.871100"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 47]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.877001"], ["updated_at", "2015-12-19 14:53:57.877001"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 27]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 48], ["created_at", "2015-12-19 14:53:57.881224"], ["updated_at", "2015-12-19 14:53:57.881224"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 48], ["created_at", "2015-12-19 14:53:57.884217"], ["updated_at", "2015-12-19 14:53:57.884217"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.885610"], ["updated_at", "2015-12-19 14:53:57.885610"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.886762"], ["updated_at", "2015-12-19 14:53:57.886762"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.887821"], ["updated_at", "2015-12-19 14:53:57.887821"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 48], ["item_id", 133], ["created_at", "2015-12-19 14:53:57.889757"], ["updated_at", "2015-12-19 14:53:57.889757"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 48], ["item_id", 135], ["created_at", "2015-12-19 14:53:57.891387"], ["updated_at", "2015-12-19 14:53:57.891387"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 48]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.897349"], ["updated_at", "2015-12-19 14:53:57.897349"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 28]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 49], ["created_at", "2015-12-19 14:53:57.900897"], ["updated_at", "2015-12-19 14:53:57.900897"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 49], ["created_at", "2015-12-19 14:53:57.902216"], ["updated_at", "2015-12-19 14:53:57.902216"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.903337"], ["updated_at", "2015-12-19 14:53:57.903337"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.904356"], ["updated_at", "2015-12-19 14:53:57.904356"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.905389"], ["updated_at", "2015-12-19 14:53:57.905389"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 49], ["item_id", 138], ["created_at", "2015-12-19 14:53:57.907369"], ["updated_at", "2015-12-19 14:53:57.907369"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 49], ["item_id", 140], ["created_at", "2015-12-19 14:53:57.908954"], ["updated_at", "2015-12-19 14:53:57.908954"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 49]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.914808"], ["updated_at", "2015-12-19 14:53:57.914808"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 29]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 50], ["created_at", "2015-12-19 14:53:57.919223"], ["updated_at", "2015-12-19 14:53:57.919223"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 50], ["created_at", "2015-12-19 14:53:57.921018"], ["updated_at", "2015-12-19 14:53:57.921018"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.922288"], ["updated_at", "2015-12-19 14:53:57.922288"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:53:57.923381"], ["updated_at", "2015-12-19 14:53:57.923381"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:53:57.924488"], ["updated_at", "2015-12-19 14:53:57.924488"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 50], ["item_id", 143], ["created_at", "2015-12-19 14:53:57.926609"], ["updated_at", "2015-12-19 14:53:57.926609"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 50], ["item_id", 145], ["created_at", "2015-12-19 14:53:57.928243"], ["updated_at", "2015-12-19 14:53:57.928243"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 50]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [1m[36m (1.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.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.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.1ms)[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 (1.4ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.9ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.5ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [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 = 'foo'
+
+ [1m[36m (0.2ms)[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.7ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.6ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.7ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.2ms)[0m CREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.1ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (3.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 (0.9ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.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 (3.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.7ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ 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.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.8ms)[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 (1.3ms)[0m [1mCREATE VIEW "v_people" 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.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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (18.4ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.0ms)[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.9ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (5.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 (0.6ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.7ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.5ms)[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.8ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.3ms)[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 (16.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 (1.2ms)[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.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.9ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.9ms)[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.1ms)[0m SELECT version FROM "schema_migrations"
+ [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.2ms)[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.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.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-12-19 14:57:30.868453"], ["updated_at", "2015-12-19 14:57:30.868453"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.3ms)[0m [1mCREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[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[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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.8ms)[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 (13.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.7ms)[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 (0.6ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.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 (1.1ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.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.9ms)[0m [1mCREATE VIEW "v_profile" 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.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.8ms)[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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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 (1.2ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.6ms)[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.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.8ms)[0m CREATE VIEW "v_people" 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.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.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.6ms)[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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.1ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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 (0.6ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.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.8ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.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 (0.8ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_people"
+ [1m[36m (1.0ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [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.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn 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
+--------------------------------------
+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.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.091360"], ["updated_at", "2015-12-19 14:57:31.091360"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 30]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 54], ["created_at", "2015-12-19 14:57:31.112877"], ["updated_at", "2015-12-19 14:57:31.112877"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 54], ["created_at", "2015-12-19 14:57:31.115597"], ["updated_at", "2015-12-19 14:57:31.115597"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.117212"], ["updated_at", "2015-12-19 14:57:31.117212"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.118638"], ["updated_at", "2015-12-19 14:57:31.118638"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.119988"], ["updated_at", "2015-12-19 14:57:31.119988"]]
+ [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_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 54], ["item_id", 148], ["created_at", "2015-12-19 14:57:31.132583"], ["updated_at", "2015-12-19 14:57:31.132583"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 54], ["item_id", 150], ["created_at", "2015-12-19 14:57:31.135035"], ["updated_at", "2015-12-19 14:57:31.135035"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 54]]
+ [1m[36mPlace Load (0.2ms)[0m [1mSELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1[0m [["id", 30]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.150564"], ["updated_at", "2015-12-19 14:57:31.150564"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 31]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 55], ["created_at", "2015-12-19 14:57:31.154431"], ["updated_at", "2015-12-19 14:57:31.154431"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 55], ["created_at", "2015-12-19 14:57:31.156181"], ["updated_at", "2015-12-19 14:57:31.156181"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.157443"], ["updated_at", "2015-12-19 14:57:31.157443"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.158566"], ["updated_at", "2015-12-19 14:57:31.158566"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.159741"], ["updated_at", "2015-12-19 14:57:31.159741"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 55], ["item_id", 153], ["created_at", "2015-12-19 14:57:31.161962"], ["updated_at", "2015-12-19 14:57:31.161962"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 55], ["item_id", 155], ["created_at", "2015-12-19 14:57:31.163872"], ["updated_at", "2015-12-19 14:57:31.163872"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 55]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "items" WHERE "items"."person_id" = $1[0m [["person_id", 55]]
+ [1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."person_id" = $1 [["person_id", 55]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" 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.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.180829"], ["updated_at", "2015-12-19 14:57:31.180829"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 32]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 56], ["created_at", "2015-12-19 14:57:31.185273"], ["updated_at", "2015-12-19 14:57:31.185273"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 56], ["created_at", "2015-12-19 14:57:31.186986"], ["updated_at", "2015-12-19 14:57:31.186986"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.188215"], ["updated_at", "2015-12-19 14:57:31.188215"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.189311"], ["updated_at", "2015-12-19 14:57:31.189311"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.190414"], ["updated_at", "2015-12-19 14:57:31.190414"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 56], ["item_id", 158], ["created_at", "2015-12-19 14:57:31.192591"], ["updated_at", "2015-12-19 14:57:31.192591"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 56], ["item_id", 160], ["created_at", "2015-12-19 14:57:31.194278"], ["updated_at", "2015-12-19 14:57:31.194278"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 56]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.200232"], ["updated_at", "2015-12-19 14:57:31.200232"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 33]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 57], ["created_at", "2015-12-19 14:57:31.203973"], ["updated_at", "2015-12-19 14:57:31.203973"]]
+ [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" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 57], ["created_at", "2015-12-19 14:57:31.207117"], ["updated_at", "2015-12-19 14:57:31.207117"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.209318"], ["updated_at", "2015-12-19 14:57:31.209318"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.210792"], ["updated_at", "2015-12-19 14:57:31.210792"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.212056"], ["updated_at", "2015-12-19 14:57:31.212056"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 57], ["item_id", 163], ["created_at", "2015-12-19 14:57:31.214371"], ["updated_at", "2015-12-19 14:57:31.214371"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 57], ["item_id", 165], ["created_at", "2015-12-19 14:57:31.216105"], ["updated_at", "2015-12-19 14:57:31.216105"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 57]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" 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.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.222733"], ["updated_at", "2015-12-19 14:57:31.222733"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 34]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 58], ["created_at", "2015-12-19 14:57:31.226506"], ["updated_at", "2015-12-19 14:57:31.226506"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 58], ["created_at", "2015-12-19 14:57:31.228049"], ["updated_at", "2015-12-19 14:57:31.228049"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.229164"], ["updated_at", "2015-12-19 14:57:31.229164"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.230253"], ["updated_at", "2015-12-19 14:57:31.230253"]]
+ [1m[36m (0.1ms)[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-12-19 14:57:31.231775"], ["updated_at", "2015-12-19 14:57:31.231775"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 58], ["item_id", 168], ["created_at", "2015-12-19 14:57:31.234992"], ["updated_at", "2015-12-19 14:57:31.234992"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 58], ["item_id", 170], ["created_at", "2015-12-19 14:57:31.237119"], ["updated_at", "2015-12-19 14:57:31.237119"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.3ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 58]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.244054"], ["updated_at", "2015-12-19 14:57:31.244054"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 35]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 59], ["created_at", "2015-12-19 14:57:31.247723"], ["updated_at", "2015-12-19 14:57:31.247723"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 59], ["created_at", "2015-12-19 14:57:31.249235"], ["updated_at", "2015-12-19 14:57:31.249235"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.250375"], ["updated_at", "2015-12-19 14:57:31.250375"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 14:57:31.251524"], ["updated_at", "2015-12-19 14:57:31.251524"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 14:57:31.252578"], ["updated_at", "2015-12-19 14:57:31.252578"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 59], ["item_id", 173], ["created_at", "2015-12-19 14:57:31.255921"], ["updated_at", "2015-12-19 14:57:31.255921"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 59], ["item_id", 175], ["created_at", "2015-12-19 14:57:31.259155"], ["updated_at", "2015-12-19 14:57:31.259155"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 59]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[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 (1.6ms)[0m [1mCREATE VIEW "v_people" 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 (2.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.6ms)[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[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.5ms)[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 (0.8ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (2.2ms)[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.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.5ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.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 (0.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.1ms)[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.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_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 (1.2ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.2ms)[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 (17.2ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.1ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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.8ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.8ms)[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 (2.8ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.2ms)[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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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.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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (18.1ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.4ms)[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.3ms)[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 (0.6ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (3.1ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.5ms)[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.7ms)[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.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-12-19 15:33:14.556902"], ["updated_at", "2015-12-19 15:33:14.556902"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.2ms)[0m CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[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 (1.2ms)[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_profile'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.8ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.1ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.2ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (4.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 (0.6ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.4ms)[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.8ms)[0m CREATE VIEW "v_profile" AS SELECT people.first_name,
+ people.last_name,
+ people.ssn
+ FROM people
+UNION
+ SELECT people2.first_name,
+ people2.last_name,
+ people2.ssn
+ FROM people2;
+ [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.4ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.4ms)[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 (1.0ms)[0m CREATE VIEW "v_people" 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.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.8ms)[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.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.6ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.6ms)[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 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 (17.7ms)[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 (2.0ms)[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.2ms)[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.3ms)[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.7ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.9ms)[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.7ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[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
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [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 (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.1ms)[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.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.4ms)[0m SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.4ms)[0m [1mSELECT * FROM v_place[0m
+ [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[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.9ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[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.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.3ms)[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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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 [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [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 = 'v_people'
+[0m
+ [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 (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 (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 (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 = 'v_people'
+[0m
+ [1m[35m (1.2ms)[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 (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 (1.0ms)[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.3ms)[0m [1mselect * from people[0m
+ [1m[35m (0.3ms)[0m select * from people
+ [1m[36m (0.2ms)[0m [1mselect * 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 (1.5ms)[0m [1mCREATE VIEW "v_people" 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 (1.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.6ms)[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[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (18.1ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[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 (0.8ms)[0m [1mDROP TABLE "people" CASCADE[0m
+ [1m[35m (1.9ms)[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.5ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.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 (0.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.1ms)[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.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_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 (1.3ms)[0m [1mCREATE VIEW "v_people" 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.8ms)[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.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.4ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.8ms)[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.6ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.0ms)[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.9ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.4ms)[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.5ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.5ms)[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.7ms)[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 (1.3ms)[0m [1mCREATE VIEW "v_people" 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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.1ms)[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.8ms)[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.6ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (1.9ms)[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 (1.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 (0.9ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.7ms)[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.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------
+SchemaDumperTest: test_union
+----------------------------
+ [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.7ms)[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", "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-12-19 15:50:20.405085"], ["updated_at", "2015-12-19 15:50:20.405085"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[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.9ms)[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_profile'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.9ms)[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.5ms)[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 (3.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 (0.9ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.7ms)[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 (2.3ms)[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 (1.1ms)[0m CREATE VIEW "v_profile" AS SELECT people.first_name,
+ people.last_name,
+ people.ssn
+ FROM people
+UNION
+ SELECT people2.first_name,
+ people2.last_name,
+ people2.ssn
+ FROM people2;
+ [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.3ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (1.8ms)[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.8ms)[0m CREATE VIEW "v_people" 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 (0.8ms)[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" 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.7ms)[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.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.8ms)[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 (17.1ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.9ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.4ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.2ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (5.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 (0.6ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.3ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PEOPLE
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [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 (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.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mSELECT * FROM v_place[0m
+ [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
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[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-12-19 15:50:20.604425"], ["updated_at", "2015-12-19 15:50:20.604425"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[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", 36]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 66], ["created_at", "2015-12-19 15:50:20.633308"], ["updated_at", "2015-12-19 15:50:20.633308"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 66], ["created_at", "2015-12-19 15:50:20.635619"], ["updated_at", "2015-12-19 15:50:20.635619"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.636942"], ["updated_at", "2015-12-19 15:50:20.636942"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.638138"], ["updated_at", "2015-12-19 15:50:20.638138"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.639190"], ["updated_at", "2015-12-19 15:50:20.639190"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[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", 66], ["item_id", 178], ["created_at", "2015-12-19 15:50:20.649588"], ["updated_at", "2015-12-19 15:50:20.649588"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 66], ["item_id", 180], ["created_at", "2015-12-19 15:50:20.651964"], ["updated_at", "2015-12-19 15:50:20.651964"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 66]]
+ [1m[35mPlace Load (0.2ms)[0m SELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1 [["id", 36]]
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.662425"], ["updated_at", "2015-12-19 15:50:20.662425"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 37]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 67], ["created_at", "2015-12-19 15:50:20.666227"], ["updated_at", "2015-12-19 15:50:20.666227"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 67], ["created_at", "2015-12-19 15:50:20.667825"], ["updated_at", "2015-12-19 15:50:20.667825"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.669008"], ["updated_at", "2015-12-19 15:50:20.669008"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.670142"], ["updated_at", "2015-12-19 15:50:20.670142"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.671282"], ["updated_at", "2015-12-19 15:50:20.671282"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 67], ["item_id", 183], ["created_at", "2015-12-19 15:50:20.673522"], ["updated_at", "2015-12-19 15:50:20.673522"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 67], ["item_id", 185], ["created_at", "2015-12-19 15:50:20.675255"], ["updated_at", "2015-12-19 15:50:20.675255"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 67]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = $1 [["person_id", 67]]
+ [1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."person_id" = $1[0m [["person_id", 67]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.684025"], ["updated_at", "2015-12-19 15:50:20.684025"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 38]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 68], ["created_at", "2015-12-19 15:50:20.687445"], ["updated_at", "2015-12-19 15:50:20.687445"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 68], ["created_at", "2015-12-19 15:50:20.688966"], ["updated_at", "2015-12-19 15:50:20.688966"]]
+ [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-12-19 15:50:20.697206"], ["updated_at", "2015-12-19 15:50:20.697206"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.698601"], ["updated_at", "2015-12-19 15:50:20.698601"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.699817"], ["updated_at", "2015-12-19 15:50:20.699817"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 68], ["item_id", 188], ["created_at", "2015-12-19 15:50:20.702205"], ["updated_at", "2015-12-19 15:50:20.702205"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 68], ["item_id", 190], ["created_at", "2015-12-19 15:50:20.703893"], ["updated_at", "2015-12-19 15:50:20.703893"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 68]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" 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-12-19 15:50:20.711143"], ["updated_at", "2015-12-19 15:50:20.711143"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 39]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 69], ["created_at", "2015-12-19 15:50:20.715647"], ["updated_at", "2015-12-19 15:50:20.715647"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 69], ["created_at", "2015-12-19 15:50:20.717036"], ["updated_at", "2015-12-19 15:50:20.717036"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.718021"], ["updated_at", "2015-12-19 15:50:20.718021"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.719024"], ["updated_at", "2015-12-19 15:50:20.719024"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.720014"], ["updated_at", "2015-12-19 15:50:20.720014"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 69], ["item_id", 193], ["created_at", "2015-12-19 15:50:20.721880"], ["updated_at", "2015-12-19 15:50:20.721880"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 69], ["item_id", 195], ["created_at", "2015-12-19 15:50:20.723392"], ["updated_at", "2015-12-19 15:50:20.723392"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 69]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.729105"], ["updated_at", "2015-12-19 15:50:20.729105"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 40]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 70], ["created_at", "2015-12-19 15:50:20.732282"], ["updated_at", "2015-12-19 15:50:20.732282"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 70], ["created_at", "2015-12-19 15:50:20.733580"], ["updated_at", "2015-12-19 15:50:20.733580"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.734624"], ["updated_at", "2015-12-19 15:50:20.734624"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.735674"], ["updated_at", "2015-12-19 15:50:20.735674"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.736665"], ["updated_at", "2015-12-19 15:50:20.736665"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 70], ["item_id", 198], ["created_at", "2015-12-19 15:50:20.738674"], ["updated_at", "2015-12-19 15:50:20.738674"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 70], ["item_id", 200], ["created_at", "2015-12-19 15:50:20.740387"], ["updated_at", "2015-12-19 15:50:20.740387"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 70]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.747156"], ["updated_at", "2015-12-19 15:50:20.747156"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 41]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 71], ["created_at", "2015-12-19 15:50:20.750894"], ["updated_at", "2015-12-19 15:50:20.750894"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 71], ["created_at", "2015-12-19 15:50:20.752224"], ["updated_at", "2015-12-19 15:50:20.752224"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.753251"], ["updated_at", "2015-12-19 15:50:20.753251"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 15:50:20.754249"], ["updated_at", "2015-12-19 15:50:20.754249"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 15:50:20.755206"], ["updated_at", "2015-12-19 15:50:20.755206"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 71], ["item_id", 203], ["created_at", "2015-12-19 15:50:20.757071"], ["updated_at", "2015-12-19 15:50:20.757071"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 71], ["item_id", 205], ["created_at", "2015-12-19 15:50:20.759861"], ["updated_at", "2015-12-19 15:50:20.759861"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.4ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 71]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn from people
+ [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.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" 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.7ms)[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.3ms)[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 (0.7ms)[0m CREATE VIEW "v_people" AS select first_name, last_name, ssn from people
+ [1m[36m (0.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.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[35m (0.4ms)[0m select * from people
+ [1m[36m (0.3ms)[0m [1mselect * from people[0m
+ [1m[35m (0.4ms)[0m select * from peoples
+ [1m[36m (0.4ms)[0m [1mselect * from people[0m
+ [1m[35m (0.3ms)[0m select * from people
+ [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 (1.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (1.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.5ms)[0m CREATE VIEW v_people ("f_name", "l_name", "address_id") AS SELECT "first_name", "last_name", "address_id" FROM people
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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.6ms)[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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (0.5ms)[0m [1mselect * from people[0m
+ [1m[35m (0.3ms)[0m select count(*) from people
+ [1m[36m (0.5ms)[0m [1mselect count(*) from v_people[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.2ms)[0m BEGIN
+----------------------------------------------
+ViewOperationsTest: test_create_or_update_view
+----------------------------------------------
+ [1m[36m (1.7ms)[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 (0.2ms)[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 (1.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.5ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.4ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [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 = 'foo'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn 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 = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.5ms)[0m 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_mapped_views
+------------------------------
+ [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.7ms)[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.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn 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 IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (1.2ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (1.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 (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 = 'v_people'
+[0m
+ [1m[35m (1.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 [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[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 (0.1ms)[0m [1mROLLBACK[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.7ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.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.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (18.2ms)[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 (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.6ms)[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 (0.8ms)[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.7ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [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 (3.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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 (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[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.9ms)[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.5ms)[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.6ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (2.4ms)[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.7ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.5ms)[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.9ms)[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 (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [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.0ms)[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 (1.0ms)[0m [1mCREATE VIEW "v_people" 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.2ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (1.0ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.3ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.2ms)[0m [1mCREATE TABLE "items_people" ("id" serial primary key, "person_id" integer, "item_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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.6ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (4.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.7ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.4ms)[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.3ms)[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.0ms)[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.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.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-12-19 16:00:23.995367"], ["updated_at", "2015-12-19 16:00:23.995367"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.9ms)[0m [1mCREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.7ms)[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.1ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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 = 'v_profile'
+[0m
+ [1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.2ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (1.0ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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 (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.7ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (2.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.6ms)[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 (1.3ms)[0m [1mCREATE VIEW "v_profile" 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.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.4ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.3ms)[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 (1.1ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[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.4ms)[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.7ms)[0m CREATE VIEW "v_people" 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.7ms)[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.6ms)[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.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.3ms)[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 (2.4ms)[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 (3.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 (1.1ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.7ms)[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.5ms)[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" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.9ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [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 (1.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" 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-12-19 16:00:24.177573"], ["updated_at", "2015-12-19 16:00:24.177573"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 42]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 75], ["created_at", "2015-12-19 16:00:24.198889"], ["updated_at", "2015-12-19 16:00:24.198889"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 75], ["created_at", "2015-12-19 16:00:24.200885"], ["updated_at", "2015-12-19 16:00:24.200885"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.201926"], ["updated_at", "2015-12-19 16:00:24.201926"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.203058"], ["updated_at", "2015-12-19 16:00:24.203058"]]
+ [1m[36m (0.1ms)[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-12-19 16:00:24.204242"], ["updated_at", "2015-12-19 16:00:24.204242"]]
+ [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_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 75], ["item_id", 208], ["created_at", "2015-12-19 16:00:24.216879"], ["updated_at", "2015-12-19 16:00:24.216879"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 75], ["item_id", 210], ["created_at", "2015-12-19 16:00:24.219189"], ["updated_at", "2015-12-19 16:00:24.219189"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 75]]
+ [1m[35mPlace Load (0.2ms)[0m SELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1 [["id", 42]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.229912"], ["updated_at", "2015-12-19 16:00:24.229912"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 43]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 76], ["created_at", "2015-12-19 16:00:24.233185"], ["updated_at", "2015-12-19 16:00:24.233185"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 76], ["created_at", "2015-12-19 16:00:24.234478"], ["updated_at", "2015-12-19 16:00:24.234478"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.235540"], ["updated_at", "2015-12-19 16:00:24.235540"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.236542"], ["updated_at", "2015-12-19 16:00:24.236542"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.237571"], ["updated_at", "2015-12-19 16:00:24.237571"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 76], ["item_id", 213], ["created_at", "2015-12-19 16:00:24.239420"], ["updated_at", "2015-12-19 16:00:24.239420"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 76], ["item_id", 215], ["created_at", "2015-12-19 16:00:24.240981"], ["updated_at", "2015-12-19 16:00:24.240981"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 76]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "items" WHERE "items"."person_id" = $1 [["person_id", 76]]
+ [1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."person_id" = $1[0m [["person_id", 76]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.249057"], ["updated_at", "2015-12-19 16:00:24.249057"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 44]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 77], ["created_at", "2015-12-19 16:00:24.252251"], ["updated_at", "2015-12-19 16:00:24.252251"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 77], ["created_at", "2015-12-19 16:00:24.253565"], ["updated_at", "2015-12-19 16:00:24.253565"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.254627"], ["updated_at", "2015-12-19 16:00:24.254627"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.255618"], ["updated_at", "2015-12-19 16:00:24.255618"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.256658"], ["updated_at", "2015-12-19 16:00:24.256658"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 77], ["item_id", 218], ["created_at", "2015-12-19 16:00:24.258915"], ["updated_at", "2015-12-19 16:00:24.258915"]]
+ [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_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 77], ["item_id", 220], ["created_at", "2015-12-19 16:00:24.261829"], ["updated_at", "2015-12-19 16:00:24.261829"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 77]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.268804"], ["updated_at", "2015-12-19 16:00:24.268804"]]
+ [1m[35m (0.1ms)[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", 45]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 78], ["created_at", "2015-12-19 16:00:24.273621"], ["updated_at", "2015-12-19 16:00:24.273621"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 78], ["created_at", "2015-12-19 16:00:24.275346"], ["updated_at", "2015-12-19 16:00:24.275346"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.276729"], ["updated_at", "2015-12-19 16:00:24.276729"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.277833"], ["updated_at", "2015-12-19 16:00:24.277833"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.278868"], ["updated_at", "2015-12-19 16:00:24.278868"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 78], ["item_id", 223], ["created_at", "2015-12-19 16:00:24.280760"], ["updated_at", "2015-12-19 16:00:24.280760"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 78], ["item_id", 225], ["created_at", "2015-12-19 16:00:24.282301"], ["updated_at", "2015-12-19 16:00:24.282301"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 78]]
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.288311"], ["updated_at", "2015-12-19 16:00:24.288311"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 46]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 79], ["created_at", "2015-12-19 16:00:24.291939"], ["updated_at", "2015-12-19 16:00:24.291939"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 79], ["created_at", "2015-12-19 16:00:24.293273"], ["updated_at", "2015-12-19 16:00:24.293273"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.294287"], ["updated_at", "2015-12-19 16:00:24.294287"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.295314"], ["updated_at", "2015-12-19 16:00:24.295314"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.296280"], ["updated_at", "2015-12-19 16:00:24.296280"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 79], ["item_id", 228], ["created_at", "2015-12-19 16:00:24.298115"], ["updated_at", "2015-12-19 16:00:24.298115"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 79], ["item_id", 230], ["created_at", "2015-12-19 16:00:24.299631"], ["updated_at", "2015-12-19 16:00:24.299631"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 79]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.306668"], ["updated_at", "2015-12-19 16:00:24.306668"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 47]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 80], ["created_at", "2015-12-19 16:00:24.310933"], ["updated_at", "2015-12-19 16:00:24.310933"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 80], ["created_at", "2015-12-19 16:00:24.312478"], ["updated_at", "2015-12-19 16:00:24.312478"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.313535"], ["updated_at", "2015-12-19 16:00:24.313535"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:00:24.314605"], ["updated_at", "2015-12-19 16:00:24.314605"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:00:24.315659"], ["updated_at", "2015-12-19 16:00:24.315659"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 80], ["item_id", 233], ["created_at", "2015-12-19 16:00:24.317639"], ["updated_at", "2015-12-19 16:00:24.317639"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 80], ["item_id", 235], ["created_at", "2015-12-19 16:00:24.319281"], ["updated_at", "2015-12-19 16:00:24.319281"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.3ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 80]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [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 (1.5ms)[0m [1mCREATE VIEW "v_people" 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 = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn 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 IN ('BASE TABLE', 'VIEW')
+
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (1.0ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (2.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.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[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 (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------------------
+ViewOperationsTest: test_create_or_replace_view
+-----------------------------------------------
+ [1m[36m (0.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.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mCREATE OR REPLACE VIEW "v_people" 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.2ms)[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 (1.0ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people[0m
+ [1m[35mPerson Load (0.3ms)[0m SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
+ [1m[36mVPerson Load (0.3ms)[0m [1mSELECT "v_people".* FROM "v_people" LIMIT 1[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_place" AS select address, city, cstate, country from places
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_place"[0m
+ [1m[35m (0.4ms)[0m 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 (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 = '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
+------------------------------------
+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.6ms)[0m CREATE VIEW "v_people" 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 (0.7ms)[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[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.2ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.2ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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 (1.0ms)[0m DROP TABLE "people2" CASCADE
+ [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 (0.7ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (3.3ms)[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.9ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [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 (3.0ms)[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.2ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (1.1ms)[0m CREATE VIEW "v_people" 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 (0.8ms)[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[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.7ms)[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 (16.8ms)[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 (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.8ms)[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 (1.0ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.2ms)[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_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.9ms)[0m CREATE VIEW "v_people" 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.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.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (15.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.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 (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 (1.0ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.7ms)[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.6ms)[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.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [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 (2.6ms)[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.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", "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.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-12-19 16:02:37.612905"], ["updated_at", "2015-12-19 16:02:37.612905"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.1ms)[0m CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[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.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_profile'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.3ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[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.6ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (3.7ms)[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 (2.8ms)[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 (1.0ms)[0m CREATE VIEW "v_profile" AS SELECT people.first_name,
+ people.last_name,
+ people.ssn
+ FROM people
+UNION
+ SELECT people2.first_name,
+ people2.last_name,
+ people2.ssn
+ FROM people2;
+ [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.4ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.2ms)[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.8ms)[0m CREATE VIEW "v_people" 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.0ms)[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.6ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.6ms)[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 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.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.0ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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.8ms)[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 (2.7ms)[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.9ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [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 (1.8ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (0.9ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.788978"], ["updated_at", "2015-12-19 16:02:37.788978"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 48]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 84], ["created_at", "2015-12-19 16:02:37.812353"], ["updated_at", "2015-12-19 16:02:37.812353"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 84], ["created_at", "2015-12-19 16:02:37.814580"], ["updated_at", "2015-12-19 16:02:37.814580"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.815976"], ["updated_at", "2015-12-19 16:02:37.815976"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.817202"], ["updated_at", "2015-12-19 16:02:37.817202"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.818859"], ["updated_at", "2015-12-19 16:02:37.818859"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 84], ["item_id", 238], ["created_at", "2015-12-19 16:02:37.831023"], ["updated_at", "2015-12-19 16:02:37.831023"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 84], ["item_id", 240], ["created_at", "2015-12-19 16:02:37.834040"], ["updated_at", "2015-12-19 16:02:37.834040"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 84]]
+ [1m[36mPlace Load (0.2ms)[0m [1mSELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1[0m [["id", 48]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.845554"], ["updated_at", "2015-12-19 16:02:37.845554"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 49]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 85], ["created_at", "2015-12-19 16:02:37.848881"], ["updated_at", "2015-12-19 16:02:37.848881"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 85], ["created_at", "2015-12-19 16:02:37.850185"], ["updated_at", "2015-12-19 16:02:37.850185"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.851250"], ["updated_at", "2015-12-19 16:02:37.851250"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.852272"], ["updated_at", "2015-12-19 16:02:37.852272"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.853244"], ["updated_at", "2015-12-19 16:02:37.853244"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 85], ["item_id", 243], ["created_at", "2015-12-19 16:02:37.855215"], ["updated_at", "2015-12-19 16:02:37.855215"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 85], ["item_id", 245], ["created_at", "2015-12-19 16:02:37.856840"], ["updated_at", "2015-12-19 16:02:37.856840"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 85]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "items" WHERE "items"."person_id" = $1[0m [["person_id", 85]]
+ [1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."person_id" = $1 [["person_id", 85]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.864905"], ["updated_at", "2015-12-19 16:02:37.864905"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 50]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 86], ["created_at", "2015-12-19 16:02:37.868196"], ["updated_at", "2015-12-19 16:02:37.868196"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 86], ["created_at", "2015-12-19 16:02:37.869523"], ["updated_at", "2015-12-19 16:02:37.869523"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.870593"], ["updated_at", "2015-12-19 16:02:37.870593"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.871690"], ["updated_at", "2015-12-19 16:02:37.871690"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.872656"], ["updated_at", "2015-12-19 16:02:37.872656"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 86], ["item_id", 248], ["created_at", "2015-12-19 16:02:37.874460"], ["updated_at", "2015-12-19 16:02:37.874460"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 86], ["item_id", 250], ["created_at", "2015-12-19 16:02:37.876397"], ["updated_at", "2015-12-19 16:02:37.876397"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.3ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 86]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.883938"], ["updated_at", "2015-12-19 16:02:37.883938"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 51]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 87], ["created_at", "2015-12-19 16:02:37.888002"], ["updated_at", "2015-12-19 16:02:37.888002"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 87], ["created_at", "2015-12-19 16:02:37.889651"], ["updated_at", "2015-12-19 16:02:37.889651"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.890846"], ["updated_at", "2015-12-19 16:02:37.890846"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.891951"], ["updated_at", "2015-12-19 16:02:37.891951"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.893034"], ["updated_at", "2015-12-19 16:02:37.893034"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 87], ["item_id", 253], ["created_at", "2015-12-19 16:02:37.895655"], ["updated_at", "2015-12-19 16:02:37.895655"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 87], ["item_id", 255], ["created_at", "2015-12-19 16:02:37.897504"], ["updated_at", "2015-12-19 16:02:37.897504"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 87]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" 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.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.904874"], ["updated_at", "2015-12-19 16:02:37.904874"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 52]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 88], ["created_at", "2015-12-19 16:02:37.908830"], ["updated_at", "2015-12-19 16:02:37.908830"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 88], ["created_at", "2015-12-19 16:02:37.910411"], ["updated_at", "2015-12-19 16:02:37.910411"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.911773"], ["updated_at", "2015-12-19 16:02:37.911773"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.912896"], ["updated_at", "2015-12-19 16:02:37.912896"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.914017"], ["updated_at", "2015-12-19 16:02:37.914017"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 88], ["item_id", 258], ["created_at", "2015-12-19 16:02:37.916811"], ["updated_at", "2015-12-19 16:02:37.916811"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 88], ["item_id", 260], ["created_at", "2015-12-19 16:02:37.920178"], ["updated_at", "2015-12-19 16:02:37.920178"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.3ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 88]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.927861"], ["updated_at", "2015-12-19 16:02:37.927861"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 53]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 89], ["created_at", "2015-12-19 16:02:37.931928"], ["updated_at", "2015-12-19 16:02:37.931928"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 89], ["created_at", "2015-12-19 16:02:37.933817"], ["updated_at", "2015-12-19 16:02:37.933817"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.936105"], ["updated_at", "2015-12-19 16:02:37.936105"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:02:37.937792"], ["updated_at", "2015-12-19 16:02:37.937792"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:02:37.939050"], ["updated_at", "2015-12-19 16:02:37.939050"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 89], ["item_id", 263], ["created_at", "2015-12-19 16:02:37.941489"], ["updated_at", "2015-12-19 16:02:37.941489"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 89], ["item_id", 265], ["created_at", "2015-12-19 16:02:37.943447"], ["updated_at", "2015-12-19 16:02:37.943447"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 89]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[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 (1.6ms)[0m [1mCREATE VIEW "v_people" 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 (1.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.6ms)[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[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.4ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.9ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (1.7ms)[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.1ms)[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.0ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.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.5ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (2.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 (0.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [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 (2.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_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 (1.1ms)[0m [1mCREATE VIEW "v_people" 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 (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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.2ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (1.0ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.0ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.7ms)[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 (2.6ms)[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.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[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.8ms)[0m [1mCREATE VIEW "v_people" 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 (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.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.4ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.9ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.4ms)[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.8ms)[0m DROP TABLE "people2" CASCADE
+ [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 (0.7ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.8ms)[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.3ms)[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 (3.5ms)[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.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.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-12-19 16:33:59.060085"], ["updated_at", "2015-12-19 16:33:59.060085"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m CREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+
+ [1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (0.7ms)[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.8ms)[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_profile'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.3ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.0ms)[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.8ms)[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.0ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (4.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.8ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.6ms)[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.8ms)[0m CREATE VIEW "v_profile" AS SELECT people.first_name,
+ people.last_name,
+ people.ssn
+ FROM people
+UNION
+ SELECT people2.first_name,
+ people2.last_name,
+ people2.ssn
+ FROM people2;
+ [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.5ms)[0m [1mdrop view if exists V_PROFILE[0m
+ [1m[35m (2.5ms)[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.7ms)[0m CREATE VIEW "v_people" 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 (0.7ms)[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.4ms)[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_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.6ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.6ms)[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 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 (16.8ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (3.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.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.0ms)[0m DROP TABLE "people2" CASCADE
+ [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 (0.6ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.3ms)[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.6ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.9ms)[0m CREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [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 (1.9ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[35m (0.8ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.235067"], ["updated_at", "2015-12-19 16:33:59.235067"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 54]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 91], ["created_at", "2015-12-19 16:33:59.257483"], ["updated_at", "2015-12-19 16:33:59.257483"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 91], ["created_at", "2015-12-19 16:33:59.259579"], ["updated_at", "2015-12-19 16:33:59.259579"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.260988"], ["updated_at", "2015-12-19 16:33:59.260988"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.262137"], ["updated_at", "2015-12-19 16:33:59.262137"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.263189"], ["updated_at", "2015-12-19 16:33:59.263189"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 91], ["item_id", 268], ["created_at", "2015-12-19 16:33:59.273749"], ["updated_at", "2015-12-19 16:33:59.273749"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 91], ["item_id", 270], ["created_at", "2015-12-19 16:33:59.275992"], ["updated_at", "2015-12-19 16:33:59.275992"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 91]]
+ [1m[36mPlace Load (0.2ms)[0m [1mSELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1[0m [["id", 54]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.289808"], ["updated_at", "2015-12-19 16:33:59.289808"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 55]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 92], ["created_at", "2015-12-19 16:33:59.293126"], ["updated_at", "2015-12-19 16:33:59.293126"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 92], ["created_at", "2015-12-19 16:33:59.294498"], ["updated_at", "2015-12-19 16:33:59.294498"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.295605"], ["updated_at", "2015-12-19 16:33:59.295605"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.296671"], ["updated_at", "2015-12-19 16:33:59.296671"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.297709"], ["updated_at", "2015-12-19 16:33:59.297709"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 92], ["item_id", 273], ["created_at", "2015-12-19 16:33:59.299781"], ["updated_at", "2015-12-19 16:33:59.299781"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 92], ["item_id", 275], ["created_at", "2015-12-19 16:33:59.301494"], ["updated_at", "2015-12-19 16:33:59.301494"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 92]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "items" WHERE "items"."person_id" = $1[0m [["person_id", 92]]
+ [1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."person_id" = $1 [["person_id", 92]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.310334"], ["updated_at", "2015-12-19 16:33:59.310334"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 56]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 93], ["created_at", "2015-12-19 16:33:59.313810"], ["updated_at", "2015-12-19 16:33:59.313810"]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 93], ["created_at", "2015-12-19 16:33:59.315486"], ["updated_at", "2015-12-19 16:33:59.315486"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.316689"], ["updated_at", "2015-12-19 16:33:59.316689"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.317824"], ["updated_at", "2015-12-19 16:33:59.317824"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.318952"], ["updated_at", "2015-12-19 16:33:59.318952"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 93], ["item_id", 278], ["created_at", "2015-12-19 16:33:59.327817"], ["updated_at", "2015-12-19 16:33:59.327817"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 93], ["item_id", 280], ["created_at", "2015-12-19 16:33:59.329712"], ["updated_at", "2015-12-19 16:33:59.329712"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 93]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.335750"], ["updated_at", "2015-12-19 16:33:59.335750"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 57]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 94], ["created_at", "2015-12-19 16:33:59.338974"], ["updated_at", "2015-12-19 16:33:59.338974"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 94], ["created_at", "2015-12-19 16:33:59.340351"], ["updated_at", "2015-12-19 16:33:59.340351"]]
+ [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 "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.341536"], ["updated_at", "2015-12-19 16:33:59.341536"]]
+ [1m[36m (0.1ms)[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-12-19 16:33:59.343544"], ["updated_at", "2015-12-19 16:33:59.343544"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.345296"], ["updated_at", "2015-12-19 16:33:59.345296"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 94], ["item_id", 283], ["created_at", "2015-12-19 16:33:59.347739"], ["updated_at", "2015-12-19 16:33:59.347739"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 94], ["item_id", 285], ["created_at", "2015-12-19 16:33:59.349323"], ["updated_at", "2015-12-19 16:33:59.349323"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 94]]
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.355009"], ["updated_at", "2015-12-19 16:33:59.355009"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 58]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 95], ["created_at", "2015-12-19 16:33:59.358111"], ["updated_at", "2015-12-19 16:33:59.358111"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 95], ["created_at", "2015-12-19 16:33:59.359419"], ["updated_at", "2015-12-19 16:33:59.359419"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.360457"], ["updated_at", "2015-12-19 16:33:59.360457"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.361491"], ["updated_at", "2015-12-19 16:33:59.361491"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.362506"], ["updated_at", "2015-12-19 16:33:59.362506"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 95], ["item_id", 288], ["created_at", "2015-12-19 16:33:59.364388"], ["updated_at", "2015-12-19 16:33:59.364388"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 95], ["item_id", 290], ["created_at", "2015-12-19 16:33:59.365891"], ["updated_at", "2015-12-19 16:33:59.365891"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 95]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.372006"], ["updated_at", "2015-12-19 16:33:59.372006"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 59]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 96], ["created_at", "2015-12-19 16:33:59.375269"], ["updated_at", "2015-12-19 16:33:59.375269"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 96], ["created_at", "2015-12-19 16:33:59.376939"], ["updated_at", "2015-12-19 16:33:59.376939"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.378632"], ["updated_at", "2015-12-19 16:33:59.378632"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:33:59.379969"], ["updated_at", "2015-12-19 16:33:59.379969"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:33:59.381283"], ["updated_at", "2015-12-19 16:33:59.381283"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 96], ["item_id", 293], ["created_at", "2015-12-19 16:33:59.383775"], ["updated_at", "2015-12-19 16:33:59.383775"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 96], ["item_id", 295], ["created_at", "2015-12-19 16:33:59.385565"], ["updated_at", "2015-12-19 16:33:59.385565"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 96]]
+ [1m[36m (0.2ms)[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[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.7ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (1.2ms)[0m [1mCREATE VIEW "v_people" 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.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (0.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------
+AdapterTest: test_tables
+------------------------
+ [1m[36m (0.9ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (1.1ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (1.2ms)[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.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[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.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------------------
+ViewOperationsTest: test_create_or_replace_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.4ms)[0m CREATE VIEW "v_people" AS select id from people
+ [1m[36m (0.2ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (0.5ms)[0m CREATE OR REPLACE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
+ [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.1ms)[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.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.3ms)[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" ORDER BY "v_people"."id" ASC LIMIT 1
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mSELECT * FROM v_place[0m
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------
+ViewOperationsTest: test_no_view_raises_error
+---------------------------------------------
+ [1m[35m (0.8ms)[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.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
+--------------------------------------------------------
+ViewModelTest: test_access_cloned_belongs_to_association
+--------------------------------------------------------
+ [1m[36m (1.4ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (1.6ms)[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 "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.531726"], ["updated_at", "2015-12-19 16:34:52.531726"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 60]]
+ [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 "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 99], ["created_at", "2015-12-19 16:34:52.555878"], ["updated_at", "2015-12-19 16:34:52.555878"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 99], ["created_at", "2015-12-19 16:34:52.557815"], ["updated_at", "2015-12-19 16:34:52.557815"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.558880"], ["updated_at", "2015-12-19 16:34:52.558880"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.559980"], ["updated_at", "2015-12-19 16:34:52.559980"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.560959"], ["updated_at", "2015-12-19 16:34:52.560959"]]
+ [1m[36m (0.1ms)[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", 99], ["item_id", 298], ["created_at", "2015-12-19 16:34:52.572703"], ["updated_at", "2015-12-19 16:34:52.572703"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 99], ["item_id", 300], ["created_at", "2015-12-19 16:34:52.574894"], ["updated_at", "2015-12-19 16:34:52.574894"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 99]]
+ [1m[36mPlace Load (0.2ms)[0m [1mSELECT "places".* FROM "places" WHERE "places"."id" = $1 LIMIT 1[0m [["id", 60]]
+ [1m[35m (0.2ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+------------------------------------------------------
+ViewModelTest: test_access_cloned_has_many_association
+------------------------------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.588188"], ["updated_at", "2015-12-19 16:34:52.588188"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 61]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 100], ["created_at", "2015-12-19 16:34:52.591426"], ["updated_at", "2015-12-19 16:34:52.591426"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 100], ["created_at", "2015-12-19 16:34:52.592716"], ["updated_at", "2015-12-19 16:34:52.592716"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.593807"], ["updated_at", "2015-12-19 16:34:52.593807"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.594762"], ["updated_at", "2015-12-19 16:34:52.594762"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.595759"], ["updated_at", "2015-12-19 16:34:52.595759"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 100], ["item_id", 303], ["created_at", "2015-12-19 16:34:52.597537"], ["updated_at", "2015-12-19 16:34:52.597537"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 100], ["item_id", 305], ["created_at", "2015-12-19 16:34:52.599030"], ["updated_at", "2015-12-19 16:34:52.599030"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 100]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "items" WHERE "items"."person_id" = $1[0m [["person_id", 100]]
+ [1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."person_id" = $1 [["person_id", 100]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+--------------------------------------------------------
+ViewModelTest: test_cloned_belongs_to_association_exists
+--------------------------------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.606835"], ["updated_at", "2015-12-19 16:34:52.606835"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 62]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 101], ["created_at", "2015-12-19 16:34:52.610447"], ["updated_at", "2015-12-19 16:34:52.610447"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 101], ["created_at", "2015-12-19 16:34:52.611766"], ["updated_at", "2015-12-19 16:34:52.611766"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.612827"], ["updated_at", "2015-12-19 16:34:52.612827"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.613821"], ["updated_at", "2015-12-19 16:34:52.613821"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.614778"], ["updated_at", "2015-12-19 16:34:52.614778"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 101], ["item_id", 308], ["created_at", "2015-12-19 16:34:52.616603"], ["updated_at", "2015-12-19 16:34:52.616603"]]
+ [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 "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 101], ["item_id", 310], ["created_at", "2015-12-19 16:34:52.618411"], ["updated_at", "2015-12-19 16:34:52.618411"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 101]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+---------------------------------------------------
+ViewModelTest: test_cloned_habtm_association_exists
+---------------------------------------------------
+ [1m[35m (0.6ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.625388"], ["updated_at", "2015-12-19 16:34:52.625388"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 63]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 102], ["created_at", "2015-12-19 16:34:52.628598"], ["updated_at", "2015-12-19 16:34:52.628598"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 102], ["created_at", "2015-12-19 16:34:52.629926"], ["updated_at", "2015-12-19 16:34:52.629926"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.631311"], ["updated_at", "2015-12-19 16:34:52.631311"]]
+ [1m[36m (0.1ms)[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-12-19 16:34:52.633151"], ["updated_at", "2015-12-19 16:34:52.633151"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.634834"], ["updated_at", "2015-12-19 16:34:52.634834"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 102], ["item_id", 313], ["created_at", "2015-12-19 16:34:52.637219"], ["updated_at", "2015-12-19 16:34:52.637219"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 102], ["item_id", 315], ["created_at", "2015-12-19 16:34:52.638951"], ["updated_at", "2015-12-19 16:34:52.638951"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 102]]
+ [1m[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------------------------------
+ViewModelTest: test_cloned_has_many_association_exists
+------------------------------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.644953"], ["updated_at", "2015-12-19 16:34:52.644953"]]
+ [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 "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id" [["first_name", "Primus"], ["address_id", 64]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 103], ["created_at", "2015-12-19 16:34:52.648330"], ["updated_at", "2015-12-19 16:34:52.648330"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 103], ["created_at", "2015-12-19 16:34:52.649728"], ["updated_at", "2015-12-19 16:34:52.649728"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.650845"], ["updated_at", "2015-12-19 16:34:52.650845"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.651874"], ["updated_at", "2015-12-19 16:34:52.651874"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.652895"], ["updated_at", "2015-12-19 16:34:52.652895"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 103], ["item_id", 318], ["created_at", "2015-12-19 16:34:52.654787"], ["updated_at", "2015-12-19 16:34:52.654787"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 103], ["item_id", 320], ["created_at", "2015-12-19 16:34:52.656334"], ["updated_at", "2015-12-19 16:34:52.656334"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mVPerson Load (0.2ms)[0m [1mSELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1[0m [["id", 103]]
+ [1m[35m (0.1ms)[0m ROLLBACK
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+-------------------------------
+ViewModelTest: test_same_person
+-------------------------------
+ [1m[35m (0.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "places" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.662319"], ["updated_at", "2015-12-19 16:34:52.662319"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "people" ("first_name", "address_id") VALUES ($1, $2) RETURNING "id"[0m [["first_name", "Primus"], ["address_id", 65]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["person_id", 104], ["created_at", "2015-12-19 16:34:52.665577"], ["updated_at", "2015-12-19 16:34:52.665577"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("person_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["person_id", 104], ["created_at", "2015-12-19 16:34:52.667368"], ["updated_at", "2015-12-19 16:34:52.667368"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.668940"], ["updated_at", "2015-12-19 16:34:52.668940"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", "2015-12-19 16:34:52.670320"], ["updated_at", "2015-12-19 16:34:52.670320"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-12-19 16:34:52.671699"], ["updated_at", "2015-12-19 16:34:52.671699"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["person_id", 104], ["item_id", 323], ["created_at", "2015-12-19 16:34:52.674114"], ["updated_at", "2015-12-19 16:34:52.674114"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "items_people" ("person_id", "item_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["person_id", 104], ["item_id", 325], ["created_at", "2015-12-19 16:34:52.675850"], ["updated_at", "2015-12-19 16:34:52.675850"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mVPerson Load (0.3ms)[0m SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = $1 LIMIT 1 [["id", 104]]
+ [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.7ms)[0m [1mCREATE VIEW "v_people" 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.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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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 = 'v_people'
+[0m
+ [1m[35mSQL (0.2ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (16.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (17.0ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.8ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (2.3ms)[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.9ms)[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.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 (0.9ms)[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.5ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ 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.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------
+SchemaDumperTest: test_regex_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.9ms)[0m [1mCREATE VIEW "v_people" 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 (1.4ms)[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.0ms)[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.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (17.1ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.6ms)[0m DROP TABLE "items_people" CASCADE
+ [1m[36m (2.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 (1.0ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (2.7ms)[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 (3.8ms)[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.8ms)[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.1ms)[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.5ms)[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 (1.1ms)[0m [1mCREATE VIEW "v_people" 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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36mSQL (0.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
+ [1m[35m (0.5ms)[0m DROP TABLE "items" CASCADE
+ [1m[36m (16.5ms)[0m [1mCREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp) [0m
+ [1m[35m (0.7ms)[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 (1.2ms)[0m DROP TABLE "people" CASCADE
+ [1m[36m (3.4ms)[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.8ms)[0m DROP TABLE "people2" CASCADE
+ [1m[36m (2.8ms)[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.5ms)[0m DROP TABLE "places" CASCADE
+ [1m[36m (2.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.2ms)[0m SELECT version FROM "schema_migrations"
+ [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.4ms)[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.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-12-19 16:34:52.907609"], ["updated_at", "2015-12-19 16:34:52.907609"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.9ms)[0m [1mCREATE VIEW "v_profile" AS select first_name, last_name, ssn from people
+ UNION
+ select first_name, last_name, ssn from people2
+[0m
+ [1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
+ [1m[36m (0.7ms)[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.1ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [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_profile'
+[0m
+ [1m[35mSQL (0.1ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.4ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (16.8ms)[0m CREATE TABLE "items" ("id" serial primary key, "person_id" integer, "created_at" timestamp, "updated_at" timestamp)
+ [1m[36m (0.7ms)[0m [1mDROP TABLE "items_people" CASCADE[0m
+ [1m[35m (17.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 (3.6ms)[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 (4.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 (1.0ms)[0m [1mDROP TABLE "places" CASCADE[0m
+ [1m[35m (3.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.8ms)[0m [1mCREATE VIEW "v_profile" 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.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.3ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.0ms)[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.7ms)[0m [1mCREATE VIEW "v_people" 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.7ms)[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.6ms)[0m SELECT table_name, table_type
+ FROM information_schema.tables
+ WHERE table_schema IN ('"$user"','public')
+ AND table_type = 'VIEW'
+
+ [1m[36m (0.6ms)[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 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.7ms)[0m CREATE VIEW "v_people" 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 (0.7ms)[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.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.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.3ms)[0m CREATE EXTENSION IF NOT EXISTS "plpgsql"
+ [1m[36m (0.5ms)[0m [1mDROP TABLE "items" CASCADE[0m
+ [1m[35m (18.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 (2.4ms)[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 (3.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.9ms)[0m [1mDROP TABLE "people2" CASCADE[0m
+ [1m[35m (3.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 (0.9ms)[0m [1mDROP TABLE "places" CASCADE[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 (0.6ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m DROP VIEW "v_people"
+ [1m[36m (0.8ms)[0m [1mCREATE VIEW "v_people" AS SELECT people.id,
+ people.first_name,
+ people.last_name,
+ people.ssn,
+ people.address_id
+ FROM people;[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.5ms)[0m [1mdrop view if exists V_PEOPLE[0m
+ [1m[35m (0.1ms)[0m drop view if exists V_PROFILE
+ [1m[36m (2.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------
+AdapterTest: test_base_tables
+-----------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn 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 = 'BASE TABLE'
+
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-------------------------
+AdapterTest: test_columns
+-------------------------
+ [1m[36m (0.5ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [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.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+------------------------------
+AdapterTest: test_mapped_views
+------------------------------
+ [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 (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.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 [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[0m
+ [1m[35m (0.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.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+---------------------------------------
+AdapterTest: test_view_select_statement
+---------------------------------------
+ [1m[36m (0.7ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from 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[36m (0.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------
+AdapterTest: test_views
+-----------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_people" AS select first_name, last_name, ssn from people[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.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+-----------------------------------------------
+ViewOperationsTest: test_create_or_replace_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.6ms)[0m CREATE VIEW "v_people" AS select id from people
+ [1m[36m (0.4ms)[0m [1mDROP VIEW "v_people"[0m
+ [1m[35m (1.2ms)[0m CREATE OR REPLACE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.4ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
+ [1m[36m (0.2ms)[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.7ms)[0m CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
+ [1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1[0m
+ [1m[35mVPerson Load (0.2ms)[0m SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.1ms)[0m BEGIN
+----------------------------------
+ViewOperationsTest: test_drop_view
+----------------------------------
+ [1m[36m (0.6ms)[0m [1mCREATE VIEW "v_place" AS select address, city, cstate, country from places[0m
+ [1m[35m (0.3ms)[0m DROP VIEW "v_place"
+ [1m[36m (0.3ms)[0m [1mSELECT * FROM v_place[0m
+ [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