threads_pad 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +35 -0
  4. data/lib/generators/threads_pad/USAGE +8 -0
  5. data/lib/generators/threads_pad/templates/threads_pad_job_log_migration.rb +17 -0
  6. data/lib/generators/threads_pad/templates/threads_pad_job_migration.rb +17 -0
  7. data/lib/generators/threads_pad/threads_pad_generator.rb +9 -0
  8. data/lib/tasks/threads_pad_tasks.rake +4 -0
  9. data/lib/threads_pad/helper.rb +58 -0
  10. data/lib/threads_pad/job_reflection.rb +58 -0
  11. data/lib/threads_pad/job_reflection_log.rb +6 -0
  12. data/lib/threads_pad/save_adapter.rb +17 -0
  13. data/lib/threads_pad/version.rb +3 -0
  14. data/lib/threads_pad.rb +231 -0
  15. data/test/dummy/README.rdoc +28 -0
  16. data/test/dummy/Rakefile +6 -0
  17. data/test/dummy/app/assets/javascripts/application.js +13 -0
  18. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  19. data/test/dummy/app/controllers/application_controller.rb +5 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  22. data/test/dummy/bin/bundle +3 -0
  23. data/test/dummy/bin/rails +4 -0
  24. data/test/dummy/bin/rake +4 -0
  25. data/test/dummy/bin/setup +29 -0
  26. data/test/dummy/config/application.rb +26 -0
  27. data/test/dummy/config/boot.rb +5 -0
  28. data/test/dummy/config/database.yml +29 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +41 -0
  31. data/test/dummy/config/environments/production.rb +79 -0
  32. data/test/dummy/config/environments/test.rb +42 -0
  33. data/test/dummy/config/initializers/assets.rb +11 -0
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  36. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  37. data/test/dummy/config/initializers/inflections.rb +16 -0
  38. data/test/dummy/config/initializers/mime_types.rb +4 -0
  39. data/test/dummy/config/initializers/session_store.rb +3 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +23 -0
  42. data/test/dummy/config/routes.rb +56 -0
  43. data/test/dummy/config/secrets.yml +22 -0
  44. data/test/dummy/config.ru +4 -0
  45. data/test/dummy/db/migrate/20160229125823_create_threads_pad_jobs.rb +17 -0
  46. data/test/dummy/db/migrate/20160229125824_create_threads_pad_job_logs.rb +17 -0
  47. data/test/dummy/db/schema.rb +45 -0
  48. data/test/dummy/lib/generators/threads_pad/USAGE +8 -0
  49. data/test/dummy/lib/generators/threads_pad/templates/threads_pad_job_log_migration.rb +16 -0
  50. data/test/dummy/lib/generators/threads_pad/templates/threads_pad_job_migration.rb +16 -0
  51. data/test/dummy/lib/generators/threads_pad/threads_pad_generator.rb +9 -0
  52. data/test/dummy/log/RAILS_ENV=test.log +0 -0
  53. data/test/dummy/log/development.log +1265 -0
  54. data/test/dummy/log/test.log +311010 -0
  55. data/test/dummy/public/404.html +67 -0
  56. data/test/dummy/public/422.html +67 -0
  57. data/test/dummy/public/500.html +66 -0
  58. data/test/dummy/public/favicon.ico +0 -0
  59. data/test/dummy/test/lib/generators/threads_pad_generator_test.rb +14 -0
  60. data/test/test_helper.rb +19 -0
  61. data/test/threads_pad_helper_test.rb +66 -0
  62. data/test/threads_pad_test.rb +191 -0
  63. metadata +167 -0
