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 +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +4 -2
- data/lib/poly_belongs_to/core.rb +3 -3
- data/lib/poly_belongs_to/version.rb +1 -1
- data/test/core_test.rb +20 -0
- data/test/dummy/app/models/address_book.rb +3 -0
- data/test/dummy/app/models/contact.rb +1 -0
- data/test/dummy/app/models/event.rb +3 -0
- data/test/dummy/app/models/work_order.rb +3 -0
- data/test/dummy/db/migrate/20160120224015_add_contactable_to_contacts.rb +5 -0
- data/test/dummy/db/migrate/20160120231645_create_address_books.rb +8 -0
- data/test/dummy/db/migrate/20161209115003_create_events.rb +10 -0
- data/test/dummy/db/migrate/20161209115212_create_work_orders.rb +8 -0
- data/test/dummy/db/schema.rb +52 -31
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +598 -0
- data/test/dummy/log/test.log +43913 -0
- data/test/dummy/test/fixtures/events.yml +8 -0
- data/test/dummy/test/fixtures/work_orders.yml +12 -0
- data/test/dummy/test/models/address_book_test.rb +13 -0
- data/test/dummy/test/models/event_test.rb +13 -0
- data/test/dummy/test/models/work_order_test.rb +13 -0
- data/test/faked_collection_test.rb +17 -0
- data/test/fixtures/address_books.yml +9 -0
- data/test/fixtures/contacts.yml +18 -0
- data/test/major_version_changes_test.rb +66 -0
- data/test/test_helper.rb +4 -2
- metadata +33 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2efad423c9ee7a05688b3da925164331b3db2fb4
|
4
|
+
data.tar.gz: b73bc60e4b1482dfebe3baaf3e0f1434acc11651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2514357086b1896be8670f111266a66f0060599654d9d45dcc77918d0b35e72f42db2e1bd85ba8aa6a781df8374da39f38a3b01669039f702e8853a1e7549fb0
|
7
|
+
data.tar.gz: 987e0bbf7f9a0718bb4abccca5251f2969e11d4195b5762b7ea55046b4d33c185a8675415168e9b72426686f4d23a4f278f2c052e3ccea51248a0e6553817b32
|
data/MIT-LICENSE
CHANGED
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
|
|
data/lib/poly_belongs_to/core.rb
CHANGED
@@ -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.
|
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
|
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
|
173
|
+
try{ "#{i}".camelize.constantize.where(id: self.send("#{i}_id")).first }
|
174
174
|
}.compact
|
175
175
|
end
|
176
176
|
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
|
data/test/dummy/db/schema.rb
CHANGED
@@ -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:
|
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", ["
|
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",
|
103
|
-
t.datetime "updated_at",
|
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", ["
|
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", ["
|
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", ["
|
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", ["
|
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",
|
151
|
-
t.datetime "updated_at",
|
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
|
data/test/dummy/db/test.sqlite3
CHANGED
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
|
+
[1m[36m (23.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
582
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
583
|
+
[1m[36m (17.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
584
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
585
|
+
Migrating to CreateUsers (20150211224139)
|
586
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
587
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
588
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150211224139"]]
|
589
|
+
[1m[35m (23.8ms)[0m commit transaction
|
590
|
+
Migrating to CreateTags (20150211224157)
|
591
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
592
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")[0m
|
594
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]
|
595
|
+
[1m[36m (28.3ms)[0m [1mcommit transaction[0m
|
596
|
+
Migrating to CreatePhones (20150211224225)
|
597
|
+
[1m[35m (0.1ms)[0m begin transaction
|
598
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
599
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_phones_on_phoneable_type_and_phoneable_id" ON "phones" ("phoneable_type", "phoneable_id")
|
600
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150211224225"]]
|
601
|
+
[1m[35m (33.3ms)[0m commit transaction
|
602
|
+
Migrating to CreateAddresses (20150216092218)
|
603
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m
|
607
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]
|
608
|
+
[1m[36m (24.1ms)[0m [1mcommit transaction[0m
|
609
|
+
Migrating to CreateProfiles (20150216092338)
|
610
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar, "content" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
613
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_profiles_on_profileable_type_and_profileable_id" ON "profiles" ("profileable_type", "profileable_id")
|
614
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150216092338"]]
|
615
|
+
[1m[35m (29.4ms)[0m commit transaction
|
616
|
+
Migrating to CreatePhotos (20150216092411)
|
617
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_photos_on_photoable_type_and_photoable_id" ON "photos" ("photoable_type", "photoable_id")[0m
|
621
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]
|
622
|
+
[1m[36m (26.6ms)[0m [1mcommit transaction[0m
|
623
|
+
Migrating to CreateContacts (20150216092449)
|
624
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
627
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")
|
628
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150216092449"]]
|
629
|
+
[1m[35m (30.4ms)[0m commit transaction
|
630
|
+
Migrating to CreateSsns (20150216092519)
|
631
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime)
|
634
|
+
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id")[0m
|
635
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]
|
636
|
+
[1m[36m (22.6ms)[0m [1mcommit transaction[0m
|
637
|
+
Migrating to CreateGeoLocations (20150220213422)
|
638
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
641
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id")
|
642
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150220213422"]]
|
643
|
+
[1m[35m (33.6ms)[0m commit transaction
|
644
|
+
Migrating to CreateSquishies (20150220230146)
|
645
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_squishies_on_squishable_type_and_squishable_id" ON "squishies" ("squishable_type", "squishable_id")[0m
|
649
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220230146"]]
|
650
|
+
[1m[36m (27.2ms)[0m [1mcommit transaction[0m
|
651
|
+
Migrating to CreateTires (20150301100658)
|
652
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "tires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "car_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
655
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_tires_on_user_id" ON "tires" ("user_id")
|
656
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
664
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "index_tires_on_car_id" ON "tires" ("car_id")
|
665
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150301100658"]]
|
666
|
+
[1m[35m (28.6ms)[0m commit transaction
|
667
|
+
Migrating to CreateCars (20150301100722)
|
668
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime)
|
671
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_cars_on_user_id" ON "cars" ("user_id")[0m
|
672
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150301100722"]]
|
673
|
+
[1m[36m (34.4ms)[0m [1mcommit transaction[0m
|
674
|
+
Migrating to CreateAlphas (20150322233720)
|
675
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "alphas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "delta_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
678
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_alphas_on_delta_id" ON "alphas" ("delta_id")
|
679
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150322233720"]]
|
680
|
+
[1m[35m (30.0ms)[0m commit transaction
|
681
|
+
Migrating to CreateBeta (20150322233733)
|
682
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "beta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "alpha_id" integer, "created_at" datetime, "updated_at" datetime)
|
685
|
+
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_beta_on_alpha_id" ON "beta" ("alpha_id")[0m
|
686
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233733"]]
|
687
|
+
[1m[36m (40.8ms)[0m [1mcommit transaction[0m
|
688
|
+
Migrating to CreateCapas (20150322233743)
|
689
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "capas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "beta_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
692
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_capas_on_beta_id" ON "capas" ("beta_id")
|
693
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150322233743"]]
|
694
|
+
[1m[35m (30.0ms)[0m commit transaction
|
695
|
+
Migrating to CreateDelta (20150322233755)
|
696
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "delta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "capa_id" integer, "created_at" datetime, "updated_at" datetime)
|
699
|
+
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_delta_on_capa_id" ON "delta" ("capa_id")[0m
|
700
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233755"]]
|
701
|
+
[1m[36m (30.8ms)[0m [1mcommit transaction[0m
|
702
|
+
Migrating to CreateCoffees (20150511161648)
|
703
|
+
[1m[35m (0.1ms)[0m begin transaction
|
704
|
+
[1m[36m (0.7ms)[0m [1mCREATE 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) [0m
|
705
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "index_coffees_on_coffeeable_type_and_coffeeable_id" ON "coffees" ("coffeeable_type", "coffeeable_id")
|
706
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150511161648"]]
|
707
|
+
[1m[35m (39.9ms)[0m commit transaction
|
708
|
+
Migrating to AddContactableToContacts (20160120224015)
|
709
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
710
|
+
[1m[35m (0.4ms)[0m ALTER TABLE "contacts" ADD "contactable_id" integer
|
711
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "contacts" ADD "contactable_type" varchar[0m
|
712
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_contacts_on_contactable_type_and_contactable_id" ON "contacts" ("contactable_type", "contactable_id")[0m
|
721
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160120224015"]]
|
722
|
+
[1m[36m (34.2ms)[0m [1mcommit transaction[0m
|
723
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
724
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
732
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
748
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
764
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
780
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
796
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
812
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
828
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
844
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
860
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (23.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
869
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
870
|
+
[1m[36m (20.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
871
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
872
|
+
Migrating to CreateUsers (20150211224139)
|
873
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
874
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
875
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150211224139"]]
|
876
|
+
[1m[35m (28.6ms)[0m commit transaction
|
877
|
+
Migrating to CreateTags (20150211224157)
|
878
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
879
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")[0m
|
881
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]
|
882
|
+
[1m[36m (29.2ms)[0m [1mcommit transaction[0m
|
883
|
+
Migrating to CreatePhones (20150211224225)
|
884
|
+
[1m[35m (0.2ms)[0m begin transaction
|
885
|
+
[1m[36m (0.8ms)[0m [1mCREATE 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) [0m
|
886
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_phones_on_phoneable_type_and_phoneable_id" ON "phones" ("phoneable_type", "phoneable_id")
|
887
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150211224225"]]
|
888
|
+
[1m[35m (26.4ms)[0m commit transaction
|
889
|
+
Migrating to CreateAddresses (20150216092218)
|
890
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_addresses_on_addressable_type_and_addressable_id" ON "addresses" ("addressable_type", "addressable_id")[0m
|
894
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]
|
895
|
+
[1m[36m (24.8ms)[0m [1mcommit transaction[0m
|
896
|
+
Migrating to CreateProfiles (20150216092338)
|
897
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar, "content" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
900
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_profiles_on_profileable_type_and_profileable_id" ON "profiles" ("profileable_type", "profileable_id")
|
901
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150216092338"]]
|
902
|
+
[1m[35m (23.1ms)[0m commit transaction
|
903
|
+
Migrating to CreatePhotos (20150216092411)
|
904
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_photos_on_photoable_type_and_photoable_id" ON "photos" ("photoable_type", "photoable_id")[0m
|
908
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]
|
909
|
+
[1m[36m (22.5ms)[0m [1mcommit transaction[0m
|
910
|
+
Migrating to CreateContacts (20150216092449)
|
911
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
914
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")
|
915
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150216092449"]]
|
916
|
+
[1m[35m (24.9ms)[0m commit transaction
|
917
|
+
Migrating to CreateSsns (20150216092519)
|
918
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime)
|
921
|
+
[1m[36m (0.4ms)[0m [1mCREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id")[0m
|
922
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]
|
923
|
+
[1m[36m (22.9ms)[0m [1mcommit transaction[0m
|
924
|
+
Migrating to CreateGeoLocations (20150220213422)
|
925
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
928
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id")
|
929
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150220213422"]]
|
930
|
+
[1m[35m (25.1ms)[0m commit transaction
|
931
|
+
Migrating to CreateSquishies (20150220230146)
|
932
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mCREATE INDEX "index_squishies_on_squishable_type_and_squishable_id" ON "squishies" ("squishable_type", "squishable_id")[0m
|
936
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220230146"]]
|
937
|
+
[1m[36m (20.3ms)[0m [1mcommit transaction[0m
|
938
|
+
Migrating to CreateTires (20150301100658)
|
939
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "tires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "car_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
942
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_tires_on_user_id" ON "tires" ("user_id")
|
943
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
951
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_tires_on_car_id" ON "tires" ("car_id")
|
952
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150301100658"]]
|
953
|
+
[1m[35m (21.8ms)[0m commit transaction
|
954
|
+
Migrating to CreateCars (20150301100722)
|
955
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar, "created_at" datetime, "updated_at" datetime)
|
958
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_cars_on_user_id" ON "cars" ("user_id")[0m
|
959
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150301100722"]]
|
960
|
+
[1m[36m (34.8ms)[0m [1mcommit transaction[0m
|
961
|
+
Migrating to CreateAlphas (20150322233720)
|
962
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "alphas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "delta_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
965
|
+
[1m[35m (0.3ms)[0m CREATE INDEX "index_alphas_on_delta_id" ON "alphas" ("delta_id")
|
966
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150322233720"]]
|
967
|
+
[1m[35m (27.8ms)[0m commit transaction
|
968
|
+
Migrating to CreateBeta (20150322233733)
|
969
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "beta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "alpha_id" integer, "created_at" datetime, "updated_at" datetime)
|
972
|
+
[1m[36m (0.2ms)[0m [1mCREATE INDEX "index_beta_on_alpha_id" ON "beta" ("alpha_id")[0m
|
973
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233733"]]
|
974
|
+
[1m[36m (28.8ms)[0m [1mcommit transaction[0m
|
975
|
+
Migrating to CreateCapas (20150322233743)
|
976
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "capas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "beta_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
979
|
+
[1m[35m (0.4ms)[0m CREATE INDEX "index_capas_on_beta_id" ON "capas" ("beta_id")
|
980
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150322233743"]]
|
981
|
+
[1m[35m (38.1ms)[0m commit transaction
|
982
|
+
Migrating to CreateDelta (20150322233755)
|
983
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "delta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "capa_id" integer, "created_at" datetime, "updated_at" datetime)
|
986
|
+
[1m[36m (0.5ms)[0m [1mCREATE INDEX "index_delta_on_capa_id" ON "delta" ("capa_id")[0m
|
987
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233755"]]
|
988
|
+
[1m[36m (27.7ms)[0m [1mcommit transaction[0m
|
989
|
+
Migrating to CreateCoffees (20150511161648)
|
990
|
+
[1m[35m (0.1ms)[0m begin transaction
|
991
|
+
[1m[36m (0.4ms)[0m [1mCREATE 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) [0m
|
992
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_coffees_on_coffeeable_type_and_coffeeable_id" ON "coffees" ("coffeeable_type", "coffeeable_id")
|
993
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150511161648"]]
|
994
|
+
[1m[35m (25.8ms)[0m commit transaction
|
995
|
+
Migrating to AddContactableToContacts (20160120224015)
|
996
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
997
|
+
[1m[35m (0.6ms)[0m ALTER TABLE "contacts" ADD "contactable_id" integer
|
998
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "contacts" ADD "contactable_type" varchar[0m
|
999
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mCREATE INDEX "index_contacts_on_contactable_type_and_contactable_id" ON "contacts" ("contactable_type", "contactable_id")[0m
|
1008
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160120224015"]]
|
1009
|
+
[1m[36m (39.2ms)[0m [1mcommit transaction[0m
|
1010
|
+
Migrating to CreateAddressBooks (20160120231645)
|
1011
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1012
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "address_books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1013
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160120231645"]]
|
1014
|
+
[1m[36m (25.4ms)[0m [1mcommit transaction[0m
|
1015
|
+
Migrating to CreateEvents (20161209115003)
|
1016
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1017
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "work_order_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
1018
|
+
[1m[35m (0.2ms)[0m CREATE INDEX "index_events_on_work_order_id" ON "events" ("work_order_id")
|
1019
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20161209115003"]]
|
1020
|
+
[1m[35m (31.3ms)[0m commit transaction
|
1021
|
+
Migrating to CreateWorkOrders (20161209115212)
|
1022
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1023
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "work_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
1024
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20161209115212"]]
|
1025
|
+
[1m[35m (33.0ms)[0m commit transaction
|
1026
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1027
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1m 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
|
+
[0m
|
1043
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1059
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1075
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1091
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1107
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1123
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1139
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1155
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1171
|
+
[1m[35m (0.1ms)[0m 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
|
+
|