rails_sql_views4 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +121 -0
  5. data/lib/active_record/view.rb +80 -0
  6. data/lib/core_ext/module.rb +13 -0
  7. data/lib/rails_sql_views4/connection_adapters/abstract/schema_definitions.rb +63 -0
  8. data/lib/rails_sql_views4/connection_adapters/abstract/schema_statements.rb +85 -0
  9. data/lib/rails_sql_views4/connection_adapters/abstract_adapter.rb +41 -0
  10. data/lib/rails_sql_views4/connection_adapters/mysql2_adapter.rb +66 -0
  11. data/lib/rails_sql_views4/connection_adapters/mysql_adapter.rb +66 -0
  12. data/lib/rails_sql_views4/connection_adapters/oci_adapter.rb +33 -0
  13. data/lib/rails_sql_views4/connection_adapters/oracle_adapter.rb +33 -0
  14. data/lib/rails_sql_views4/connection_adapters/oracleenhanced_adapter.rb +39 -0
  15. data/lib/rails_sql_views4/connection_adapters/oracleenhanced_adapter.rb.orig +72 -0
  16. data/lib/rails_sql_views4/connection_adapters/postgresql_adapter.rb +69 -0
  17. data/lib/rails_sql_views4/connection_adapters/postgresql_adapter.rb.orig +69 -0
  18. data/lib/rails_sql_views4/connection_adapters/sqlite3_adapter.rb +68 -0
  19. data/lib/rails_sql_views4/connection_adapters/sqlite_adapter.rb +68 -0
  20. data/lib/rails_sql_views4/connection_adapters/sqlserver_adapter.rb +43 -0
  21. data/lib/rails_sql_views4/loader.rb +18 -0
  22. data/lib/rails_sql_views4/schema_dumper.rb +114 -0
  23. data/lib/rails_sql_views4/version.rb +3 -0
  24. data/lib/rails_sql_views4.rb +28 -0
  25. data/lib/tasks/rails_sql_views4_tasks.rake +4 -0
  26. data/test/README.NOT_UP_TO_DATE +63 -0
  27. data/test/adapter_test.rb +93 -0
  28. data/test/connection/native_mysql/connection.rb +32 -0
  29. data/test/connection/native_mysql/schema.sql +34 -0
  30. data/test/connection/native_postgresql/connection.rb +31 -0
  31. data/test/connection/native_postgresql/schema.sql +33 -0
  32. data/test/connection/oracle_enhanced/connection.rb +29 -0
  33. data/test/connection/oracle_enhanced/procedures.sql +15 -0
  34. data/test/connection/oracle_enhanced/schema.sql +39 -0
  35. data/test/connection.example.yml +12 -0
  36. data/test/dummy/README.rdoc +28 -0
  37. data/test/dummy/Rakefile +6 -0
  38. data/test/dummy/app/assets/javascripts/application.js +13 -0
  39. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  40. data/test/dummy/app/controllers/application_controller.rb +5 -0
  41. data/test/dummy/app/helpers/application_helper.rb +2 -0
  42. data/test/dummy/app/models/item.rb +4 -0
  43. data/test/dummy/app/models/person.rb +5 -0
  44. data/test/dummy/app/models/person2.rb +4 -0
  45. data/test/dummy/app/models/place.rb +2 -0
  46. data/test/dummy/app/models/v_person.rb +8 -0
  47. data/test/dummy/app/models/v_profile.rb +3 -0
  48. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  49. data/test/dummy/bin/bundle +3 -0
  50. data/test/dummy/bin/rails +4 -0
  51. data/test/dummy/bin/rake +4 -0
  52. data/test/dummy/config/application.rb +23 -0
  53. data/test/dummy/config/boot.rb +5 -0
  54. data/test/dummy/config/database.yml +25 -0
  55. data/test/dummy/config/environment.rb +5 -0
  56. data/test/dummy/config/environments/development.rb +37 -0
  57. data/test/dummy/config/environments/production.rb +78 -0
  58. data/test/dummy/config/environments/test.rb +39 -0
  59. data/test/dummy/config/initializers/assets.rb +8 -0
  60. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  61. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  62. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  63. data/test/dummy/config/initializers/inflections.rb +16 -0
  64. data/test/dummy/config/initializers/mime_types.rb +4 -0
  65. data/test/dummy/config/initializers/session_store.rb +3 -0
  66. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  67. data/test/dummy/config/locales/en.yml +23 -0
  68. data/test/dummy/config/routes.rb +56 -0
  69. data/test/dummy/config/secrets.yml +22 -0
  70. data/test/dummy/config.ru +4 -0
  71. data/test/dummy/db/development.sqlite3 +0 -0
  72. data/test/dummy/db/migrate/20141228200436_create_people.rb +10 -0
  73. data/test/dummy/db/migrate/20141228200437_create_people2.rb +11 -0
  74. data/test/dummy/db/migrate/20141228200438_create_places.rb +12 -0
  75. data/test/dummy/db/migrate/20141228200439_create_items.rb +8 -0
  76. data/test/dummy/db/migrate/20141228200440_create_items_people.rb +9 -0
  77. data/test/dummy/db/schema.rb +53 -0
  78. data/test/dummy/db/test.sqlite3 +0 -0
  79. data/test/dummy/log/development.log +439 -0
  80. data/test/dummy/log/test.log +29320 -0
  81. data/test/dummy/public/404.html +67 -0
  82. data/test/dummy/public/422.html +67 -0
  83. data/test/dummy/public/500.html +66 -0
  84. data/test/dummy/public/favicon.ico +0 -0
  85. data/test/dummy/test/fixtures/persons.yml +7 -0
  86. data/test/dummy/test/models/person_test.rb +7 -0
  87. data/test/rails_sql_views4_test.rb +11 -0
  88. data/test/schema.native_mysql.expected.rb +51 -0
  89. data/test/schema.native_postgresql.expected.rb +51 -0
  90. data/test/schema.native_postgresql.out.rb +69 -0
  91. data/test/schema.oracle_enhanced.expected.rb +51 -0
  92. data/test/schema_dumper_test.rb +134 -0
  93. data/test/test_helper.rb +41 -0
  94. data/test/test_helper.rb.old +30 -0
  95. data/test/view_model_test.rb +68 -0
  96. data/test/view_operations_test.rb +50 -0
  97. metadata +225 -0