@@ -0,0 +1,1265 @@
1
+
2
+
3
+ Started GET "/" for 127.0.0.1 at 2015-08-03 16:29:41 +0300
4
+ Processing by Rails::WelcomeController#index as HTML
5
+ Rendered /home/snake/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/templates/rails/welcome/index.html.erb (1.1ms)
6
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
7
+  (140.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
8
+  (0.2ms) select sqlite_version(*)
9
+  (176.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ Migrating to CreateThreadsPadTable (20150804133905)
14
+  (0.1ms) begin transaction
15
+  (0.6ms) CREATE TABLE "job_reflections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
16
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150804133905"]]
17
+  (245.0ms) commit transaction
18
+ Migrating to CreateThreadsPadJobTable (20150804135657)
19
+  (0.1ms) begin transaction
20
+  (0.8ms) CREATE TABLE "threads_pad_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "terminated" boolean, "done" boolean, "result" varchar) 
21
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150804135657"]]
22
+  (179.3ms) commit transaction
23
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+ Migrating to AddFeildsToThreadsPadJob (20150805130636)
26
+  (0.0ms) begin transaction
27
+  (13.4ms) ALTER TABLE "threads_pad_jobs" ADD "group_id" integer
28
+  (0.1ms) ALTER TABLE "threads_pad_jobs" ADD "max" integer
29
+  (0.1ms) ALTER TABLE "threads_pad_jobs" ADD "currrent" integer
30
+  (0.1ms) ALTER TABLE "threads_pad_jobs" ADD "min" integer
31
+  (0.0ms) select sqlite_version(*)
32
+  (0.1ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
33
+ SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150805130636"]]
34
+  (236.7ms) commit transaction
35
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
+  (0.2ms) SELECT sql
37
+ FROM sqlite_master
38
+ WHERE name='index_threads_pad_jobs_on_group_id' AND type='index'
39
+ UNION ALL
40
+ SELECT sql
41
+ FROM sqlite_temp_master
42
+ WHERE name='index_threads_pad_jobs_on_group_id' AND type='index'
43
+
44
+  (112.1ms) CREATE TABLE "job_reflections" ("id" serial primary key) 
45
+  (80.2ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "max" integer, "currrent" integer, "min" integer)
46
+  (44.1ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
47
+  (47.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
48
+  (45.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
49
+  (0.7ms) SELECT version FROM "schema_migrations"
50
+  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150805130636')
51
+  (8.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150804133905')
52
+  (7.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150804135657')
53
+  (47.2ms) CREATE TABLE "job_reflections" ("id" serial primary key)
54
+  (79.4ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "max" integer, "currrent" integer, "min" integer) 
55
+  (38.8ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
56
+  (40.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
57
+  (39.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
58
+  (0.7ms) SELECT version FROM "schema_migrations"
59
+  (5.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150805130636')
60
+  (8.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150804133905')
61
+  (7.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150804135657')
62
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
63
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
64
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
+ Migrating to AddFeildsToThreadsPadJob (20150805130636)
66
+  (0.1ms) BEGIN
67
+  (0.7ms) DROP INDEX "index_threads_pad_jobs_on_group_id"
68
+  (0.7ms) ALTER TABLE "threads_pad_jobs" DROP "min"
69
+  (0.7ms) ALTER TABLE "threads_pad_jobs" DROP "currrent"
70
+  (0.7ms) ALTER TABLE "threads_pad_jobs" DROP "max"
71
+  (0.7ms) ALTER TABLE "threads_pad_jobs" DROP "group_id"
72
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20150805130636"]]
73
+  (9.6ms) COMMIT
74
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
75
+  (2.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
76
+ FROM pg_constraint c
77
+ JOIN pg_class t1 ON c.conrelid = t1.oid
78
+ JOIN pg_class t2 ON c.confrelid = t2.oid
79
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
80
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
81
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
82
+ WHERE c.contype = 'f'
83
+ AND t1.relname = 'job_reflections'
84
+ AND t3.nspname = ANY (current_schemas(false))
85
+ ORDER BY c.conname
86
+
87
+  (2.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
88
+ FROM pg_constraint c
89
+ JOIN pg_class t1 ON c.conrelid = t1.oid
90
+ JOIN pg_class t2 ON c.confrelid = t2.oid
91
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
92
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
93
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
94
+ WHERE c.contype = 'f'
95
+ AND t1.relname = 'threads_pad_jobs'
96
+ AND t3.nspname = ANY (current_schemas(false))
97
+ ORDER BY c.conname
98
+ 
99
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
100
+ Migrating to AddFeildsToThreadsPadJob (20150805130636)
101
+  (0.1ms) BEGIN
102
+  (0.5ms) ALTER TABLE "threads_pad_jobs" ADD "group_id" integer
103
+  (0.2ms) ALTER TABLE "threads_pad_jobs" ADD "max" integer
104
+  (0.2ms) ALTER TABLE "threads_pad_jobs" ADD "current" integer
105
+  (0.2ms) ALTER TABLE "threads_pad_jobs" ADD "min" integer
106
+  (29.0ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
107
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150805130636"]]
108
+  (15.9ms) COMMIT
109
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
110
+  (3.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
111
+ FROM pg_constraint c
112
+ JOIN pg_class t1 ON c.conrelid = t1.oid
113
+ JOIN pg_class t2 ON c.confrelid = t2.oid
114
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
115
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
116
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
117
+ WHERE c.contype = 'f'
118
+ AND t1.relname = 'job_reflections'
119
+ AND t3.nspname = ANY (current_schemas(false))
120
+ ORDER BY c.conname
121
+ 
122
+  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
123
+ FROM pg_constraint c
124
+ JOIN pg_class t1 ON c.conrelid = t1.oid
125
+ JOIN pg_class t2 ON c.confrelid = t2.oid
126
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
127
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
128
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
129
+ WHERE c.contype = 'f'
130
+ AND t1.relname = 'threads_pad_jobs'
131
+ AND t3.nspname = ANY (current_schemas(false))
132
+ ORDER BY c.conname
133
+
134
+ SQL (6.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
135
+  (19.9ms) DROP TABLE "job_reflections" CASCADE
136
+  (49.7ms) CREATE TABLE "job_reflections" ("id" serial primary key) 
137
+  (7.4ms) DROP TABLE "threads_pad_jobs" CASCADE
138
+  (107.9ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "max" integer, "current" integer, "min" integer) 
139
+  (47.5ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
140
+  (0.5ms) SELECT version FROM "schema_migrations"
141
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
142
+  (17.4ms) DROP TABLE "job_reflections" CASCADE
143
+  (49.7ms) CREATE TABLE "job_reflections" ("id" serial primary key)
144
+  (7.4ms) DROP TABLE "threads_pad_jobs" CASCADE
145
+  (74.5ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "max" integer, "current" integer, "min" integer)
146
+  (39.2ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
147
+  (0.3ms) SELECT version FROM "schema_migrations"
148
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
149
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
150
+  (18.2ms) DROP TABLE "job_reflections" CASCADE
151
+  (50.7ms) CREATE TABLE "job_reflections" ("id" serial primary key) 
152
+  (6.4ms) DROP TABLE "threads_pad_jobs" CASCADE
153
+  (74.5ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "max" integer, "current" integer, "min" integer) 
154
+  (39.0ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
155
+  (0.4ms) SELECT version FROM "schema_migrations"
156
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
157
+  (10.5ms) DROP TABLE "job_reflections" CASCADE
158
+  (41.0ms) CREATE TABLE "job_reflections" ("id" serial primary key)
159
+  (6.7ms) DROP TABLE "threads_pad_jobs" CASCADE
160
+  (82.7ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "max" integer, "current" integer, "min" integer)
161
+  (47.1ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
162
+  (0.3ms) SELECT version FROM "schema_migrations"
163
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
164
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
165
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
166
+  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
167
+ FROM pg_constraint c
168
+ JOIN pg_class t1 ON c.conrelid = t1.oid
169
+ JOIN pg_class t2 ON c.confrelid = t2.oid
170
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
171
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
172
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
173
+ WHERE c.contype = 'f'
174
+ AND t1.relname = 'job_reflections'
175
+ AND t3.nspname = ANY (current_schemas(false))
176
+ ORDER BY c.conname
177
+ 
178
+  (2.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
179
+ FROM pg_constraint c
180
+ JOIN pg_class t1 ON c.conrelid = t1.oid
181
+ JOIN pg_class t2 ON c.confrelid = t2.oid
182
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
183
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
184
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
185
+ WHERE c.contype = 'f'
186
+ AND t1.relname = 'threads_pad_jobs'
187
+ AND t3.nspname = ANY (current_schemas(false))
188
+ ORDER BY c.conname
189
+
190
+ ActiveRecord::SchemaMigration Load (7.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
191
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
192
+  (3.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
193
+ FROM pg_constraint c
194
+ JOIN pg_class t1 ON c.conrelid = t1.oid
195
+ JOIN pg_class t2 ON c.confrelid = t2.oid
196
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
197
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
198
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
199
+ WHERE c.contype = 'f'
200
+ AND t1.relname = 'job_reflections'
201
+ AND t3.nspname = ANY (current_schemas(false))
202
+ ORDER BY c.conname
203
+ 
204
+  (2.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
205
+ FROM pg_constraint c
206
+ JOIN pg_class t1 ON c.conrelid = t1.oid
207
+ JOIN pg_class t2 ON c.confrelid = t2.oid
208
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
209
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
210
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
211
+ WHERE c.contype = 'f'
212
+ AND t1.relname = 'threads_pad_jobs'
213
+ AND t3.nspname = ANY (current_schemas(false))
214
+ ORDER BY c.conname
215
+
216
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
217
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
218
+  (2.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
219
+ FROM pg_constraint c
220
+ JOIN pg_class t1 ON c.conrelid = t1.oid
221
+ JOIN pg_class t2 ON c.confrelid = t2.oid
222
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
223
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
224
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
225
+ WHERE c.contype = 'f'
226
+ AND t1.relname = 'job_reflections'
227
+ AND t3.nspname = ANY (current_schemas(false))
228
+ ORDER BY c.conname
229
+ 
230
+  (2.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
231
+ FROM pg_constraint c
232
+ JOIN pg_class t1 ON c.conrelid = t1.oid
233
+ JOIN pg_class t2 ON c.confrelid = t2.oid
234
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
235
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
236
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
237
+ WHERE c.contype = 'f'
238
+ AND t1.relname = 'threads_pad_jobs'
239
+ AND t3.nspname = ANY (current_schemas(false))
240
+ ORDER BY c.conname
241
+
242
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
243
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
244
+  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
245
+ FROM pg_constraint c
246
+ JOIN pg_class t1 ON c.conrelid = t1.oid
247
+ JOIN pg_class t2 ON c.confrelid = t2.oid
248
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
249
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
250
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
251
+ WHERE c.contype = 'f'
252
+ AND t1.relname = 'job_reflections'
253
+ AND t3.nspname = ANY (current_schemas(false))
254
+ ORDER BY c.conname
255
+ 
256
+  (2.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
257
+ FROM pg_constraint c
258
+ JOIN pg_class t1 ON c.conrelid = t1.oid
259
+ JOIN pg_class t2 ON c.confrelid = t2.oid
260
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
261
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
262
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
263
+ WHERE c.contype = 'f'
264
+ AND t1.relname = 'threads_pad_jobs'
265
+ AND t3.nspname = ANY (current_schemas(false))
266
+ ORDER BY c.conname
267
+
268
+ ActiveRecord::SchemaMigration Load (11.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
269
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
270
+  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
271
+ FROM pg_constraint c
272
+ JOIN pg_class t1 ON c.conrelid = t1.oid
273
+ JOIN pg_class t2 ON c.confrelid = t2.oid
274
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
275
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
276
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
277
+ WHERE c.contype = 'f'
278
+ AND t1.relname = 'job_reflections'
279
+ AND t3.nspname = ANY (current_schemas(false))
280
+ ORDER BY c.conname
281
+ 
282
+  (8.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
283
+ FROM pg_constraint c
284
+ JOIN pg_class t1 ON c.conrelid = t1.oid
285
+ JOIN pg_class t2 ON c.confrelid = t2.oid
286
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
287
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
288
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
289
+ WHERE c.contype = 'f'
290
+ AND t1.relname = 'threads_pad_jobs'
291
+ AND t3.nspname = ANY (current_schemas(false))
292
+ ORDER BY c.conname
293
+
294
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
295
+  (15.4ms) DROP TABLE "job_reflections" CASCADE
296
+  (40.8ms) CREATE TABLE "job_reflections" ("id" serial primary key) 
297
+  (7.4ms) DROP TABLE "threads_pad_jobs" CASCADE
298
+  (74.3ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "max" integer, "current" integer, "min" integer) 
299
+  (39.4ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
300
+  (0.3ms) SELECT version FROM "schema_migrations"
301
+ SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
302
+  (16.4ms) DROP TABLE "job_reflections" CASCADE
303
+  (40.9ms) CREATE TABLE "job_reflections" ("id" serial primary key)
304
+  (7.5ms) DROP TABLE "threads_pad_jobs" CASCADE
305
+  (82.7ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "max" integer, "current" integer, "min" integer)
306
+  (47.2ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
307
+  (0.3ms) SELECT version FROM "schema_migrations"
308
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
309
+ ActiveRecord::SchemaMigration Load (11.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
310
+ Migrating to CreateThreadsPadJobs (20150806131428)
311
+  (5.2ms) BEGIN
312
+  (2.3ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer) 
313
+ PG::DuplicateTable: ERROR: relation "threads_pad_jobs" already exists
314
+ : CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer)
315
+  (0.1ms) ROLLBACK
316
+  (51.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
317
+  (47.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
318
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
319
+ Migrating to CreateThreadsPadJobs (20150806131428)
320
+  (0.1ms) BEGIN
321
+  (53.1ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer) 
322
+  (22.9ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
323
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150806131428"]]
324
+  (12.8ms) COMMIT
325
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
326
+  (3.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
327
+ FROM pg_constraint c
328
+ JOIN pg_class t1 ON c.conrelid = t1.oid
329
+ JOIN pg_class t2 ON c.confrelid = t2.oid
330
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
331
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
332
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
333
+ WHERE c.contype = 'f'
334
+ AND t1.relname = 'threads_pad_jobs'
335
+ AND t3.nspname = ANY (current_schemas(false))
336
+ ORDER BY c.conname
337
+
338
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
339
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
340
+ Migrating to CreateThreadsPadJobs (20150806131428)
341
+  (0.1ms) BEGIN
342
+  (84.7ms) DROP TABLE "threads_pad_jobs"
343
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20150806131428"]]
344
+  (46.6ms) COMMIT
345
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
346
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
347
+ Migrating to CreateThreadsPadJobs (20150807081439)
348
+  (0.2ms) BEGIN
349
+  (151.3ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean) 
350
+  (31.0ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
351
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150807081439"]]
352
+  (9.5ms) COMMIT
353
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
354
+  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
355
+ FROM pg_constraint c
356
+ JOIN pg_class t1 ON c.conrelid = t1.oid
357
+ JOIN pg_class t2 ON c.confrelid = t2.oid
358
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
359
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
360
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
361
+ WHERE c.contype = 'f'
362
+ AND t1.relname = 'threads_pad_jobs'
363
+ AND t3.nspname = ANY (current_schemas(false))
364
+ ORDER BY c.conname
365
+
366
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
367
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
368
+ Migrating to CreateThreadsPadJobs (20150807081439)
369
+  (0.1ms) BEGIN
370
+  (1.6ms) DROP TABLE "threads_pad_jobs"
371
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20150807081439"]]
372
+  (23.8ms) COMMIT
373
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
374
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
375
+ Migrating to CreateThreadsPadJobs (20150807082929)
376
+  (0.3ms) BEGIN
377
+  (71.5ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
378
+  (23.6ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
379
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150807082929"]]
380
+  (14.6ms) COMMIT
381
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
382
+  (3.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
383
+ FROM pg_constraint c
384
+ JOIN pg_class t1 ON c.conrelid = t1.oid
385
+ JOIN pg_class t2 ON c.confrelid = t2.oid
386
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
387
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
388
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
389
+ WHERE c.contype = 'f'
390
+ AND t1.relname = 'threads_pad_jobs'
391
+ AND t3.nspname = ANY (current_schemas(false))
392
+ ORDER BY c.conname
393
+
394
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
395
+ Migrating to CreateThreadsPadJobLogs (20150810135132)
396
+  (0.1ms) BEGIN
397
+  (67.9ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_id" integer, "level" integer, "msg" text) 
398
+  (23.5ms) CREATE INDEX "index_threads_pad_job_logs_on_job_id" ON "threads_pad_job_logs" ("job_id")
399
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150810135132"]]
400
+  (12.6ms) COMMIT
401
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
402
+  (2.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
403
+ FROM pg_constraint c
404
+ JOIN pg_class t1 ON c.conrelid = t1.oid
405
+ JOIN pg_class t2 ON c.confrelid = t2.oid
406
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
407
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
408
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
409
+ WHERE c.contype = 'f'
410
+ AND t1.relname = 'threads_pad_job_logs'
411
+ AND t3.nspname = ANY (current_schemas(false))
412
+ ORDER BY c.conname
413
+
414
+  (2.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
415
+ FROM pg_constraint c
416
+ JOIN pg_class t1 ON c.conrelid = t1.oid
417
+ JOIN pg_class t2 ON c.confrelid = t2.oid
418
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
419
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
420
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
421
+ WHERE c.contype = 'f'
422
+ AND t1.relname = 'threads_pad_jobs'
423
+ AND t3.nspname = ANY (current_schemas(false))
424
+ ORDER BY c.conname
425
+ 
426
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
427
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
428
+ Migrating to CreateThreadsPadJobLogs (20150810135132)
429
+  (0.1ms) BEGIN
430
+  (1.1ms) DROP TABLE "threads_pad_job_logs"
431
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20150810135132"]]
432
+  (20.1ms) COMMIT
433
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
434
+  (2.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
435
+ FROM pg_constraint c
436
+ JOIN pg_class t1 ON c.conrelid = t1.oid
437
+ JOIN pg_class t2 ON c.confrelid = t2.oid
438
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
439
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
440
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
441
+ WHERE c.contype = 'f'
442
+ AND t1.relname = 'threads_pad_jobs'
443
+ AND t3.nspname = ANY (current_schemas(false))
444
+ ORDER BY c.conname
445
+
446
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
447
+ Migrating to CreateThreadsPadJobLogs (20150810135853)
448
+  (0.2ms) BEGIN
449
+  (61.2ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text) 
450
+  (62.5ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
451
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150810135853"]]
452
+  (42.8ms) COMMIT
453
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
454
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
455
+ FROM pg_constraint c
456
+ JOIN pg_class t1 ON c.conrelid = t1.oid
457
+ JOIN pg_class t2 ON c.confrelid = t2.oid
458
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
459
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
460
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
461
+ WHERE c.contype = 'f'
462
+ AND t1.relname = 'threads_pad_job_logs'
463
+ AND t3.nspname = ANY (current_schemas(false))
464
+ ORDER BY c.conname
465
+
466
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
467
+ FROM pg_constraint c
468
+ JOIN pg_class t1 ON c.conrelid = t1.oid
469
+ JOIN pg_class t2 ON c.confrelid = t2.oid
470
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
471
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
472
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
473
+ WHERE c.contype = 'f'
474
+ AND t1.relname = 'threads_pad_jobs'
475
+ AND t3.nspname = ANY (current_schemas(false))
476
+ ORDER BY c.conname
477
+ 
478
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
479
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
480
+ Migrating to CreateThreadsPadJobLogs (20150810135853)
481
+  (0.1ms) BEGIN
482
+  (1.6ms) DROP TABLE "threads_pad_job_logs"
483
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20150810135853"]]
484
+  (7.0ms) COMMIT
485
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
486
+  (4.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
487
+ FROM pg_constraint c
488
+ JOIN pg_class t1 ON c.conrelid = t1.oid
489
+ JOIN pg_class t2 ON c.confrelid = t2.oid
490
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
491
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
492
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
493
+ WHERE c.contype = 'f'
494
+ AND t1.relname = 'threads_pad_jobs'
495
+ AND t3.nspname = ANY (current_schemas(false))
496
+ ORDER BY c.conname
497
+
498
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
499
+ Migrating to CreateThreadsPadJobLogs (20150810145650)
500
+  (0.1ms) BEGIN
501
+  (119.0ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL) 
502
+  (23.9ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
503
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150810145650"]]
504
+  (7.7ms) COMMIT
505
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
506
+  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
507
+ FROM pg_constraint c
508
+ JOIN pg_class t1 ON c.conrelid = t1.oid
509
+ JOIN pg_class t2 ON c.confrelid = t2.oid
510
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
511
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
512
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
513
+ WHERE c.contype = 'f'
514
+ AND t1.relname = 'threads_pad_job_logs'
515
+ AND t3.nspname = ANY (current_schemas(false))
516
+ ORDER BY c.conname
517
+
518
+  (2.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
519
+ FROM pg_constraint c
520
+ JOIN pg_class t1 ON c.conrelid = t1.oid
521
+ JOIN pg_class t2 ON c.confrelid = t2.oid
522
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
523
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
524
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
525
+ WHERE c.contype = 'f'
526
+ AND t1.relname = 'threads_pad_jobs'
527
+ AND t3.nspname = ANY (current_schemas(false))
528
+ ORDER BY c.conname
529
+ 
530
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
531
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
532
+ Migrating to CreateThreadsPadJobLogs (20150810145650)
533
+  (0.1ms) BEGIN
534
+  (28.7ms) DROP TABLE "threads_pad_job_logs"
535
+ SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20150810145650"]]
536
+  (16.5ms) COMMIT
537
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
538
+  (3.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
539
+ FROM pg_constraint c
540
+ JOIN pg_class t1 ON c.conrelid = t1.oid
541
+ JOIN pg_class t2 ON c.confrelid = t2.oid
542
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
543
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
544
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
545
+ WHERE c.contype = 'f'
546
+ AND t1.relname = 'threads_pad_jobs'
547
+ AND t3.nspname = ANY (current_schemas(false))
548
+ ORDER BY c.conname
549
+
550
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
551
+ Migrating to CreateThreadsPadJobLogs (20150812131736)
552
+  (0.1ms) BEGIN
553
+  (109.8ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL) 
554
+  (31.9ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
555
+  (0.4ms) CREATE SEQUENCE threads_pad_group_seq START 1
556
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150812131736"]]
557
+  (13.8ms) COMMIT
558
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
559
+  (2.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
560
+ FROM pg_constraint c
561
+ JOIN pg_class t1 ON c.conrelid = t1.oid
562
+ JOIN pg_class t2 ON c.confrelid = t2.oid
563
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
564
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
565
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
566
+ WHERE c.contype = 'f'
567
+ AND t1.relname = 'threads_pad_job_logs'
568
+ AND t3.nspname = ANY (current_schemas(false))
569
+ ORDER BY c.conname
570
+ 
571
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
572
+ FROM pg_constraint c
573
+ JOIN pg_class t1 ON c.conrelid = t1.oid
574
+ JOIN pg_class t2 ON c.confrelid = t2.oid
575
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
576
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
577
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
578
+ WHERE c.contype = 'f'
579
+ AND t1.relname = 'threads_pad_jobs'
580
+ AND t3.nspname = ANY (current_schemas(false))
581
+ ORDER BY c.conname
582
+
583
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
584
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
585
+ Migrating to CreateThreadsPadJobLogs (20150812131736)
586
+  (0.1ms) BEGIN
587
+  (1.4ms) DROP TABLE "threads_pad_job_logs"
588
+  (0.5ms) DROP SEQUENCE threads_pad_group_seq
589
+ SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20150812131736"]]
590
+  (20.0ms) COMMIT
591
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
592
+  (3.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
593
+ FROM pg_constraint c
594
+ JOIN pg_class t1 ON c.conrelid = t1.oid
595
+ JOIN pg_class t2 ON c.confrelid = t2.oid
596
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
597
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
598
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
599
+ WHERE c.contype = 'f'
600
+ AND t1.relname = 'threads_pad_jobs'
601
+ AND t3.nspname = ANY (current_schemas(false))
602
+ ORDER BY c.conname
603
+ 
604
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
605
+ Migrating to CreateThreadsPadJobLogs (20150812131736)
606
+  (0.2ms) BEGIN
607
+  (67.6ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL) 
608
+  (31.5ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
609
+  (0.6ms) CREATE SEQUENCE threads_pad_group_seq START 1
610
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150812131736"]]
611
+  (15.3ms) COMMIT
612
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
613
+  (3.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
614
+ FROM pg_constraint c
615
+ JOIN pg_class t1 ON c.conrelid = t1.oid
616
+ JOIN pg_class t2 ON c.confrelid = t2.oid
617
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
618
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
619
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
620
+ WHERE c.contype = 'f'
621
+ AND t1.relname = 'threads_pad_job_logs'
622
+ AND t3.nspname = ANY (current_schemas(false))
623
+ ORDER BY c.conname
624
+ 
625
+  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
626
+ FROM pg_constraint c
627
+ JOIN pg_class t1 ON c.conrelid = t1.oid
628
+ JOIN pg_class t2 ON c.confrelid = t2.oid
629
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
630
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
631
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
632
+ WHERE c.contype = 'f'
633
+ AND t1.relname = 'threads_pad_jobs'
634
+ AND t3.nspname = ANY (current_schemas(false))
635
+ ORDER BY c.conname
636
+
637
+  (215.7ms) CREATE TABLE "threads_pad_job_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" datetime NOT NULL) 
638
+  (0.2ms) select sqlite_version(*)
639
+  (213.1ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
640
+  (315.8ms) DROP TABLE "threads_pad_jobs"
641
+  (199.5ms) CREATE TABLE "threads_pad_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "terminated" boolean, "done" boolean, "result" varchar, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
642
+  (240.9ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
643
+  (0.6ms) SELECT version FROM "schema_migrations"
644
+  (238.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150812131736')
645
+  (183.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150807082929')
646
+  (227.2ms) CREATE TABLE "threads_pad_job_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" datetime NOT NULL)
647
+  (0.2ms) select sqlite_version(*)
648
+  (271.5ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
649
+  (211.9ms) DROP TABLE "threads_pad_jobs"
650
+  (287.9ms) CREATE TABLE "threads_pad_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "terminated" boolean, "done" boolean, "result" varchar, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean)
651
+  (313.1ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
652
+  (0.2ms) SELECT version FROM "schema_migrations"
653
+  (219.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150812131736')
654
+  (238.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150807082929')
655
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
656
+  (231.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
657
+  (0.3ms) select sqlite_version(*)
658
+  (230.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
659
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
660
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
661
+ Migrating to CreateThreadsPadJobs (20160222144531)
662
+  (0.1ms) begin transaction
663
+  (0.7ms) CREATE TABLE "threads_pad_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "terminated" boolean, "done" boolean, "result" varchar, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
664
+  (0.1ms) select sqlite_version(*)
665
+  (0.1ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
666
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160222144531"]]
667
+  (198.5ms) commit transaction
668
+ Migrating to CreateThreadsPadJobLogs (20160222144532)
669
+  (0.2ms) begin transaction
670
+  (1.0ms) CREATE TABLE "threads_pad_job_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" datetime NOT NULL) 
671
+  (0.2ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
672
+  (0.2ms) CREATE SEQUENCE threads_pad_group_seq START 1
673
+ SQLite3::SQLException: near "SEQUENCE": syntax error: CREATE SEQUENCE threads_pad_group_seq START 1
674
+  (0.2ms) rollback transaction
675
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
676
+ Migrating to CreateThreadsPadJobs (20160222144816)
677
+  (0.1ms) begin transaction
678
+  (0.1ms) CREATE TABLE "threads_pad_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "terminated" boolean, "done" boolean, "result" varchar, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
679
+  (0.1ms) rollback transaction
680
+  (0.2ms) SELECT version FROM "schema_migrations"
681
+  (207.0ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
682
+  (234.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
683
+  (0.2ms) select sqlite_version(*)
684
+  (205.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
685
+  (0.5ms) SELECT version FROM "schema_migrations"
686
+  (239.6ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
687
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
688
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
689
+ Migrating to CreateThreadsPadJobs (20160222144816)
690
+  (0.1ms) begin transaction
691
+  (0.2ms) CREATE TABLE "threads_pad_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "terminated" boolean, "done" boolean, "result" varchar, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
692
+  (0.1ms) rollback transaction
693
+  (182.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
694
+  (0.2ms) select sqlite_version(*)
695
+  (238.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
696
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
697
+ Migrating to CreateThreadsPadJobs (20160222144816)
698
+  (0.1ms) begin transaction
699
+  (0.9ms) CREATE TABLE "threads_pad_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "terminated" boolean, "done" boolean, "result" varchar, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean)
700
+  (0.1ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
701
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160222144816"]]
702
+  (208.1ms) commit transaction
703
+ Migrating to CreateThreadsPadJobLogs (20160222144817)
704
+  (0.2ms) begin transaction
705
+  (21.6ms) CREATE TABLE "threads_pad_job_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" datetime NOT NULL) 
706
+  (0.1ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
707
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160222144817"]]
708
+  (213.6ms) commit transaction
709
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
710
+  (0.2ms) SELECT sql
711
+ FROM sqlite_master
712
+ WHERE name='index_threads_pad_job_logs_on_job_reflection_id' AND type='index'
713
+ UNION ALL
714
+ SELECT sql
715
+ FROM sqlite_temp_master
716
+ WHERE name='index_threads_pad_job_logs_on_job_reflection_id' AND type='index'
717
+
718
+  (0.2ms)  SELECT sql
719
+ FROM sqlite_master
720
+ WHERE name='index_threads_pad_jobs_on_group_id' AND type='index'
721
+ UNION ALL
722
+ SELECT sql
723
+ FROM sqlite_temp_master
724
+ WHERE name='index_threads_pad_jobs_on_group_id' AND type='index'
725
+ 
726
+ ActiveRecord::SchemaMigration Load (12.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
727
+ Migrating to CreateThreadsPadJobs (20160222144816)
728
+  (0.1ms) BEGIN
729
+  (54.6ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
730
+  (0.2ms) ROLLBACK
731
+  (146.8ms) DROP TABLE "threads_pad_job_logs" CASCADE
732
+  (179.7ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL)
733
+  (44.7ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
734
+  (29.1ms) DROP TABLE "threads_pad_jobs" CASCADE
735
+  (94.3ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
736
+  (39.6ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
737
+  (0.3ms) SELECT version FROM "schema_migrations"
738
+  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160222144817')
739
+  (8.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160222144816')
740
+  (5.9ms) DROP TABLE "threads_pad_job_logs" CASCADE
741
+  (58.3ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL) 
742
+  (36.7ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
743
+  (7.2ms) DROP TABLE "threads_pad_jobs" CASCADE
744
+  (73.5ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean)
745
+  (39.6ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
746
+  (0.3ms) SELECT version FROM "schema_migrations"
747
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
748
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
749
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
750
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
751
+ FROM pg_constraint c
752
+ JOIN pg_class t1 ON c.conrelid = t1.oid
753
+ JOIN pg_class t2 ON c.confrelid = t2.oid
754
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
755
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
756
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
757
+ WHERE c.contype = 'f'
758
+ AND t1.relname = 'threads_pad_job_logs'
759
+ AND t3.nspname = ANY (current_schemas(false))
760
+ ORDER BY c.conname
761
+ 
762
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
763
+ FROM pg_constraint c
764
+ JOIN pg_class t1 ON c.conrelid = t1.oid
765
+ JOIN pg_class t2 ON c.confrelid = t2.oid
766
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
767
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
768
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
769
+ WHERE c.contype = 'f'
770
+ AND t1.relname = 'threads_pad_jobs'
771
+ AND t3.nspname = ANY (current_schemas(false))
772
+ ORDER BY c.conname
773
+
774
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
775
+  (81.7ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL)
776
+  (44.1ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" USING btree ("job_reflection_id")
777
+  (81.9ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean)
778
+  (53.2ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
779
+  (47.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
780
+  (45.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
781
+  (0.4ms) SELECT version FROM "schema_migrations"
782
+  (6.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160222144817')
783
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
784
+  (82.8ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL) 
785
+  (47.4ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" USING btree ("job_reflection_id")
786
+  (73.6ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
787
+  (39.2ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
788
+  (40.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
789
+  (38.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
790
+  (0.5ms) SELECT version FROM "schema_migrations"
791
+  (6.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160222144817')
792
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
793
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
794
+ Migrating to CreateThreadsPadJobs (20160224142849)
795
+  (0.2ms) BEGIN
796
+  (2.0ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
797
+  (0.1ms) ROLLBACK
798
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
799
+ Migrating to CreateThreadsPadJobs (20160224142849)
800
+  (0.3ms) BEGIN
801
+  (2.5ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
802
+  (0.2ms) ROLLBACK
803
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
804
+  (71.0ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL)
805
+  (47.7ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" USING btree ("job_reflection_id")
806
+  (82.0ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean)
807
+  (39.7ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
808
+  (47.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
809
+  (39.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
810
+  (0.6ms) SELECT version FROM "schema_migrations"
811
+  (6.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160222144817')
812
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
813
+  (95.8ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL) 
814
+  (44.1ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" USING btree ("job_reflection_id")
815
+  (82.0ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
816
+  (54.8ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" USING btree ("group_id")
817
+  (48.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
818
+  (46.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
819
+  (0.4ms) SELECT version FROM "schema_migrations"
820
+  (7.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160222144817')
821
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
822
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
823
+ Migrating to CreateThreadsPadJobs (20160224142849)
824
+  (0.2ms) BEGIN
825
+  (1.9ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
826
+  (0.1ms) ROLLBACK
827
+  (70.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
828
+  (55.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
829
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
830
+ Migrating to CreateThreadsPadJobs (20160224142849)
831
+  (0.3ms) BEGIN
832
+  (66.7ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
833
+  (23.3ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
834
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224142849"]]
835
+  (12.8ms) COMMIT
836
+ Migrating to CreateThreadsPadJobLogs (20160224142850)
837
+  (0.2ms) BEGIN
838
+  (71.0ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL)
839
+  (23.5ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
840
+  (0.6ms) CREATE SEQUENCE threads_pad_group_seq START 1
841
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224142850"]]
842
+  (16.4ms) COMMIT
843
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
844
+  (3.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
845
+ FROM pg_constraint c
846
+ JOIN pg_class t1 ON c.conrelid = t1.oid
847
+ JOIN pg_class t2 ON c.confrelid = t2.oid
848
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
849
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
850
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
851
+ WHERE c.contype = 'f'
852
+ AND t1.relname = 'threads_pad_job_logs'
853
+ AND t3.nspname = ANY (current_schemas(false))
854
+ ORDER BY c.conname
855
+
856
+  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
857
+ FROM pg_constraint c
858
+ JOIN pg_class t1 ON c.conrelid = t1.oid
859
+ JOIN pg_class t2 ON c.confrelid = t2.oid
860
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
861
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
862
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
863
+ WHERE c.contype = 'f'
864
+ AND t1.relname = 'threads_pad_jobs'
865
+ AND t3.nspname = ANY (current_schemas(false))
866
+ ORDER BY c.conname
867
+ 
868
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
869
+ Migrating to CreateThreadsPadJobs (20160224143254)
870
+  (0.2ms) BEGIN
871
+  (1.9ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "thread_id" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
872
+  (0.1ms) ROLLBACK
873
+  (52.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
874
+  (47.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
875
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
876
+ Migrating to CreateThreadsPadJobs (20160224143254)
877
+  (0.1ms) BEGIN
878
+  (52.8ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "thread_id" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
879
+  (22.9ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
880
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224143254"]]
881
+  (11.6ms) COMMIT
882
+ Migrating to CreateThreadsPadJobLogs (20160224143255)
883
+  (0.2ms) BEGIN
884
+  (64.0ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL)
885
+  (31.9ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
886
+  (0.6ms) CREATE SEQUENCE threads_pad_group_seq START 1
887
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224143255"]]
888
+  (12.5ms) COMMIT
889
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
890
+  (3.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
891
+ FROM pg_constraint c
892
+ JOIN pg_class t1 ON c.conrelid = t1.oid
893
+ JOIN pg_class t2 ON c.confrelid = t2.oid
894
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
895
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
896
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
897
+ WHERE c.contype = 'f'
898
+ AND t1.relname = 'threads_pad_job_logs'
899
+ AND t3.nspname = ANY (current_schemas(false))
900
+ ORDER BY c.conname
901
+
902
+  (3.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
903
+ FROM pg_constraint c
904
+ JOIN pg_class t1 ON c.conrelid = t1.oid
905
+ JOIN pg_class t2 ON c.confrelid = t2.oid
906
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
907
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
908
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
909
+ WHERE c.contype = 'f'
910
+ AND t1.relname = 'threads_pad_jobs'
911
+ AND t3.nspname = ANY (current_schemas(false))
912
+ ORDER BY c.conname
913
+ 
914
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
915
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
916
+ Migrating to CreateThreadsPadJobLogs (20160224143255)
917
+  (0.2ms) BEGIN
918
+  (2.2ms) DROP TABLE "threads_pad_job_logs"
919
+  (0.3ms) DROP SEQUENCE threads_pad_group_seq
920
+ SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160224143255"]]
921
+  (12.4ms) COMMIT
922
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
923
+  (3.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
924
+ FROM pg_constraint c
925
+ JOIN pg_class t1 ON c.conrelid = t1.oid
926
+ JOIN pg_class t2 ON c.confrelid = t2.oid
927
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
928
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
929
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
930
+ WHERE c.contype = 'f'
931
+ AND t1.relname = 'threads_pad_jobs'
932
+ AND t3.nspname = ANY (current_schemas(false))
933
+ ORDER BY c.conname
934
+ 
935
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
936
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
937
+ Migrating to CreateThreadsPadJobs (20160224143254)
938
+  (0.2ms) BEGIN
939
+  (2.0ms) DROP TABLE "threads_pad_jobs"
940
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160224143254"]]
941
+  (21.0ms) COMMIT
942
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
943
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
944
+ Migrating to CreateThreadsPadJobs (20160224143254)
945
+  (0.2ms) BEGIN
946
+  (68.7ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "thread_id" bigint, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
947
+  (30.2ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
948
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224143254"]]
949
+  (17.3ms) COMMIT
950
+ Migrating to CreateThreadsPadJobLogs (20160224143255)
951
+  (0.2ms) BEGIN
952
+  (53.9ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL)
953
+  (30.7ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
954
+  (0.8ms) CREATE SEQUENCE threads_pad_group_seq START 1
955
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224143255"]]
956
+  (15.6ms) COMMIT
957
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
958
+  (3.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
959
+ FROM pg_constraint c
960
+ JOIN pg_class t1 ON c.conrelid = t1.oid
961
+ JOIN pg_class t2 ON c.confrelid = t2.oid
962
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
963
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
964
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
965
+ WHERE c.contype = 'f'
966
+ AND t1.relname = 'threads_pad_job_logs'
967
+ AND t3.nspname = ANY (current_schemas(false))
968
+ ORDER BY c.conname
969
+
970
+  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
971
+ FROM pg_constraint c
972
+ JOIN pg_class t1 ON c.conrelid = t1.oid
973
+ JOIN pg_class t2 ON c.confrelid = t2.oid
974
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
975
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
976
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
977
+ WHERE c.contype = 'f'
978
+ AND t1.relname = 'threads_pad_jobs'
979
+ AND t3.nspname = ANY (current_schemas(false))
980
+ ORDER BY c.conname
981
+ 
982
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
983
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
984
+ Migrating to CreateThreadsPadJobLogs (20160224143255)
985
+  (0.1ms) BEGIN
986
+  (1.6ms) DROP TABLE "threads_pad_job_logs"
987
+  (0.3ms) DROP SEQUENCE threads_pad_group_seq
988
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160224143255"]]
989
+  (16.3ms) COMMIT
990
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
991
+  (2.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
992
+ FROM pg_constraint c
993
+ JOIN pg_class t1 ON c.conrelid = t1.oid
994
+ JOIN pg_class t2 ON c.confrelid = t2.oid
995
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
996
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
997
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
998
+ WHERE c.contype = 'f'
999
+ AND t1.relname = 'threads_pad_jobs'
1000
+ AND t3.nspname = ANY (current_schemas(false))
1001
+ ORDER BY c.conname
1002
+ 
1003
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1004
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1005
+ Migrating to CreateThreadsPadJobs (20160224143254)
1006
+  (0.1ms) BEGIN
1007
+  (1.2ms) DROP TABLE "threads_pad_jobs"
1008
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160224143254"]]
1009
+  (20.2ms) COMMIT
1010
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1011
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1012
+ Migrating to CreateThreadsPadJobs (20160224143254)
1013
+  (0.1ms) BEGIN
1014
+  (83.0ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "thread_id" character varying, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
1015
+  (29.8ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
1016
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224143254"]]
1017
+  (13.6ms) COMMIT
1018
+ Migrating to CreateThreadsPadJobLogs (20160224143255)
1019
+  (0.4ms) BEGIN
1020
+  (64.2ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL)
1021
+  (31.7ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
1022
+  (0.6ms) CREATE SEQUENCE threads_pad_group_seq START 1
1023
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224143255"]]
1024
+  (11.3ms) COMMIT
1025
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1026
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1027
+ FROM pg_constraint c
1028
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1029
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1030
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1031
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1032
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1033
+ WHERE c.contype = 'f'
1034
+ AND t1.relname = 'threads_pad_job_logs'
1035
+ AND t3.nspname = ANY (current_schemas(false))
1036
+ ORDER BY c.conname
1037
+
1038
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1039
+ FROM pg_constraint c
1040
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1041
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1042
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1043
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1044
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1045
+ WHERE c.contype = 'f'
1046
+ AND t1.relname = 'threads_pad_jobs'
1047
+ AND t3.nspname = ANY (current_schemas(false))
1048
+ ORDER BY c.conname
1049
+ 
1050
+  (42.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1051
+  (47.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1052
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
1053
+ Migrating to CreateThreadsPadJobs (20160224143254)
1054
+  (0.3ms) BEGIN
1055
+  (72.7ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "thread_id" character varying, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
1056
+  (24.5ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
1057
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224143254"]]
1058
+  (9.8ms) COMMIT
1059
+ Migrating to CreateThreadsPadJobLogs (20160224143255)
1060
+  (0.2ms) BEGIN
1061
+  (65.5ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL)
1062
+  (23.8ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
1063
+  (0.6ms) CREATE SEQUENCE threads_pad_group_seq START 1
1064
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160224143255"]]
1065
+  (12.9ms) COMMIT
1066
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1067
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1068
+ FROM pg_constraint c
1069
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1070
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1071
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1072
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1073
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1074
+ WHERE c.contype = 'f'
1075
+ AND t1.relname = 'threads_pad_job_logs'
1076
+ AND t3.nspname = ANY (current_schemas(false))
1077
+ ORDER BY c.conname
1078
+
1079
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1080
+ FROM pg_constraint c
1081
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1082
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1083
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1084
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1085
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1086
+ WHERE c.contype = 'f'
1087
+ AND t1.relname = 'threads_pad_jobs'
1088
+ AND t3.nspname = ANY (current_schemas(false))
1089
+ ORDER BY c.conname
1090
+ 
1091
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1092
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1093
+ Migrating to CreateThreadsPadJobLogs (20160224143255)
1094
+  (0.1ms) BEGIN
1095
+  (74.8ms) DROP TABLE "threads_pad_job_logs"
1096
+  (0.3ms) DROP SEQUENCE threads_pad_group_seq
1097
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160224143255"]]
1098
+  (33.3ms) COMMIT
1099
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1100
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1101
+ FROM pg_constraint c
1102
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1103
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1104
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1105
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1106
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1107
+ WHERE c.contype = 'f'
1108
+ AND t1.relname = 'threads_pad_jobs'
1109
+ AND t3.nspname = ANY (current_schemas(false))
1110
+ ORDER BY c.conname
1111
+ 
1112
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1113
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1114
+ Migrating to CreateThreadsPadJobs (20160224143254)
1115
+  (0.1ms) BEGIN
1116
+  (1.6ms) DROP TABLE "threads_pad_jobs"
1117
+ SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160224143254"]]
1118
+  (15.3ms) COMMIT
1119
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1120
+  (76.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1121
+  (72.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1122
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1123
+ Migrating to CreateThreadsPadJobs (20160229125823)
1124
+  (0.2ms) BEGIN
1125
+  (66.2ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean) 
1126
+  (31.7ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
1127
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160229125823"]]
1128
+  (13.0ms) COMMIT
1129
+ Migrating to CreateThreadsPadJobLogs (20160229125824)
1130
+  (0.2ms) BEGIN
1131
+  (78.4ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL, "group_id" integer)
1132
+  (29.1ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
1133
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160229125824"]]
1134
+  (9.5ms) COMMIT
1135
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1136
+  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1137
+ FROM pg_constraint c
1138
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1139
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1140
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1141
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1142
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1143
+ WHERE c.contype = 'f'
1144
+ AND t1.relname = 'threads_pad_job_logs'
1145
+ AND t3.nspname = ANY (current_schemas(false))
1146
+ ORDER BY c.conname
1147
+ 
1148
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1149
+ FROM pg_constraint c
1150
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1151
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1152
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1153
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1154
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1155
+ WHERE c.contype = 'f'
1156
+ AND t1.relname = 'threads_pad_jobs'
1157
+ AND t3.nspname = ANY (current_schemas(false))
1158
+ ORDER BY c.conname
1159
+
1160
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1161
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1162
+ Migrating to CreateThreadsPadJobLogs (20160229125824)
1163
+  (0.2ms) BEGIN
1164
+  (2.0ms) DROP TABLE "threads_pad_job_logs"
1165
+ SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160229125824"]]
1166
+  (15.6ms) COMMIT
1167
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1168
+  (3.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1169
+ FROM pg_constraint c
1170
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1171
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1172
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1173
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1174
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1175
+ WHERE c.contype = 'f'
1176
+ AND t1.relname = 'threads_pad_jobs'
1177
+ AND t3.nspname = ANY (current_schemas(false))
1178
+ ORDER BY c.conname
1179
+
1180
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1181
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1182
+ Migrating to CreateThreadsPadJobs (20160229125823)
1183
+  (0.1ms) BEGIN
1184
+  (1.6ms) DROP TABLE "threads_pad_jobs"
1185
+ SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160229125823"]]
1186
+  (13.1ms) COMMIT
1187
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1188
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1189
+ Migrating to CreateThreadsPadJobs (20160229125823)
1190
+  (0.2ms) BEGIN
1191
+  (83.6ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean, "thread_id" character varying) 
1192
+  (31.4ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
1193
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160229125823"]]
1194
+  (13.2ms) COMMIT
1195
+ Migrating to CreateThreadsPadJobLogs (20160229125824)
1196
+  (0.3ms) BEGIN
1197
+  (60.8ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL, "group_id" integer)
1198
+  (42.6ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
1199
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160229125824"]]
1200
+  (6.6ms) COMMIT
1201
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1202
+  (3.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1203
+ FROM pg_constraint c
1204
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1205
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1206
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1207
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1208
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1209
+ WHERE c.contype = 'f'
1210
+ AND t1.relname = 'threads_pad_job_logs'
1211
+ AND t3.nspname = ANY (current_schemas(false))
1212
+ ORDER BY c.conname
1213
+ 
1214
+  (3.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1215
+ FROM pg_constraint c
1216
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1217
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1218
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1219
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1220
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1221
+ WHERE c.contype = 'f'
1222
+ AND t1.relname = 'threads_pad_jobs'
1223
+ AND t3.nspname = ANY (current_schemas(false))
1224
+ ORDER BY c.conname
1225
+
1226
+  (43.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1227
+  (44.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1228
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
1229
+ Migrating to CreateThreadsPadJobs (20160229125823)
1230
+  (0.3ms) BEGIN
1231
+  (53.8ms) CREATE TABLE "threads_pad_jobs" ("id" serial primary key, "terminated" boolean, "done" boolean, "result" character varying, "group_id" integer, "integer" integer, "max" integer, "current" integer, "min" integer, "started" boolean, "destroy_on_finish" boolean, "thread_id" character varying) 
1232
+  (32.8ms) CREATE INDEX "index_threads_pad_jobs_on_group_id" ON "threads_pad_jobs" ("group_id")
1233
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160229125823"]]
1234
+  (13.6ms) COMMIT
1235
+ Migrating to CreateThreadsPadJobLogs (20160229125824)
1236
+  (0.2ms) BEGIN
1237
+  (73.4ms) CREATE TABLE "threads_pad_job_logs" ("id" serial primary key, "job_reflection_id" integer, "level" integer, "msg" text, "created_at" timestamp NOT NULL, "group_id" integer)
1238
+  (31.8ms) CREATE INDEX "index_threads_pad_job_logs_on_job_reflection_id" ON "threads_pad_job_logs" ("job_reflection_id")
1239
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160229125824"]]
1240
+  (12.8ms) COMMIT
1241
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1242
+  (2.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1243
+ FROM pg_constraint c
1244
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1245
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1246
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1247
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1248
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1249
+ WHERE c.contype = 'f'
1250
+ AND t1.relname = 'threads_pad_job_logs'
1251
+ AND t3.nspname = ANY (current_schemas(false))
1252
+ ORDER BY c.conname
1253
+ 
1254
+  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1255
+ FROM pg_constraint c
1256
+ JOIN pg_class t1 ON c.conrelid = t1.oid
1257
+ JOIN pg_class t2 ON c.confrelid = t2.oid
1258
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
1259
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
1260
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
1261
+ WHERE c.contype = 'f'
1262
+ AND t1.relname = 'threads_pad_jobs'
1263
+ AND t3.nspname = ANY (current_schemas(false))
1264
+ ORDER BY c.conname
1265
+