poly_belongs_to 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49de2d6bab416ea37c32341ead667cd7aedd420f
4
- data.tar.gz: 10bce901c8d9f8179857cb559979ada83974f293
3
+ metadata.gz: 2efad423c9ee7a05688b3da925164331b3db2fb4
4
+ data.tar.gz: b73bc60e4b1482dfebe3baaf3e0f1434acc11651
5
5
  SHA512:
6
- metadata.gz: 5d596e8558ff4e6cd0c4bfd7a7de0f4c513e6ba3d5a0f346605cfcd36c17144f420b84cd088d27f34286794427ad0fb7ed458b8743e6ef693a65b423d63b71b5
7
- data.tar.gz: ed5bb95b88e1e63b94710a08a1abbdc560c6eb689ac7f98fb00af1b9dde669ca06ff9f82fb8f6c6216d5454118a0ef3c149aad6f1c65cff2afbfbcba0b8863cf
6
+ metadata.gz: 2514357086b1896be8670f111266a66f0060599654d9d45dcc77918d0b35e72f42db2e1bd85ba8aa6a781df8374da39f38a3b01669039f702e8853a1e7549fb0
7
+ data.tar.gz: 987e0bbf7f9a0718bb4abccca5251f2969e11d4195b5762b7ea55046b4d33c185a8675415168e9b72426686f4d23a4f278f2c052e3ccea51248a0e6553817b32
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2015 Daniel P. Clark
1
+ Copyright 2015-2016 Daniel P. Clark
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -15,9 +15,11 @@ PolyBelongsTo has grown into a powerful tool for working with all kinds of Activ
15
15
 
16
16
  Just include it in your Gemfile and then run bundle:
17
17
  ```ruby
18
- gem 'poly_belongs_to'
18
+ gem 'poly_belongs_to', '~> 0.2'
19
19
  ```
20
20
 
21
+ **NOTICE:** Please version this gem requirement. Breaking changes will occur at MAJOR version releases.
22
+
21
23
  ##Recommended Usage
22
24
 
23
25
  #####On model class
@@ -224,7 +226,7 @@ Thank You!
224
226
 
225
227
  The MIT License (MIT)
226
228
 
227
- Copyright (C) 2015 by Daniel P. Clark
229
+ Copyright (C) 2015-2016 by Daniel P. Clark
228
230
 
229
231
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
230
232
 
@@ -97,7 +97,7 @@ module PolyBelongsTo
97
97
  # Return Array of current Class nonpolymorphic records that are orphaned from parents
98
98
  # @return [Array<Object>] ActiveRecord orphan objects
99
99
  def self._pbt_nonpolymorphic_orphans
100
- where(arel_table[pbt_id_sym].not_in(pbt.to_s.capitalize.constantize.arel_table.project(:id)))
100
+ where(arel_table[pbt_id_sym].not_in(pbt.to_s.camelize.constantize.arel_table.project(:id)))
101
101
  end
102
102
  class << self
103
103
  private :_pbt_polymorphic_orphans
@@ -142,7 +142,7 @@ module PolyBelongsTo
142
142
  if poly?
143
143
  "#{pbt_type}".constantize.where(id: pbt_id).first
144
144
  else
145
- "#{val.capitalize}".constantize.where(id: pbt_id).first
145
+ "#{val}".camelize.constantize.where(id: pbt_id).first
146
146
  end
147
147
  else
148
148
  nil
@@ -170,7 +170,7 @@ module PolyBelongsTo
170
170
  Array[pbt_parent].compact
171
171
  else
172
172
  self.class.pbts.map {|i|
173
- try{ "#{i.capitalize}".constantize.where(id: self.send("#{i}_id")).first }
173
+ try{ "#{i}".camelize.constantize.where(id: self.send("#{i}_id")).first }
174
174
  }.compact
175
175
  end
176
176
  end
@@ -1,4 +1,4 @@
1
1
  module PolyBelongsTo
2
2
  # VERSION follows symantic versioning rules
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
4
  end
data/test/core_test.rb CHANGED
@@ -334,5 +334,25 @@ class CoreTest < ActiveSupport::TestCase
334
334
  user.wont_be :orphan?
335
335
  Alpha.create.must_be :orphan?
336
336
  end
337
+
338
+ describe "works with camelcase realtions" do
339
+ it "pbt_parent snakecase to camelcase" do
340
+ work_order = WorkOrder.create()
341
+ e = Event.create(work_order: work_order)
342
+ _(e.pbt_parent).must_equal work_order
343
+ end
344
+
345
+ it "pbt_parents snakecase to camelcase" do
346
+ work_order = WorkOrder.create()
347
+ e = Event.create(work_order: work_order)
348
+ _(e.pbt_parents).must_include work_order
349
+ end
350
+
351
+ it "pbt_orphans snakecase to camelcase" do
352
+ e = Event.create(work_order_id: 15)
353
+ WorkOrder.destroy_all
354
+ _(Event.pbt_orphans.pluck(:work_order_id).first).must_equal e.work_order_id
355
+ end
356
+ end
337
357
  end
338
358
  end
@@ -0,0 +1,3 @@
1
+ class AddressBook < ActiveRecord::Base
2
+ has_many :contacts, as: :contactable, dependent: :destroy
3
+ end
@@ -1,5 +1,6 @@
1
1
  class Contact < ActiveRecord::Base
2
2
  belongs_to :user
3
+ belongs_to :contactable, polymorphic: true
3
4
  has_one :profile, as: :profileable, dependent: :destroy
4
5
  accepts_nested_attributes_for :profile
5
6
  end