@@ -0,0 +1,439 @@
1
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
+ Migrating to CreatePersonns (20141229111027)
7
+  (0.1ms) begin transaction
8
+  (0.3ms) CREATE TABLE "personns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
9
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141229111027"]]
10
+  (0.7ms) commit transaction
11
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
14
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+ Migrating to CreatePeople (20141228200436)
18
+  (0.0ms) begin transaction
19
+  (0.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "adresss_id" integer, "created_at" datetime, "updated_at" datetime) 
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200436"]]
21
+  (1.5ms) commit transaction
22
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
+  (0.2ms)  SELECT name
24
+ FROM sqlite_master
25
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
26
+ 
27
+ Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44
28
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
29
+  (0.1ms) select sqlite_version(*)
30
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
31
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ Migrating to CreatePeople (20141228200436)
33
+  (0.1ms) begin transaction
34
+  (0.5ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "adresss_id" integer, "created_at" datetime, "updated_at" datetime)
35
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200436"]]
36
+  (0.9ms) commit transaction
37
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+  (0.1ms) SELECT name
39
+ FROM sqlite_master
40
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
41
+
42
+ Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44
43
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+ Migrating to CreatePeople2 (20141228200437)
45
+  (0.1ms) begin transaction
46
+  (0.3ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime) 
47
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200437"]]
48
+  (1.6ms) commit transaction
49
+ Migrating to CreatePlaces (20141228200438)
50
+  (0.1ms) begin transaction
51
+  (0.4ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
52
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200438"]]
53
+  (0.9ms) commit transaction
54
+ Migrating to CreateItems (20141228200439)
55
+  (0.1ms) begin transaction
56
+  (0.4ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime) 
57
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200439"]]
58
+  (0.9ms) commit transaction
59
+ Migrating to CreateItemsPeople (20141228200440)
60
+  (0.1ms) begin transaction
61
+  (0.4ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime) 
62
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200440"]]
63
+  (0.8ms) commit transaction
64
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
+  (0.2ms)  SELECT name
66
+ FROM sqlite_master
67
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
68
+ 
69
+ Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44
70
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
71
+  (0.0ms) select sqlite_version(*)
72
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
73
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
74
+ Migrating to CreatePeople (20141228200436)
75
+  (0.0ms) begin transaction
76
+  (0.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "addresss_id" integer, "created_at" datetime, "updated_at" datetime)
77
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200436"]]
78
+  (0.8ms) commit transaction
79
+ Migrating to CreatePeople2 (20141228200437)
80
+  (0.1ms) begin transaction
81
+  (0.4ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)
82
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200437"]]
83
+  (0.7ms) commit transaction
84
+ Migrating to CreatePlaces (20141228200438)
85
+  (0.0ms) begin transaction
86
+  (0.3ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)
87
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200438"]]
88
+  (0.7ms) commit transaction
89
+ Migrating to CreateItems (20141228200439)
90
+  (0.0ms) begin transaction
91
+  (0.3ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)
92
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200439"]]
93
+  (0.8ms) commit transaction
94
+ Migrating to CreateItemsPeople (20141228200440)
95
+  (0.0ms) begin transaction
96
+  (0.3ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)
97
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200440"]]
98
+  (0.7ms) commit transaction
99
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
100
+  (0.1ms) SELECT name
101
+ FROM sqlite_master
102
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
103
+
104
+ Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44
105
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
106
+  (0.1ms) select sqlite_version(*)
107
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
108
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
109
+ Migrating to CreatePeople (20141228200436)
110
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
111
+  (0.1ms) select sqlite_version(*)
112
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
113
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
+ Migrating to CreatePeople (20141228200436)
115
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
116
+ Migrating to CreatePeople (20141228200436)
117
+  (0.0ms) begin transaction
118
+  (0.8ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer, "created_at" datetime, "updated_at" datetime) 
119
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200436"]]
120
+  (1.6ms) commit transaction
121
+ Migrating to CreatePeople2 (20141228200437)
122
+  (0.1ms) begin transaction
123
+  (0.4ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime) 
124
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200437"]]
125
+  (0.9ms) commit transaction
126
+ Migrating to CreatePlaces (20141228200438)
127
+  (0.1ms) begin transaction
128
+  (0.4ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
129
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200438"]]
130
+  (1.0ms) commit transaction
131
+ Migrating to CreateItems (20141228200439)
132
+  (0.1ms) begin transaction
133
+  (0.4ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime) 
134
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200439"]]
135
+  (0.9ms) commit transaction
136
+ Migrating to CreateItemsPeople (20141228200440)
137
+  (0.1ms) begin transaction
138
+  (0.4ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime) 
139
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200440"]]
140
+  (1.0ms) commit transaction
141
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
142
+  (0.2ms)  SELECT name
143
+ FROM sqlite_master
144
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
145
+ 
146
+ Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44
147
+  (0.1ms) begin transaction
148
+ SQL (0.4ms) INSERT INTO "places" ("address", "created_at", "updated_at") VALUES (?, ?, ?) [["address", "my adress"], ["created_at", "2014-12-29 13:40:57.074522"], ["updated_at", "2014-12-29 13:40:57.074522"]]
149
+  (1.6ms) commit transaction
150
+  (0.1ms) begin transaction
151
+ SQL (0.5ms) INSERT INTO "people" ("created_at", "first_name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:42:04.717661"], ["first_name", "laurent"], ["updated_at", "2014-12-29 13:42:04.717661"]]
152
+  (1.2ms) commit transaction
153
+  (0.3ms) DROP VIEW "v_people"
154
+ SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"
155
+  (1.8ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
156
+  (0.1ms) begin transaction
157
+ SQL (0.5ms) INSERT INTO "places" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:44:04.742173"], ["updated_at", "2014-12-29 13:44:04.742173"]]
158
+  (1.4ms) commit transaction
159
+  (0.1ms) begin transaction
160
+ SQL (0.3ms) INSERT INTO "people" ("address_id", "created_at", "first_name", "updated_at") VALUES (?, ?, ?, ?) [["address_id", 2], ["created_at", "2014-12-29 13:44:20.287995"], ["first_name", "Primus"], ["updated_at", "2014-12-29 13:44:20.287995"]]
161
+  (0.5ms) commit transaction
162
+  (0.0ms) begin transaction
163
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:44:20.303974"], ["person_id", 2], ["updated_at", "2014-12-29 13:44:20.303974"]]
164
+  (0.5ms) commit transaction
165
+  (0.0ms) begin transaction
166
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "person_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-12-29 13:44:20.306042"], ["person_id", 2], ["updated_at", "2014-12-29 13:44:20.306042"]]
167
+  (0.5ms) commit transaction
168
+  (0.0ms) begin transaction
169
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:44:20.308846"], ["updated_at", "2014-12-29 13:44:20.308846"]]
170
+  (0.5ms) commit transaction
171
+  (0.0ms) begin transaction
172
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:44:20.310327"], ["updated_at", "2014-12-29 13:44:20.310327"]]
173
+  (0.5ms) commit transaction
174
+  (0.0ms) begin transaction
175
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-29 13:44:20.311734"], ["updated_at", "2014-12-29 13:44:20.311734"]]
176
+  (0.5ms) commit transaction
177
+  (0.0ms) begin transaction
178
+ SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:44:20.321001"], ["item_id", 3], ["person_id", 2], ["updated_at", "2014-12-29 13:44:20.321001"]]
179
+  (0.5ms) commit transaction
180
+ Item Load (0.2ms) SELECT "items".* FROM "items" INNER JOIN "items_people" ON "items"."id" = "items_people"."item_id" WHERE "items_people"."person_id" = ? [["person_id", 2]]
181
+  (0.0ms) begin transaction
182
+ SQL (0.2ms) INSERT INTO "items_people" ("created_at", "item_id", "person_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2014-12-29 13:44:20.330610"], ["item_id", 5], ["person_id", 2], ["updated_at", "2014-12-29 13:44:20.330610"]]
183
+  (0.6ms) commit transaction
184
+ VPerson Load (0.3ms) SELECT "v_people".* FROM "v_people" WHERE "v_people"."id" = ? LIMIT 1 [["id", 2]]
185
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."person_id" = ? [["person_id", 2]]
186
+ Place Load (0.3ms) SELECT "places".* FROM "places" WHERE "places"."id" = ? LIMIT 1 [["id", 2]]
187
+  (2.3ms) DROP VIEW "v_people"
188
+  (1.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
189
+  (1.6ms) DROP VIEW "v_people"
190
+  (1.2ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
191
+  (1.6ms) DROP VIEW "v_people"
192
+  (1.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
193
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
194
+  (0.2ms) SELECT name
195
+ FROM sqlite_master
196
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
197
+
198
+ Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44
199
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
200
+  (0.4ms) SELECT name
201
+ FROM sqlite_master
202
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
203
+
204
+ Unable to dump views: uninitialized constant RailsSqlViews4::SchemaDumper::RailsSqlViews44
205
+ VPerson Load (0.3ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
206
+ Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
207
+ VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
208
+  (1.7ms) DROP VIEW "v_people"
209
+  (3.7ms) CREATE VIEW "v_people" AS select first_name, last_name, ssn from people
210
+ VPerson Load (0.3ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
211
+ SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
212
+ VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
213
+ SQLite3::SQLException: no such column: v_people.id: SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
214
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
215
+  (0.1ms) select sqlite_version(*)
216
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
217
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
218
+ Migrating to CreatePeople (20141228200436)
219
+  (0.1ms) begin transaction
220
+  (0.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)
221
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200436"]]
222
+  (0.9ms) commit transaction
223
+ Migrating to CreatePeople2 (20141228200437)
224
+  (0.1ms) begin transaction
225
+  (0.4ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)
226
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200437"]]
227
+  (1.0ms) commit transaction
228
+ Migrating to CreatePlaces (20141228200438)
229
+  (0.1ms) begin transaction
230
+  (0.4ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)
231
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200438"]]
232
+  (0.9ms) commit transaction
233
+ Migrating to CreateItems (20141228200439)
234
+  (0.1ms) begin transaction
235
+  (0.3ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)
236
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200439"]]
237
+  (0.8ms) commit transaction
238
+ Migrating to CreateItemsPeople (20141228200440)
239
+  (0.1ms) begin transaction
240
+  (0.3ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)
241
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141228200440"]]
242
+  (0.8ms) commit transaction
243
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
244
+  (0.2ms) SELECT name
245
+ FROM sqlite_master
246
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
247
+
248
+ Unable to dump views: undefined method `module' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x007f9a072094c0>
249
+  (0.5ms) DROP VIEW "v_people"
250
+ SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"
251
+  (5.3ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
252
+ VPerson Load (0.1ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
253
+ VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
254
+  (0.0ms) begin transaction
255
+ SQL (0.2ms) INSERT INTO "people" ("first_name", "last_name", "ssn") VALUES (?, ?, ?) [["first_name", "John"], ["last_name", "Doe"], ["ssn", "123456789"]]
256
+  (1.0ms) commit transaction
257
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
258
+ VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
259
+  (1.6ms) DROP VIEW "v_people"
260
+  (1.1ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn from people
261
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
262
+  (0.2ms)  SELECT name
263
+ FROM sqlite_master
264
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
265
+ 
266
+ Unable to dump views: undefined method `module' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x007fa150962078>
267
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
268
+  (0.2ms) SELECT name
269
+ FROM sqlite_master
270
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
271
+
272
+  (0.1ms)  SELECT name
273
+ FROM sqlite_master
274
+ WHERE type = 'view' AND NOT name = 'sqlite_sequence'
275
+ 
276
+  (0.1ms) SELECT sql
277
+ FROM sqlite_master
278
+ WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'
279
+
280
+ Person Load (0.1ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
281
+ VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
282
+ VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
283
+ Person Load (0.2ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
284
+ Person Load (0.3ms) SELECT "people".* FROM "people" ORDER BY "people"."id" ASC LIMIT 1
285
+ VPerson Load (0.2ms) SELECT "v_people".* FROM "v_people" ORDER BY "v_people"."id" ASC LIMIT 1
286
+  (1.9ms) DROP VIEW "v_people"
287
+  (1.0ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
288
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
289
+  (0.1ms) SELECT name
290
+ FROM sqlite_master
291
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
292
+
293
+  (0.1ms)  SELECT name
294
+ FROM sqlite_master
295
+ WHERE type = 'view' AND NOT name = 'sqlite_sequence'
296
+ 
297
+  (0.1ms) SELECT sql
298
+ FROM sqlite_master
299
+ WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'
300
+
301
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
302
+  (0.2ms) SELECT name
303
+ FROM sqlite_master
304
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
305
+
306
+  (0.1ms)  SELECT name
307
+ FROM sqlite_master
308
+ WHERE type = 'view' AND NOT name = 'sqlite_sequence'
309
+ 
310
+  (0.1ms) SELECT sql
311
+ FROM sqlite_master
312
+ WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'
313
+
314
+  (0.3ms) DROP TABLE "items" CASCADE
315
+ SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE
316
+  (0.2ms) DROP TABLE "items" CASCADE
317
+ SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE
318
+  (0.2ms) DROP TABLE "items" CASCADE
319
+ SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE
320
+  (0.3ms) DROP TABLE "items" CASCADE
321
+ SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE
322
+  (0.5ms) DROP TABLE "items" CASCADE
323
+ SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE "items" CASCADE
324
+  (1.9ms) DROP VIEW "v_people"
325
+  (1.0ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
326
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
327
+  (0.1ms) SELECT name
328
+ FROM sqlite_master
329
+ WHERE (type = 'table') AND NOT name = 'sqlite_sequence'
330
+
331
+  (0.1ms)  SELECT name
332
+ FROM sqlite_master
333
+ WHERE type = 'view' AND NOT name = 'sqlite_sequence'
334
+ 
335
+  (0.1ms) SELECT sql
336
+ FROM sqlite_master
337
+ WHERE name = 'v_people' AND NOT name = 'sqlite_sequence'
338
+
339
+  (1.3ms) DROP TABLE "items"
340
+  (0.7ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)
341
+  (0.7ms) DROP TABLE "items_people"
342
+  (0.7ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)
343
+  (0.7ms) DROP TABLE "people"
344
+  (0.8ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)
345
+  (0.7ms) DROP TABLE "people2"
346
+  (0.7ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)
347
+  (0.6ms) DROP TABLE "places"
348
+  (0.7ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)
349
+  (0.5ms) DROP VIEW "v_people"
350
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
351
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
352
+  (0.3ms) DROP VIEW "v_people"
353
+ SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"
354
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
355
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
356
+  (0.3ms) DROP VIEW "v_people"
357
+ SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"
358
+  (0.2ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
359
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
360
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
361
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
362
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW \"v_people\" AS select id, first_name, last_name, ssn, address_id from people
363
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW \"v_people\" AS select id, first_name, last_name, ssn, address_id from people
364
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
365
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
366
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
367
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
368
+  (1.9ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
369
+  (1.7ms) DROP TABLE "items"
370
+  (1.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime) 
371
+  (0.9ms) DROP TABLE "items_people"
372
+  (0.8ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime) 
373
+  (0.7ms) DROP TABLE "people"
374
+  (0.8ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer) 
375
+  (0.7ms) DROP TABLE "people2"
376
+  (0.7ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime) 
377
+  (0.7ms) DROP TABLE "places"
378
+  (0.7ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
379
+  (0.6ms) DROP VIEW "v_people"
380
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
381
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
382
+  (2.3ms) DROP TABLE "items"
383
+  (1.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime) 
384
+  (0.9ms) DROP TABLE "items_people"
385
+  (0.8ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime) 
386
+  (0.7ms) DROP TABLE "people"
387
+  (0.8ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer) 
388
+  (0.7ms) DROP TABLE "people2"
389
+  (0.7ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime) 
390
+  (0.7ms) DROP TABLE "places"
391
+  (0.7ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime) 
392
+  (0.1ms) DROP VIEW "v_people"
393
+ SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"
394
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
395
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
396
+  (1.7ms) DROP TABLE "items"
397
+  (0.9ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)
398
+  (0.9ms) DROP TABLE "items_people"
399
+  (0.7ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)
400
+  (0.8ms) DROP TABLE "people"
401
+  (1.0ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)
402
+  (0.9ms) DROP TABLE "people2"
403
+  (1.0ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)
404
+  (1.0ms) DROP TABLE "places"
405
+  (1.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)
406
+  (0.2ms) DROP VIEW "v_people"
407
+ SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"
408
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
409
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
410
+  (8.0ms) DROP TABLE "items"
411
+  (1.0ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)
412
+  (1.0ms) DROP TABLE "items_people"
413
+  (1.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)
414
+  (1.0ms) DROP TABLE "people"
415
+  (1.0ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)
416
+  (1.1ms) DROP TABLE "people2"
417
+  (1.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)
418
+  (1.0ms) DROP TABLE "places"
419
+  (0.9ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)
420
+  (0.2ms) DROP VIEW "v_people"
421
+ SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"
422
+  (0.1ms) CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
423
+ SQLite3::SQLException: near "CREATE": syntax error: CREATE VIEW "v_people" AS CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
424
+  (1.6ms) DROP TABLE "items"
425
+  (5.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "created_at" datetime, "updated_at" datetime)
426
+  (0.7ms) DROP TABLE "items_people"
427
+  (1.1ms) CREATE TABLE "items_people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "person_id" integer, "item_id" integer, "created_at" datetime, "updated_at" datetime)
428
+  (1.1ms) DROP TABLE "people"
429
+  (0.9ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "address_id" integer)
430
+  (1.1ms) DROP TABLE "people2"
431
+  (1.1ms) CREATE TABLE "people2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "ssn" varchar(255), "created_at" datetime, "updated_at" datetime)
432
+  (1.0ms) DROP TABLE "places"
433
+  (1.1ms) CREATE TABLE "places" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" text, "city" varchar(255), "cstate" varchar(255), "country" varchar(255), "created_at" datetime, "updated_at" datetime)
434
+  (0.3ms) DROP VIEW "v_people"
435
+ SQLite3::SQLException: no such view: v_people: DROP VIEW "v_people"
436
+  (1.0ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
437
+  (0.8ms) DROP VIEW "v_people"
438
+  (0.9ms) CREATE VIEW "v_people" AS select id, first_name, last_name, ssn, address_id from people
439
+  (0.1ms) SELECT version FROM "schema_migrations"