activerecord_translatable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,56 +1,224 @@
1
1
  Connecting to database specified by database.yml
2
2
  Connecting to database specified by database.yml
3
- Connecting to database specified by database.yml
4
-  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
5
-  (4.0ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
3
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4
+ Migrating to CreateSomethings (20121015083259)
5
+ Migrating to CreateFoo (20130124094113)
6
+  (0.1ms) BEGIN
7
+  (25.1ms) CREATE TABLE "foos" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
8
+  (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130124094113')
9
+  (0.7ms) COMMIT
10
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
11
+ PK and serial sequence (15.2ms)  SELECT attr.attname, seq.relname
12
+ FROM pg_class seq,
13
+ pg_attribute attr,
14
+ pg_depend dep,
15
+ pg_namespace name,
16
+ pg_constraint cons
17
+ WHERE seq.oid = dep.objid
18
+ AND seq.relkind = 'S'
19
+ AND attr.attrelid = dep.refobjid
20
+ AND attr.attnum = dep.refobjsubid
21
+ AND attr.attrelid = cons.conrelid
22
+ AND attr.attnum = cons.conkey[1]
23
+ AND cons.contype = 'p'
24
+ AND dep.refobjid = '"foos"'::regclass
25
+ 
26
+  (7.3ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
6
27
  FROM pg_class t
7
28
  INNER JOIN pg_index d ON t.oid = d.indrelid
8
29
  INNER JOIN pg_class i ON d.indexrelid = i.oid
9
30
  WHERE i.relkind = 'i'
10
31
  AND d.indisprimary = 'f'
11
- AND t.relname = 'schema_migrations'
32
+ AND t.relname = 'foos'
33
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
34
+ ORDER BY i.relname
35
+
36
+ PK and serial sequence (1.7ms)  SELECT attr.attname, seq.relname
37
+ FROM pg_class seq,
38
+ pg_attribute attr,
39
+ pg_depend dep,
40
+ pg_namespace name,
41
+ pg_constraint cons
42
+ WHERE seq.oid = dep.objid
43
+ AND seq.relkind = 'S'
44
+ AND attr.attrelid = dep.refobjid
45
+ AND attr.attnum = dep.refobjsubid
46
+ AND attr.attrelid = cons.conrelid
47
+ AND attr.attnum = cons.conkey[1]
48
+ AND cons.contype = 'p'
49
+ AND dep.refobjid = '"somethings"'::regclass
50
+ 
51
+  (0.8ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
52
+ FROM pg_class t
53
+ INNER JOIN pg_index d ON t.oid = d.indrelid
54
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
55
+ WHERE i.relkind = 'i'
56
+ AND d.indisprimary = 'f'
57
+ AND t.relname = 'somethings'
12
58
  AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
13
59
  ORDER BY i.relname
14
60
 
15
-  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
16
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
17
- Migrating to CreateSomethings (20121015083259)
18
-  (0.1ms) BEGIN
19
-  (0.2ms) ROLLBACK
20
61
  Connecting to database specified by database.yml
21
62
   (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
22
- Migrating to CreateSomethings (20121015083259)
23
-  (0.1ms) BEGIN
24
-  (0.2ms) ROLLBACK
25
- Connecting to database specified by database.yml
26
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
27
- Migrating to CreateSomethings (20121015083259)
28
-  (0.1ms) BEGIN
29
-  (0.3ms) ROLLBACK
63
+  (301.3ms) DROP DATABASE IF EXISTS "translatable_test"
64
+  (354.3ms) CREATE DATABASE "translatable_test" ENCODING = 'unicode'
65
+  (6.7ms) CREATE TABLE "foos" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
66
+  (3.3ms) CREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
67
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
68
+  (2.3ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
69
+ FROM pg_class t
70
+ INNER JOIN pg_index d ON t.oid = d.indrelid
71
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
72
+ WHERE i.relkind = 'i'
73
+ AND d.indisprimary = 'f'
74
+ AND t.relname = 'schema_migrations'
75
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
76
+ ORDER BY i.relname
77
+ 
78
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
79
+  (0.4ms) SELECT version FROM "schema_migrations"
80
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124094113')
81
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20121015083259')
30
82
  Connecting to database specified by database.yml
31
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
32
- Migrating to CreateSomethings (20121015083259)
33
-  (0.1ms) BEGIN
34
-  (0.2ms) ROLLBACK
35
83
  Connecting to database specified by database.yml
36
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
84
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
37
85
  Migrating to CreateSomethings (20121015083259)
38
-  (0.1ms) BEGIN
39
-  (0.1ms) ROLLBACK
86
+ Migrating to CreateFoo (20130124094113)
87
+ Migrating to CreateNoarraythings (20130124100555)
88
+  (0.2ms) BEGIN
89
+  (188.6ms) CREATE TABLE "noarraythings" ("id" serial primary key, "locales" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
90
+  (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130124100555')
91
+  (0.7ms) COMMIT
92
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
93
+ PK and serial sequence (16.9ms)  SELECT attr.attname, seq.relname
94
+ FROM pg_class seq,
95
+ pg_attribute attr,
96
+ pg_depend dep,
97
+ pg_namespace name,
98
+ pg_constraint cons
99
+ WHERE seq.oid = dep.objid
100
+ AND seq.relkind = 'S'
101
+ AND attr.attrelid = dep.refobjid
102
+ AND attr.attnum = dep.refobjsubid
103
+ AND attr.attrelid = cons.conrelid
104
+ AND attr.attnum = cons.conkey[1]
105
+ AND cons.contype = 'p'
106
+ AND dep.refobjid = '"foos"'::regclass
107
+ 
108
+  (3.4ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
109
+ FROM pg_class t
110
+ INNER JOIN pg_index d ON t.oid = d.indrelid
111
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
112
+ WHERE i.relkind = 'i'
113
+ AND d.indisprimary = 'f'
114
+ AND t.relname = 'foos'
115
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
116
+ ORDER BY i.relname
117
+
118
+ PK and serial sequence (2.4ms)  SELECT attr.attname, seq.relname
119
+ FROM pg_class seq,
120
+ pg_attribute attr,
121
+ pg_depend dep,
122
+ pg_namespace name,
123
+ pg_constraint cons
124
+ WHERE seq.oid = dep.objid
125
+ AND seq.relkind = 'S'
126
+ AND attr.attrelid = dep.refobjid
127
+ AND attr.attnum = dep.refobjsubid
128
+ AND attr.attrelid = cons.conrelid
129
+ AND attr.attnum = cons.conkey[1]
130
+ AND cons.contype = 'p'
131
+ AND dep.refobjid = '"noarraythings"'::regclass
132
+ 
133
+  (1.0ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
134
+ FROM pg_class t
135
+ INNER JOIN pg_index d ON t.oid = d.indrelid
136
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
137
+ WHERE i.relkind = 'i'
138
+ AND d.indisprimary = 'f'
139
+ AND t.relname = 'noarraythings'
140
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
141
+ ORDER BY i.relname
142
+
143
+ PK and serial sequence (1.8ms)  SELECT attr.attname, seq.relname
144
+ FROM pg_class seq,
145
+ pg_attribute attr,
146
+ pg_depend dep,
147
+ pg_namespace name,
148
+ pg_constraint cons
149
+ WHERE seq.oid = dep.objid
150
+ AND seq.relkind = 'S'
151
+ AND attr.attrelid = dep.refobjid
152
+ AND attr.attnum = dep.refobjsubid
153
+ AND attr.attrelid = cons.conrelid
154
+ AND attr.attnum = cons.conkey[1]
155
+ AND cons.contype = 'p'
156
+ AND dep.refobjid = '"somethings"'::regclass
157
+ 
158
+  (0.9ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
159
+ FROM pg_class t
160
+ INNER JOIN pg_index d ON t.oid = d.indrelid
161
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
162
+ WHERE i.relkind = 'i'
163
+ AND d.indisprimary = 'f'
164
+ AND t.relname = 'somethings'
165
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
166
+ ORDER BY i.relname
167
+
40
168
  Connecting to database specified by database.yml
41
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
42
- Migrating to CreateSomethings (20121015083259)
43
-  (0.1ms) BEGIN
44
-  (0.1ms) ROLLBACK
169
+  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
170
+  (459.1ms) DROP DATABASE IF EXISTS "translatable_test"
171
+  (335.2ms) CREATE DATABASE "translatable_test" ENCODING = 'unicode'
172
+  (6.9ms) CREATE TABLE "foos" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
173
+  (3.0ms) CREATE TABLE "noarraythings" ("id" serial primary key, "locales" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
174
+  (3.7ms) CREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
175
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
176
+  (2.9ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
177
+ FROM pg_class t
178
+ INNER JOIN pg_index d ON t.oid = d.indrelid
179
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
180
+ WHERE i.relkind = 'i'
181
+ AND d.indisprimary = 'f'
182
+ AND t.relname = 'schema_migrations'
183
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
184
+ ORDER BY i.relname
185
+
186
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
187
+  (0.3ms) SELECT version FROM "schema_migrations"
188
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124100555')
189
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20121015083259')
190
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124094113')
45
191
  Connecting to database specified by database.yml
46
-  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
192
+  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
193
+  (2.6ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
194
+ FROM pg_class t
195
+ INNER JOIN pg_index d ON t.oid = d.indrelid
196
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
197
+ WHERE i.relkind = 'i'
198
+ AND d.indisprimary = 'f'
199
+ AND t.relname = 'schema_migrations'
200
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
201
+ ORDER BY i.relname
202
+
203
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
204
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
47
205
  Migrating to CreateSomethings (20121015083259)
48
-  (0.1ms) BEGIN
49
-  (8.4ms) CREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
50
-  (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121015083259')
51
-  (0.6ms) COMMIT
52
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
53
- PK and serial sequence (3.4ms)  SELECT attr.attname, seq.relname
206
+  (0.1ms) BEGIN
207
+  (4.0ms) CREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
208
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121015083259')
209
+  (0.6ms) COMMIT
210
+ Migrating to CreateFoo (20130124094113)
211
+  (0.3ms) BEGIN
212
+  (3.2ms) CREATE TABLE "foos" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
213
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130124094113')
214
+  (0.4ms) COMMIT
215
+ Migrating to CreateNoarraythings (20130124100555)
216
+  (0.2ms) BEGIN
217
+  (2.2ms) CREATE TABLE "noarraythings" ("id" serial primary key, "locales" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
218
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130124100555')
219
+  (0.5ms) COMMIT
220
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
221
+ PK and serial sequence (6.3ms) SELECT attr.attname, seq.relname
54
222
  FROM pg_class seq,
55
223
  pg_attribute attr,
56
224
  pg_depend dep,
@@ -63,25 +231,77 @@ Migrating to CreateSomethings (20121015083259)
63
231
  AND attr.attrelid = cons.conrelid
64
232
  AND attr.attnum = cons.conkey[1]
65
233
  AND cons.contype = 'p'
66
- AND dep.refobjid = '"somethings"'::regclass
234
+ AND dep.refobjid = '"foos"'::regclass
235
+
236
+  (2.6ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
237
+ FROM pg_class t
238
+ INNER JOIN pg_index d ON t.oid = d.indrelid
239
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
240
+ WHERE i.relkind = 'i'
241
+ AND d.indisprimary = 'f'
242
+ AND t.relname = 'foos'
243
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
244
+ ORDER BY i.relname
67
245
  
68
-  (1.9ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
246
+ PK and serial sequence (2.4ms) SELECT attr.attname, seq.relname
247
+ FROM pg_class seq,
248
+ pg_attribute attr,
249
+ pg_depend dep,
250
+ pg_namespace name,
251
+ pg_constraint cons
252
+ WHERE seq.oid = dep.objid
253
+ AND seq.relkind = 'S'
254
+ AND attr.attrelid = dep.refobjid
255
+ AND attr.attnum = dep.refobjsubid
256
+ AND attr.attrelid = cons.conrelid
257
+ AND attr.attnum = cons.conkey[1]
258
+ AND cons.contype = 'p'
259
+ AND dep.refobjid = '"noarraythings"'::regclass
260
+
261
+  (0.9ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
69
262
  FROM pg_class t
70
263
  INNER JOIN pg_index d ON t.oid = d.indrelid
71
264
  INNER JOIN pg_class i ON d.indexrelid = i.oid
72
265
  WHERE i.relkind = 'i'
73
266
  AND d.indisprimary = 'f'
74
- AND t.relname = 'somethings'
267
+ AND t.relname = 'noarraythings'
75
268
  AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
76
269
  ORDER BY i.relname
270
+ 
271
+ PK and serial sequence (1.6ms) SELECT attr.attname, seq.relname
272
+ FROM pg_class seq,
273
+ pg_attribute attr,
274
+ pg_depend dep,
275
+ pg_namespace name,
276
+ pg_constraint cons
277
+ WHERE seq.oid = dep.objid
278
+ AND seq.relkind = 'S'
279
+ AND attr.attrelid = dep.refobjid
280
+ AND attr.attnum = dep.refobjsubid
281
+ AND attr.attrelid = cons.conrelid
282
+ AND attr.attnum = cons.conkey[1]
283
+ AND cons.contype = 'p'
284
+ AND dep.refobjid = '"somethings"'::regclass
77
285
 
286
+  (0.8ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
287
+ FROM pg_class t
288
+ INNER JOIN pg_index d ON t.oid = d.indrelid
289
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
290
+ WHERE i.relkind = 'i'
291
+ AND d.indisprimary = 'f'
292
+ AND t.relname = 'somethings'
293
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
294
+ ORDER BY i.relname
295
+ 
78
296
  Connecting to database specified by database.yml
79
-  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
80
-  (429.1ms) DROP DATABASE IF EXISTS "translatable_test"
81
-  (334.5ms) CREATE DATABASE "translatable_test" ENCODING = 'unicode'
82
-  (9.8ms) CREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
83
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
84
-  (3.1ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
297
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
298
+  (111.3ms) DROP DATABASE IF EXISTS "translatable_test"
299
+  (250.5ms) CREATE DATABASE "translatable_test" ENCODING = 'unicode'
300
+  (8.6ms) CREATE TABLE "foos" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
301
+  (3.7ms) CREATE TABLE "noarraythings" ("id" serial primary key, "locales" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
302
+  (5.5ms) CREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
303
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
304
+  (3.2ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
85
305
  FROM pg_class t
86
306
  INNER JOIN pg_index d ON t.oid = d.indrelid
87
307
  INNER JOIN pg_class i ON d.indexrelid = i.oid
@@ -91,6 +311,113 @@ Connecting to database specified by database.yml
91
311
  AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
92
312
  ORDER BY i.relname
93
313
 
94
-  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
314
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
95
315
   (0.5ms) SELECT version FROM "schema_migrations"
96
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121015083259')
316
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124100555')
317
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20121015083259')
318
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124094113')
319
+ Connecting to database specified by database.yml
320
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
321
+  (2.9ms) SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
322
+ FROM pg_class t
323
+ INNER JOIN pg_index d ON t.oid = d.indrelid
324
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
325
+ WHERE i.relkind = 'i'
326
+ AND d.indisprimary = 'f'
327
+ AND t.relname = 'schema_migrations'
328
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
329
+ ORDER BY i.relname
330
+
331
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
332
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
333
+ Migrating to CreateSomethings (20121015083259)
334
+  (0.1ms) BEGIN
335
+  (4.0ms) CREATE TABLE "somethings" ("id" serial primary key, "locales" character varying(255)[], "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
336
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121015083259')
337
+  (0.4ms) COMMIT
338
+ Migrating to CreateFoo (20130124094113)
339
+  (0.2ms) BEGIN
340
+  (2.4ms) CREATE TABLE "foos" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
341
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130124094113')
342
+  (0.7ms) COMMIT
343
+ Migrating to CreateNoarraythings (20130124100555)
344
+  (0.4ms) BEGIN
345
+  (3.0ms) CREATE TABLE "noarraythings" ("id" serial primary key, "locales" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
346
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130124100555')
347
+  (1.0ms) COMMIT
348
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
349
+ PK and serial sequence (3.5ms) SELECT attr.attname, seq.relname
350
+ FROM pg_class seq,
351
+ pg_attribute attr,
352
+ pg_depend dep,
353
+ pg_namespace name,
354
+ pg_constraint cons
355
+ WHERE seq.oid = dep.objid
356
+ AND seq.relkind = 'S'
357
+ AND attr.attrelid = dep.refobjid
358
+ AND attr.attnum = dep.refobjsubid
359
+ AND attr.attrelid = cons.conrelid
360
+ AND attr.attnum = cons.conkey[1]
361
+ AND cons.contype = 'p'
362
+ AND dep.refobjid = '"foos"'::regclass
363
+
364
+  (1.7ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
365
+ FROM pg_class t
366
+ INNER JOIN pg_index d ON t.oid = d.indrelid
367
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
368
+ WHERE i.relkind = 'i'
369
+ AND d.indisprimary = 'f'
370
+ AND t.relname = 'foos'
371
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
372
+ ORDER BY i.relname
373
+ 
374
+ PK and serial sequence (1.5ms) SELECT attr.attname, seq.relname
375
+ FROM pg_class seq,
376
+ pg_attribute attr,
377
+ pg_depend dep,
378
+ pg_namespace name,
379
+ pg_constraint cons
380
+ WHERE seq.oid = dep.objid
381
+ AND seq.relkind = 'S'
382
+ AND attr.attrelid = dep.refobjid
383
+ AND attr.attnum = dep.refobjsubid
384
+ AND attr.attrelid = cons.conrelid
385
+ AND attr.attnum = cons.conkey[1]
386
+ AND cons.contype = 'p'
387
+ AND dep.refobjid = '"noarraythings"'::regclass
388
+
389
+  (0.7ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
390
+ FROM pg_class t
391
+ INNER JOIN pg_index d ON t.oid = d.indrelid
392
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
393
+ WHERE i.relkind = 'i'
394
+ AND d.indisprimary = 'f'
395
+ AND t.relname = 'noarraythings'
396
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
397
+ ORDER BY i.relname
398
+ 
399
+ PK and serial sequence (1.4ms) SELECT attr.attname, seq.relname
400
+ FROM pg_class seq,
401
+ pg_attribute attr,
402
+ pg_depend dep,
403
+ pg_namespace name,
404
+ pg_constraint cons
405
+ WHERE seq.oid = dep.objid
406
+ AND seq.relkind = 'S'
407
+ AND attr.attrelid = dep.refobjid
408
+ AND attr.attnum = dep.refobjsubid
409
+ AND attr.attrelid = cons.conrelid
410
+ AND attr.attnum = cons.conkey[1]
411
+ AND cons.contype = 'p'
412
+ AND dep.refobjid = '"somethings"'::regclass
413
+
414
+  (0.7ms)  SELECT distinct i.relname, d.indisunique, d.indkey, pg_get_indexdef(d.indexrelid), t.oid
415
+ FROM pg_class t
416
+ INNER JOIN pg_index d ON t.oid = d.indrelid
417
+ INNER JOIN pg_class i ON d.indexrelid = i.oid
418
+ WHERE i.relkind = 'i'
419
+ AND d.indisprimary = 'f'
420
+ AND t.relname = 'somethings'
421
+ AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
422
+ ORDER BY i.relname
423
+