@@ -0,0 +1,3 @@
1
+ class Event < ActiveRecord::Base
2
+ belongs_to :work_order
3
+ end
@@ -0,0 +1,3 @@
1
+ class WorkOrder < ActiveRecord::Base
2
+ has_many :events, dependent: :destroy
3
+ end
@@ -0,0 +1,5 @@
1
+ class AddContactableToContacts < ActiveRecord::Migration
2
+ def change
3
+ add_reference :contacts, :contactable, polymorphic: true, index: true
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ class CreateAddressBooks < ActiveRecord::Migration
2
+ def change
3
+ create_table :address_books do |t|
4
+
5
+ t.timestamps null: false
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ class CreateEvents < ActiveRecord::Migration
2
+ def change
3
+ create_table :events do |t|
4
+ t.integer :work_order_id
5
+
6
+ t.timestamps null: false
7
+ end
8
+ add_index :events, :work_order_id
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ class CreateWorkOrders < ActiveRecord::Migration
2
+ def change
3
+ create_table :work_orders do |t|
4
+
5
+ t.timestamps null: false
6
+ end
7
+ end
8
+ end
@@ -11,20 +11,25 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150511161648) do
14
+ ActiveRecord::Schema.define(version: 20161209115212) do
15
+
16
+ create_table "address_books", force: :cascade do |t|
17
+ t.datetime "created_at", null: false
18
+ t.datetime "updated_at", null: false
19
+ end
15
20
 
16
21
  create_table "addresses", force: :cascade do |t|
17
22
  t.integer "addressable_id"
18
- t.string "addressable_type"
19
- t.string "content"
23
+ t.string "addressable_type", limit: 255
24
+ t.string "content", limit: 255
20
25
  t.datetime "created_at"
21
26
  t.datetime "updated_at"
22
27
  end
23
28
 
24
- add_index "addresses", ["addressable_type", "addressable_id"], name: "index_addresses_on_addressable_type_and_addressable_id"
29
+ add_index "addresses", ["addressable_id", "addressable_type"], name: "index_addresses_on_addressable_id_and_addressable_type"
25
30
 
26
31
  create_table "alphas", force: :cascade do |t|
27
- t.string "content"
32
+ t.string "content", limit: 255
28
33
  t.integer "delta_id"
29
34
  t.datetime "created_at"
30
35
  t.datetime "updated_at"
@@ -33,7 +38,7 @@ ActiveRecord::Schema.define(version: 20150511161648) do
33
38
  add_index "alphas", ["delta_id"], name: "index_alphas_on_delta_id"
34
39
 
35
40
  create_table "beta", force: :cascade do |t|
36
- t.string "content"
41
+ t.string "content", limit: 255
37
42
  t.integer "alpha_id"
38
43
  t.datetime "created_at"
39
44
  t.datetime "updated_at"
@@ -42,7 +47,7 @@ ActiveRecord::Schema.define(version: 20150511161648) do
42
47
  add_index "beta", ["alpha_id"], name: "index_beta_on_alpha_id"
43
48
 
44
49
  create_table "capas", force: :cascade do |t|
45
- t.string "content"
50
+ t.string "content", limit: 255
46
51
  t.integer "beta_id"
47
52
  t.datetime "created_at"
48
53
  t.datetime "updated_at"
@@ -52,7 +57,7 @@ ActiveRecord::Schema.define(version: 20150511161648) do
52
57
 
53
58
  create_table "cars", force: :cascade do |t|
54
59
  t.integer "user_id"
55
- t.string "content"
60
+ t.string "content", limit: 255
56
61
  t.datetime "created_at"
57
62
  t.datetime "updated_at"
58
63
  end
@@ -70,15 +75,18 @@ ActiveRecord::Schema.define(version: 20150511161648) do
70
75
 
71
76
  create_table "contacts", force: :cascade do |t|
72
77
  t.integer "user_id"
73
- t.string "content"
78
+ t.string "content", limit: 255
74
79
  t.datetime "created_at"
75
80
  t.datetime "updated_at"
81
+ t.integer "contactable_id"
82
+ t.string "contactable_type"
76
83
  end
77
84
 
85
+ add_index "contacts", ["contactable_type", "contactable_id"], name: "index_contacts_on_contactable_type_and_contactable_id"
78
86
  add_index "contacts", ["user_id"], name: "index_contacts_on_user_id"
79
87
 
80
88
  create_table "delta", force: :cascade do |t|
81
- t.string "content"
89
+ t.string "content", limit: 255
82
90
  t.integer "capa_id"
83
91
  t.datetime "created_at"
84
92
  t.datetime "updated_at"
@@ -86,9 +94,17 @@ ActiveRecord::Schema.define(version: 20150511161648) do
86
94
 
87
95
  add_index "delta", ["capa_id"], name: "index_delta_on_capa_id"
88
96
 
97
+ create_table "events", force: :cascade do |t|
98
+ t.integer "work_order_id"
99
+ t.datetime "created_at", null: false
100
+ t.datetime "updated_at", null: false
101
+ end
102
+
103
+ add_index "events", ["work_order_id"], name: "index_events_on_work_order_id"
104
+
89
105
  create_table "geo_locations", force: :cascade do |t|
90
106
  t.integer "address_id"
91
- t.string "content"
107
+ t.string "content", limit: 255
92
108
  t.datetime "created_at"
93
109
  t.datetime "updated_at"
94
110
  end
@@ -97,47 +113,47 @@ ActiveRecord::Schema.define(version: 20150511161648) do
97
113
 
98
114
  create_table "phones", force: :cascade do |t|
99
115
  t.integer "phoneable_id"
100
- t.string "phoneable_type"
101
- t.string "content"
102
- t.datetime "created_at", null: false
103
- t.datetime "updated_at", null: false
116
+ t.string "phoneable_type", limit: 255
117
+ t.string "content", limit: 255
118
+ t.datetime "created_at", null: false
119
+ t.datetime "updated_at", null: false
104
120
  end
105
121
 
106
- add_index "phones", ["phoneable_type", "phoneable_id"], name: "index_phones_on_phoneable_type_and_phoneable_id"
122
+ add_index "phones", ["phoneable_id", "phoneable_type"], name: "index_phones_on_phoneable_id_and_phoneable_type"
107
123
 
108
124
  create_table "photos", force: :cascade do |t|
109
125
  t.integer "photoable_id"
110
- t.string "photoable_type"
111
- t.string "content"
126
+ t.string "photoable_type", limit: 255
127
+ t.string "content", limit: 255
112
128
  t.datetime "created_at"
113
129
  t.datetime "updated_at"
114
130
  end
115
131
 
116
- add_index "photos", ["photoable_type", "photoable_id"], name: "index_photos_on_photoable_type_and_photoable_id"
132
+ add_index "photos", ["photoable_id", "photoable_type"], name: "index_photos_on_photoable_id_and_photoable_type"
117
133
 
118
134
  create_table "profiles", force: :cascade do |t|
119
135
  t.integer "profileable_id"
120
- t.string "profileable_type"
121
- t.string "content"
136
+ t.string "profileable_type", limit: 255
137
+ t.string "content", limit: 255
122
138
  t.datetime "created_at"
123
139
  t.datetime "updated_at"
124
140
  end
125
141
 
126
- add_index "profiles", ["profileable_type", "profileable_id"], name: "index_profiles_on_profileable_type_and_profileable_id"
142
+ add_index "profiles", ["profileable_id", "profileable_type"], name: "index_profiles_on_profileable_id_and_profileable_type"
127
143
 
128
144
  create_table "squishies", force: :cascade do |t|
129
- t.string "content"
145
+ t.string "content", limit: 255
130
146
  t.integer "squishable_id"
131
- t.string "squishable_type"
147
+ t.string "squishable_type", limit: 255
132
148
  t.datetime "created_at"
133
149
  t.datetime "updated_at"
134
150
  end
135
151
 
136
- add_index "squishies", ["squishable_type", "squishable_id"], name: "index_squishies_on_squishable_type_and_squishable_id"
152
+ add_index "squishies", ["squishable_id", "squishable_type"], name: "index_squishies_on_squishable_id_and_squishable_type"
137
153
 
138
154
  create_table "ssns", force: :cascade do |t|
139
155
  t.integer "user_id"
140
- t.string "content"
156
+ t.string "content", limit: 255
141
157
  t.datetime "created_at"
142
158
  t.datetime "updated_at"
143
159
  end
@@ -146,9 +162,9 @@ ActiveRecord::Schema.define(version: 20150511161648) do
146
162
 
147
163
  create_table "tags", force: :cascade do |t|
148
164
  t.integer "user_id"
149
- t.string "content"
150
- t.datetime "created_at", null: false
151
- t.datetime "updated_at", null: false
165
+ t.string "content", limit: 255
166
+ t.datetime "created_at", null: false
167
+ t.datetime "updated_at", null: false
152
168
  end
153
169
 
154
170
  add_index "tags", ["user_id"], name: "index_tags_on_user_id"
@@ -156,7 +172,7 @@ ActiveRecord::Schema.define(version: 20150511161648) do
156
172
  create_table "tires", force: :cascade do |t|
157
173
  t.integer "user_id"
158
174
  t.integer "car_id"
159
- t.string "content"
175
+ t.string "content", limit: 255
160
176
  t.datetime "created_at"
161
177
  t.datetime "updated_at"
162
178
  end
@@ -165,7 +181,12 @@ ActiveRecord::Schema.define(version: 20150511161648) do
165
181
  add_index "tires", ["user_id"], name: "index_tires_on_user_id"
166
182
 
167
183
  create_table "users", force: :cascade do |t|
168
- t.string "content"
184
+ t.string "content", limit: 255
185
+ t.datetime "created_at", null: false
186
+ t.datetime "updated_at", null: false
187
+ end
188
+
189
+ create_table "work_orders", force: :cascade do |t|
169
190
  t.datetime "created_at", null: false
170
191
  t.datetime "updated_at", null: false
171
192
  end
Binary file
@@ -578,3 +578,601 @@ Migrating to CreateCoffees (20150511161648)
578
578
  FROM sqlite_temp_master
579
579
  WHERE name='index_tires_on_user_id' AND type='index'
580
580
 
581
+  (23.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
582
+  (0.3ms) select sqlite_version(*)
583
+  (17.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
584
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
585
+ Migrating to CreateUsers (20150211224139)
586
+  (0.1ms) begin transaction
587
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
588
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224139"]]
589
+  (23.8ms) commit transaction
590
+ Migrating to CreateTags (20150211224157)
591
+  (0.1ms) begin transaction
592
+  (0.7ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
593
+  (0.3ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")
594
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]
595
+  (28.3ms) commit transaction
596
+ Migrating to CreatePhones (20150211224225)
597
+  (0.1ms) begin transaction
598
+  (0.4ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar, "content" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
599
+  (0.2ms) CREATE INDEX "index_phones_on_phoneable_type_and_phoneable_id" ON "phones" ("phoneable_type", "phoneable_id")
600
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224225"]]
601
+  (33.3ms) commit transaction
602
+ Migrating to CreateAddresses (20150216092218)
603
+  (0.1ms) begin transaction
604
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092218_create_addresses.rb:7)
605
+  (0.4ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar, "content" varchar, "created_at" datetime, "updated_at" datetime)
606
+  (0.2ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
607
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]
608
+  (24.1ms) commit transaction
609
+ Migrating to CreateProfiles (20150216092338)
610
+  (0.1ms) begin transaction
611
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092338_create_profiles.rb:7)
612
+  (0.4ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar, "content" varchar, "created_at" datetime, "updated_at" datetime) 
613
+  (0.1ms) CREATE INDEX "index_profiles_on_profileable_type_and_profileable_id" ON "profiles" ("profileable_type", "profileable_id")
614
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092338"]]
615
+  (29.4ms) commit transaction
616
+ Migrating to CreatePhotos (20150216092411)
617
+  (0.1ms) begin transaction
618
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092411_create_photos.rb:7)
619
+  (0.7ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar, "content" varchar, "created_at" datetime, "updated_at" datetime)
620
+  (0.5ms) CREATE INDEX "index_photos_on_photoable_type_and_photoable_id" ON "photos" ("photoable_type", "photoable_id")
621
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]
622
+  (26.6ms) commit transaction
623
+ Migrating to CreateContacts (20150216092449)
624
+  (0.1ms) begin transaction
625
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092449_create_contacts.rb:7)
626
+  (0.7ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) 
627
+  (0.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")
628
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092449"]]
629
+  (30.4ms) commit transaction
630
+ Migrating to CreateSsns (20150216092519)
631
+  (0.3ms) begin transaction
632
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092519_create_ssns.rb:7)
633
+  (0.7ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime)
634
+  (0.3ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id")
635
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]
636
+  (22.6ms) commit transaction
637
+ Migrating to CreateGeoLocations (20150220213422)
638
+  (0.1ms) begin transaction
639
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150220213422_create_geo_locations.rb:7)
640
+  (0.4ms) CREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) 
641
+  (0.3ms) CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id")
642
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220213422"]]
643
+  (33.6ms) commit transaction
644
+ Migrating to CreateSquishies (20150220230146)
645
+  (0.1ms) begin transaction
646
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150220230146_create_squishies.rb:7)
647
+  (0.4ms) CREATE TABLE "squishies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "squishable_id" integer, "squishable_type" varchar, "created_at" datetime, "updated_at" datetime)
648
+  (0.3ms) CREATE INDEX "index_squishies_on_squishable_type_and_squishable_id" ON "squishies" ("squishable_type", "squishable_id")
649
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220230146"]]
650
+  (27.2ms) commit transaction
651
+ Migrating to CreateTires (20150301100658)
652
+  (0.1ms) begin transaction
653
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150301100658_create_tires.rb:8)
654
+  (0.7ms) CREATE TABLE "tires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "car_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) 
655
+  (0.3ms) CREATE INDEX "index_tires_on_user_id" ON "tires" ("user_id")
656
+  (0.2ms)  SELECT sql
657
+ FROM sqlite_master
658
+ WHERE name='index_tires_on_user_id' AND type='index'
659
+ UNION ALL
660
+ SELECT sql
661
+ FROM sqlite_temp_master
662
+ WHERE name='index_tires_on_user_id' AND type='index'
663
+ 
664
+  (0.4ms) CREATE INDEX "index_tires_on_car_id" ON "tires" ("car_id")
665
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150301100658"]]
666
+  (28.6ms) commit transaction
667
+ Migrating to CreateCars (20150301100722)
668
+  (0.1ms) begin transaction
669
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150301100722_create_cars.rb:7)
670
+  (0.3ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime)
671
+  (0.1ms) CREATE INDEX "index_cars_on_user_id" ON "cars" ("user_id")
672
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150301100722"]]
673
+  (34.4ms) commit transaction
674
+ Migrating to CreateAlphas (20150322233720)
675
+  (0.1ms) begin transaction
676
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150322233720_create_alphas.rb:7)
677
+  (0.8ms) CREATE TABLE "alphas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "delta_id" integer, "created_at" datetime, "updated_at" datetime) 
678
+  (0.3ms) CREATE INDEX "index_alphas_on_delta_id" ON "alphas" ("delta_id")
679
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233720"]]
680
+  (30.0ms) commit transaction
681
+ Migrating to CreateBeta (20150322233733)
682
+  (0.1ms) begin transaction
683
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150322233733_create_beta.rb:7)
684
+  (0.7ms) CREATE TABLE "beta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "alpha_id" integer, "created_at" datetime, "updated_at" datetime)
685
+  (0.3ms) CREATE INDEX "index_beta_on_alpha_id" ON "beta" ("alpha_id")
686
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233733"]]
687
+  (40.8ms) commit transaction
688
+ Migrating to CreateCapas (20150322233743)
689
+  (0.1ms) begin transaction
690
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150322233743_create_capas.rb:7)
691
+  (0.3ms) CREATE TABLE "capas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "beta_id" integer, "created_at" datetime, "updated_at" datetime) 
692
+  (0.1ms) CREATE INDEX "index_capas_on_beta_id" ON "capas" ("beta_id")
693
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233743"]]
694
+  (30.0ms) commit transaction
695
+ Migrating to CreateDelta (20150322233755)
696
+  (0.2ms) begin transaction
697
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150322233755_create_delta.rb:7)
698
+  (1.0ms) CREATE TABLE "delta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "capa_id" integer, "created_at" datetime, "updated_at" datetime)
699
+  (0.5ms) CREATE INDEX "index_delta_on_capa_id" ON "delta" ("capa_id")
700
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233755"]]
701
+  (30.8ms) commit transaction
702
+ Migrating to CreateCoffees (20150511161648)
703
+  (0.1ms) begin transaction
704
+  (0.7ms) CREATE TABLE "coffees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coffeeable_id" integer, "coffeeable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
705
+  (0.4ms) CREATE INDEX "index_coffees_on_coffeeable_type_and_coffeeable_id" ON "coffees" ("coffeeable_type", "coffeeable_id")
706
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150511161648"]]
707
+  (39.9ms) commit transaction
708
+ Migrating to AddContactableToContacts (20160120224015)
709
+  (0.1ms) begin transaction
710
+  (0.4ms) ALTER TABLE "contacts" ADD "contactable_id" integer
711
+  (0.2ms) ALTER TABLE "contacts" ADD "contactable_type" varchar
712
+  (0.3ms) SELECT sql
713
+ FROM sqlite_master
714
+ WHERE name='index_contacts_on_user_id' AND type='index'
715
+ UNION ALL
716
+ SELECT sql
717
+ FROM sqlite_temp_master
718
+ WHERE name='index_contacts_on_user_id' AND type='index'
719
+
720
+  (0.5ms) CREATE INDEX "index_contacts_on_contactable_type_and_contactable_id" ON "contacts" ("contactable_type", "contactable_id")
721
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160120224015"]]
722
+  (34.2ms) commit transaction
723
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
724
+  (0.2ms)  SELECT sql
725
+ FROM sqlite_master
726
+ WHERE name='index_addresses_on_addressable_type_and_addressable_id' AND type='index'
727
+ UNION ALL
728
+ SELECT sql
729
+ FROM sqlite_temp_master
730
+ WHERE name='index_addresses_on_addressable_type_and_addressable_id' AND type='index'
731
+ 
732
+  (0.1ms) SELECT sql
733
+ FROM sqlite_master
734
+ WHERE name='index_alphas_on_delta_id' AND type='index'
735
+ UNION ALL
736
+ SELECT sql
737
+ FROM sqlite_temp_master
738
+ WHERE name='index_alphas_on_delta_id' AND type='index'
739
+
740
+  (0.1ms)  SELECT sql
741
+ FROM sqlite_master
742
+ WHERE name='index_beta_on_alpha_id' AND type='index'
743
+ UNION ALL
744
+ SELECT sql
745
+ FROM sqlite_temp_master
746
+ WHERE name='index_beta_on_alpha_id' AND type='index'
747
+ 
748
+  (0.1ms) SELECT sql
749
+ FROM sqlite_master
750
+ WHERE name='index_capas_on_beta_id' AND type='index'
751
+ UNION ALL
752
+ SELECT sql
753
+ FROM sqlite_temp_master
754
+ WHERE name='index_capas_on_beta_id' AND type='index'
755
+
756
+  (0.1ms)  SELECT sql
757
+ FROM sqlite_master
758
+ WHERE name='index_cars_on_user_id' AND type='index'
759
+ UNION ALL
760
+ SELECT sql
761
+ FROM sqlite_temp_master
762
+ WHERE name='index_cars_on_user_id' AND type='index'
763
+ 
764
+  (0.1ms) SELECT sql
765
+ FROM sqlite_master
766
+ WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'
767
+ UNION ALL
768
+ SELECT sql
769
+ FROM sqlite_temp_master
770
+ WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'
771
+
772
+  (0.1ms)  SELECT sql
773
+ FROM sqlite_master
774
+ WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'
775
+ UNION ALL
776
+ SELECT sql
777
+ FROM sqlite_temp_master
778
+ WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'
779
+ 
780
+  (0.1ms) SELECT sql
781
+ FROM sqlite_master
782
+ WHERE name='index_contacts_on_user_id' AND type='index'
783
+ UNION ALL
784
+ SELECT sql
785
+ FROM sqlite_temp_master
786
+ WHERE name='index_contacts_on_user_id' AND type='index'
787
+
788
+  (0.1ms)  SELECT sql
789
+ FROM sqlite_master
790
+ WHERE name='index_delta_on_capa_id' AND type='index'
791
+ UNION ALL
792
+ SELECT sql
793
+ FROM sqlite_temp_master
794
+ WHERE name='index_delta_on_capa_id' AND type='index'
795
+ 
796
+  (0.1ms) SELECT sql
797
+ FROM sqlite_master
798
+ WHERE name='index_geo_locations_on_address_id' AND type='index'
799
+ UNION ALL
800
+ SELECT sql
801
+ FROM sqlite_temp_master
802
+ WHERE name='index_geo_locations_on_address_id' AND type='index'
803
+
804
+  (0.1ms)  SELECT sql
805
+ FROM sqlite_master
806
+ WHERE name='index_phones_on_phoneable_type_and_phoneable_id' AND type='index'
807
+ UNION ALL
808
+ SELECT sql
809
+ FROM sqlite_temp_master
810
+ WHERE name='index_phones_on_phoneable_type_and_phoneable_id' AND type='index'
811
+ 
812
+  (0.1ms) SELECT sql
813
+ FROM sqlite_master
814
+ WHERE name='index_photos_on_photoable_type_and_photoable_id' AND type='index'
815
+ UNION ALL
816
+ SELECT sql
817
+ FROM sqlite_temp_master
818
+ WHERE name='index_photos_on_photoable_type_and_photoable_id' AND type='index'
819
+
820
+  (0.1ms)  SELECT sql
821
+ FROM sqlite_master
822
+ WHERE name='index_profiles_on_profileable_type_and_profileable_id' AND type='index'
823
+ UNION ALL
824
+ SELECT sql
825
+ FROM sqlite_temp_master
826
+ WHERE name='index_profiles_on_profileable_type_and_profileable_id' AND type='index'
827
+ 
828
+  (0.1ms) SELECT sql
829
+ FROM sqlite_master
830
+ WHERE name='index_squishies_on_squishable_type_and_squishable_id' AND type='index'
831
+ UNION ALL
832
+ SELECT sql
833
+ FROM sqlite_temp_master
834
+ WHERE name='index_squishies_on_squishable_type_and_squishable_id' AND type='index'
835
+
836
+  (0.1ms)  SELECT sql
837
+ FROM sqlite_master
838
+ WHERE name='index_ssns_on_user_id' AND type='index'
839
+ UNION ALL
840
+ SELECT sql
841
+ FROM sqlite_temp_master
842
+ WHERE name='index_ssns_on_user_id' AND type='index'
843
+ 
844
+  (0.1ms) SELECT sql
845
+ FROM sqlite_master
846
+ WHERE name='index_tags_on_user_id' AND type='index'
847
+ UNION ALL
848
+ SELECT sql
849
+ FROM sqlite_temp_master
850
+ WHERE name='index_tags_on_user_id' AND type='index'
851
+
852
+  (0.1ms)  SELECT sql
853
+ FROM sqlite_master
854
+ WHERE name='index_tires_on_car_id' AND type='index'
855
+ UNION ALL
856
+ SELECT sql
857
+ FROM sqlite_temp_master
858
+ WHERE name='index_tires_on_car_id' AND type='index'
859
+ 
860
+  (0.1ms) SELECT sql
861
+ FROM sqlite_master
862
+ WHERE name='index_tires_on_user_id' AND type='index'
863
+ UNION ALL
864
+ SELECT sql
865
+ FROM sqlite_temp_master
866
+ WHERE name='index_tires_on_user_id' AND type='index'
867
+
868
+  (23.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
869
+  (0.2ms) select sqlite_version(*)
870
+  (20.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
871
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
872
+ Migrating to CreateUsers (20150211224139)
873
+  (0.1ms) begin transaction
874
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
875
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224139"]]
876
+  (28.6ms) commit transaction
877
+ Migrating to CreateTags (20150211224157)
878
+  (0.1ms) begin transaction
879
+  (0.3ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
880
+  (0.2ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")
881
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]
882
+  (29.2ms) commit transaction
883
+ Migrating to CreatePhones (20150211224225)
884
+  (0.2ms) begin transaction
885
+  (0.8ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar, "content" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
886
+  (0.3ms) CREATE INDEX "index_phones_on_phoneable_type_and_phoneable_id" ON "phones" ("phoneable_type", "phoneable_id")
887
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224225"]]
888
+  (26.4ms) commit transaction
889
+ Migrating to CreateAddresses (20150216092218)
890
+  (0.1ms) begin transaction
891
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092218_create_addresses.rb:7)
892
+  (0.7ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar, "content" varchar, "created_at" datetime, "updated_at" datetime)
893
+  (0.3ms) CREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")
894
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]
895
+  (24.8ms) commit transaction
896
+ Migrating to CreateProfiles (20150216092338)
897
+  (0.1ms) begin transaction
898
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092338_create_profiles.rb:7)
899
+  (0.4ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar, "content" varchar, "created_at" datetime, "updated_at" datetime) 
900
+  (0.3ms) CREATE INDEX "index_profiles_on_profileable_type_and_profileable_id" ON "profiles" ("profileable_type", "profileable_id")
901
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092338"]]
902
+  (23.1ms) commit transaction
903
+ Migrating to CreatePhotos (20150216092411)
904
+  (0.1ms) begin transaction
905
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092411_create_photos.rb:7)
906
+  (0.8ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar, "content" varchar, "created_at" datetime, "updated_at" datetime)
907
+  (0.2ms) CREATE INDEX "index_photos_on_photoable_type_and_photoable_id" ON "photos" ("photoable_type", "photoable_id")
908
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]
909
+  (22.5ms) commit transaction
910
+ Migrating to CreateContacts (20150216092449)
911
+  (0.2ms) begin transaction
912
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092449_create_contacts.rb:7)
913
+  (0.7ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) 
914
+  (0.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")
915
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092449"]]
916
+  (24.9ms) commit transaction
917
+ Migrating to CreateSsns (20150216092519)
918
+  (0.3ms) begin transaction
919
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150216092519_create_ssns.rb:7)
920
+  (0.9ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime)
921
+  (0.4ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id")
922
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]
923
+  (22.9ms) commit transaction
924
+ Migrating to CreateGeoLocations (20150220213422)
925
+  (0.2ms) begin transaction
926
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150220213422_create_geo_locations.rb:7)
927
+  (0.7ms) CREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) 
928
+  (0.4ms) CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id")
929
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220213422"]]
930
+  (25.1ms) commit transaction
931
+ Migrating to CreateSquishies (20150220230146)
932
+  (0.1ms) begin transaction
933
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150220230146_create_squishies.rb:7)
934
+  (0.6ms) CREATE TABLE "squishies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "squishable_id" integer, "squishable_type" varchar, "created_at" datetime, "updated_at" datetime)
935
+  (0.4ms) CREATE INDEX "index_squishies_on_squishable_type_and_squishable_id" ON "squishies" ("squishable_type", "squishable_id")
936
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220230146"]]
937
+  (20.3ms) commit transaction
938
+ Migrating to CreateTires (20150301100658)
939
+  (0.1ms) begin transaction
940
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150301100658_create_tires.rb:8)
941
+  (0.7ms) CREATE TABLE "tires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "car_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) 
942
+  (0.3ms) CREATE INDEX "index_tires_on_user_id" ON "tires" ("user_id")
943
+  (0.2ms)  SELECT sql
944
+ FROM sqlite_master
945
+ WHERE name='index_tires_on_user_id' AND type='index'
946
+ UNION ALL
947
+ SELECT sql
948
+ FROM sqlite_temp_master
949
+ WHERE name='index_tires_on_user_id' AND type='index'
950
+ 
951
+  (0.3ms) CREATE INDEX "index_tires_on_car_id" ON "tires" ("car_id")
952
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150301100658"]]
953
+  (21.8ms) commit transaction
954
+ Migrating to CreateCars (20150301100722)
955
+  (0.1ms) begin transaction
956
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150301100722_create_cars.rb:7)
957
+  (0.4ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime)
958
+  (0.2ms) CREATE INDEX "index_cars_on_user_id" ON "cars" ("user_id")
959
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150301100722"]]
960
+  (34.8ms) commit transaction
961
+ Migrating to CreateAlphas (20150322233720)
962
+  (0.2ms) begin transaction
963
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150322233720_create_alphas.rb:7)
964
+  (0.8ms) CREATE TABLE "alphas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "delta_id" integer, "created_at" datetime, "updated_at" datetime) 
965
+  (0.3ms) CREATE INDEX "index_alphas_on_delta_id" ON "alphas" ("delta_id")
966
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233720"]]
967
+  (27.8ms) commit transaction
968
+ Migrating to CreateBeta (20150322233733)
969
+  (0.1ms) begin transaction
970
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150322233733_create_beta.rb:7)
971
+  (0.3ms) CREATE TABLE "beta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "alpha_id" integer, "created_at" datetime, "updated_at" datetime)
972
+  (0.2ms) CREATE INDEX "index_beta_on_alpha_id" ON "beta" ("alpha_id")
973
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233733"]]
974
+  (28.8ms) commit transaction
975
+ Migrating to CreateCapas (20150322233743)
976
+  (0.2ms) begin transaction
977
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150322233743_create_capas.rb:7)
978
+  (0.6ms) CREATE TABLE "capas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "beta_id" integer, "created_at" datetime, "updated_at" datetime) 
979
+  (0.4ms) CREATE INDEX "index_capas_on_beta_id" ON "capas" ("beta_id")
980
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233743"]]
981
+  (38.1ms) commit transaction
982
+ Migrating to CreateDelta (20150322233755)
983
+  (0.1ms) begin transaction
984
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/danielpclark/dev/PolyBelongsTo/test/dummy/db/migrate/20150322233755_create_delta.rb:7)
985
+  (0.4ms) CREATE TABLE "delta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "capa_id" integer, "created_at" datetime, "updated_at" datetime)
986
+  (0.5ms) CREATE INDEX "index_delta_on_capa_id" ON "delta" ("capa_id")
987
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233755"]]
988
+  (27.7ms) commit transaction
989
+ Migrating to CreateCoffees (20150511161648)
990
+  (0.1ms) begin transaction
991
+  (0.4ms) CREATE TABLE "coffees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coffeeable_id" integer, "coffeeable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
992
+  (0.2ms) CREATE INDEX "index_coffees_on_coffeeable_type_and_coffeeable_id" ON "coffees" ("coffeeable_type", "coffeeable_id")
993
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150511161648"]]
994
+  (25.8ms) commit transaction
995
+ Migrating to AddContactableToContacts (20160120224015)
996
+  (0.2ms) begin transaction
997
+  (0.6ms) ALTER TABLE "contacts" ADD "contactable_id" integer
998
+  (0.2ms) ALTER TABLE "contacts" ADD "contactable_type" varchar
999
+  (0.1ms) SELECT sql
1000
+ FROM sqlite_master
1001
+ WHERE name='index_contacts_on_user_id' AND type='index'
1002
+ UNION ALL
1003
+ SELECT sql
1004
+ FROM sqlite_temp_master
1005
+ WHERE name='index_contacts_on_user_id' AND type='index'
1006
+
1007
+  (0.3ms) CREATE INDEX "index_contacts_on_contactable_type_and_contactable_id" ON "contacts" ("contactable_type", "contactable_id")
1008
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160120224015"]]
1009
+  (39.2ms) commit transaction
1010
+ Migrating to CreateAddressBooks (20160120231645)
1011
+  (0.1ms) begin transaction
1012
+  (0.4ms) CREATE TABLE "address_books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1013
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160120231645"]]
1014
+  (25.4ms) commit transaction
1015
+ Migrating to CreateEvents (20161209115003)
1016
+  (0.1ms) begin transaction
1017
+  (0.4ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "work_order_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1018
+  (0.2ms) CREATE INDEX "index_events_on_work_order_id" ON "events" ("work_order_id")
1019
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161209115003"]]
1020
+  (31.3ms) commit transaction
1021
+ Migrating to CreateWorkOrders (20161209115212)
1022
+  (0.1ms) begin transaction
1023
+  (0.3ms) CREATE TABLE "work_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1024
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161209115212"]]
1025
+  (33.0ms) commit transaction
1026
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1027
+  (0.2ms) SELECT sql
1028
+ FROM sqlite_master
1029
+ WHERE name='index_addresses_on_addressable_type_and_addressable_id' AND type='index'
1030
+ UNION ALL
1031
+ SELECT sql
1032
+ FROM sqlite_temp_master
1033
+ WHERE name='index_addresses_on_addressable_type_and_addressable_id' AND type='index'
1034
+
1035
+  (0.2ms)  SELECT sql
1036
+ FROM sqlite_master
1037
+ WHERE name='index_alphas_on_delta_id' AND type='index'
1038
+ UNION ALL
1039
+ SELECT sql
1040
+ FROM sqlite_temp_master
1041
+ WHERE name='index_alphas_on_delta_id' AND type='index'
1042
+ 
1043
+  (0.2ms) SELECT sql
1044
+ FROM sqlite_master
1045
+ WHERE name='index_beta_on_alpha_id' AND type='index'
1046
+ UNION ALL
1047
+ SELECT sql
1048
+ FROM sqlite_temp_master
1049
+ WHERE name='index_beta_on_alpha_id' AND type='index'
1050
+
1051
+  (0.1ms)  SELECT sql
1052
+ FROM sqlite_master
1053
+ WHERE name='index_capas_on_beta_id' AND type='index'
1054
+ UNION ALL
1055
+ SELECT sql
1056
+ FROM sqlite_temp_master
1057
+ WHERE name='index_capas_on_beta_id' AND type='index'
1058
+ 
1059
+  (0.1ms) SELECT sql
1060
+ FROM sqlite_master
1061
+ WHERE name='index_cars_on_user_id' AND type='index'
1062
+ UNION ALL
1063
+ SELECT sql
1064
+ FROM sqlite_temp_master
1065
+ WHERE name='index_cars_on_user_id' AND type='index'
1066
+
1067
+  (0.1ms)  SELECT sql
1068
+ FROM sqlite_master
1069
+ WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'
1070
+ UNION ALL
1071
+ SELECT sql
1072
+ FROM sqlite_temp_master
1073
+ WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'
1074
+ 
1075
+  (0.1ms) SELECT sql
1076
+ FROM sqlite_master
1077
+ WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'
1078
+ UNION ALL
1079
+ SELECT sql
1080
+ FROM sqlite_temp_master
1081
+ WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'
1082
+
1083
+  (0.1ms)  SELECT sql
1084
+ FROM sqlite_master
1085
+ WHERE name='index_contacts_on_user_id' AND type='index'
1086
+ UNION ALL
1087
+ SELECT sql
1088
+ FROM sqlite_temp_master
1089
+ WHERE name='index_contacts_on_user_id' AND type='index'
1090
+ 
1091
+  (0.1ms) SELECT sql
1092
+ FROM sqlite_master
1093
+ WHERE name='index_delta_on_capa_id' AND type='index'
1094
+ UNION ALL
1095
+ SELECT sql
1096
+ FROM sqlite_temp_master
1097
+ WHERE name='index_delta_on_capa_id' AND type='index'
1098
+
1099
+  (0.1ms)  SELECT sql
1100
+ FROM sqlite_master
1101
+ WHERE name='index_events_on_work_order_id' AND type='index'
1102
+ UNION ALL
1103
+ SELECT sql
1104
+ FROM sqlite_temp_master
1105
+ WHERE name='index_events_on_work_order_id' AND type='index'
1106
+ 
1107
+  (0.1ms) SELECT sql
1108
+ FROM sqlite_master
1109
+ WHERE name='index_geo_locations_on_address_id' AND type='index'
1110
+ UNION ALL
1111
+ SELECT sql
1112
+ FROM sqlite_temp_master
1113
+ WHERE name='index_geo_locations_on_address_id' AND type='index'
1114
+
1115
+  (0.1ms)  SELECT sql
1116
+ FROM sqlite_master
1117
+ WHERE name='index_phones_on_phoneable_type_and_phoneable_id' AND type='index'
1118
+ UNION ALL
1119
+ SELECT sql
1120
+ FROM sqlite_temp_master
1121
+ WHERE name='index_phones_on_phoneable_type_and_phoneable_id' AND type='index'
1122
+ 
1123
+  (0.1ms) SELECT sql
1124
+ FROM sqlite_master
1125
+ WHERE name='index_photos_on_photoable_type_and_photoable_id' AND type='index'
1126
+ UNION ALL
1127
+ SELECT sql
1128
+ FROM sqlite_temp_master
1129
+ WHERE name='index_photos_on_photoable_type_and_photoable_id' AND type='index'
1130
+
1131
+  (0.1ms)  SELECT sql
1132
+ FROM sqlite_master
1133
+ WHERE name='index_profiles_on_profileable_type_and_profileable_id' AND type='index'
1134
+ UNION ALL
1135
+ SELECT sql
1136
+ FROM sqlite_temp_master
1137
+ WHERE name='index_profiles_on_profileable_type_and_profileable_id' AND type='index'
1138
+ 
1139
+  (0.1ms) SELECT sql
1140
+ FROM sqlite_master
1141
+ WHERE name='index_squishies_on_squishable_type_and_squishable_id' AND type='index'
1142
+ UNION ALL
1143
+ SELECT sql
1144
+ FROM sqlite_temp_master
1145
+ WHERE name='index_squishies_on_squishable_type_and_squishable_id' AND type='index'
1146
+
1147
+  (0.1ms)  SELECT sql
1148
+ FROM sqlite_master
1149
+ WHERE name='index_ssns_on_user_id' AND type='index'
1150
+ UNION ALL
1151
+ SELECT sql
1152
+ FROM sqlite_temp_master
1153
+ WHERE name='index_ssns_on_user_id' AND type='index'
1154
+ 
1155
+  (0.1ms) SELECT sql
1156
+ FROM sqlite_master
1157
+ WHERE name='index_tags_on_user_id' AND type='index'
1158
+ UNION ALL
1159
+ SELECT sql
1160
+ FROM sqlite_temp_master
1161
+ WHERE name='index_tags_on_user_id' AND type='index'
1162
+
1163
+  (0.1ms)  SELECT sql
1164
+ FROM sqlite_master
1165
+ WHERE name='index_tires_on_car_id' AND type='index'
1166
+ UNION ALL
1167
+ SELECT sql
1168
+ FROM sqlite_temp_master
1169
+ WHERE name='index_tires_on_car_id' AND type='index'
1170
+ 
1171
+  (0.1ms) SELECT sql
1172
+ FROM sqlite_master
1173
+ WHERE name='index_tires_on_user_id' AND type='index'
1174
+ UNION ALL
1175
+ SELECT sql
1176
+ FROM sqlite_temp_master
1177
+ WHERE name='index_tires_on_user_id' AND type='index'
1178
+