activerecord_translatable 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +35 -36
  3. data/Rakefile +9 -19
  4. data/lib/activerecord_translatable.rb +7 -14
  5. data/lib/activerecord_translatable/extension.rb +1 -1
  6. data/lib/version.rb +1 -1
  7. data/spec/activerecord_translateable_spec.rb +127 -118
  8. data/spec/spec_helper.rb +5 -9
  9. metadata +39 -101
  10. data/spec/dummy/README.rdoc +0 -261
  11. data/spec/dummy/Rakefile +0 -7
  12. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  13. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  14. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  15. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  16. data/spec/dummy/app/models/foo.rb +0 -2
  17. data/spec/dummy/app/models/noarraything.rb +0 -4
  18. data/spec/dummy/app/models/something.rb +0 -3
  19. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  20. data/spec/dummy/config.ru +0 -4
  21. data/spec/dummy/config/application.rb +0 -65
  22. data/spec/dummy/config/boot.rb +0 -10
  23. data/spec/dummy/config/database.yml +0 -29
  24. data/spec/dummy/config/environment.rb +0 -5
  25. data/spec/dummy/config/environments/development.rb +0 -37
  26. data/spec/dummy/config/environments/production.rb +0 -67
  27. data/spec/dummy/config/environments/test.rb +0 -37
  28. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  29. data/spec/dummy/config/initializers/i18n_backend.rb +0 -1
  30. data/spec/dummy/config/initializers/inflections.rb +0 -15
  31. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  32. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  33. data/spec/dummy/config/initializers/session_store.rb +0 -8
  34. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  35. data/spec/dummy/config/locales/en.yml +0 -5
  36. data/spec/dummy/config/routes.rb +0 -58
  37. data/spec/dummy/db/migrate/20121015083259_create_somethings.rb +0 -8
  38. data/spec/dummy/db/migrate/20130124094113_create_foo.rb +0 -7
  39. data/spec/dummy/db/migrate/20130124100555_create_noarraythings.rb +0 -9
  40. data/spec/dummy/db/schema.rb +0 -33
  41. data/spec/dummy/log/development.log +0 -423
  42. data/spec/dummy/log/test.log +0 -7826
  43. data/spec/dummy/public/404.html +0 -26
  44. data/spec/dummy/public/422.html +0 -26
  45. data/spec/dummy/public/500.html +0 -25
  46. data/spec/dummy/public/favicon.ico +0 -0
  47. data/spec/dummy/script/rails +0 -6
@@ -1,8 +0,0 @@
1
- class CreateSomethings < ActiveRecord::Migration
2
- def change
3
- create_table :somethings do |t|
4
- t.string_array :locales
5
- t.timestamps
6
- end
7
- end
8
- end
@@ -1,7 +0,0 @@
1
- class CreateFoo < ActiveRecord::Migration
2
- def change
3
- create_table :foos do |t|
4
- t.timestamps
5
- end
6
- end
7
- end
@@ -1,9 +0,0 @@
1
- class CreateNoarraythings < ActiveRecord::Migration
2
- def change
3
- create_table :noarraythings do |t|
4
- t.string :locales
5
-
6
- t.timestamps
7
- end
8
- end
9
- end
@@ -1,33 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(:version => 20130124100555) do
15
-
16
- create_table "foos", :force => true do |t|
17
- t.datetime "created_at", :null => false
18
- t.datetime "updated_at", :null => false
19
- end
20
-
21
- create_table "noarraythings", :force => true do |t|
22
- t.string "locales"
23
- t.datetime "created_at", :null => false
24
- t.datetime "updated_at", :null => false
25
- end
26
-
27
- create_table "somethings", :force => true do |t|
28
- t.string_array "locales", :limit => 255
29
- t.datetime "created_at", :null => false
30
- t.datetime "updated_at", :null => false
31
- end
32
-
33
- end
@@ -1,423 +0,0 @@
1
- Connecting to database specified by database.yml
2
- Connecting to database specified by database.yml
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
27
- FROM pg_class t
28
- INNER JOIN pg_index d ON t.oid = d.indrelid
29
- INNER JOIN pg_class i ON d.indexrelid = i.oid
30
- WHERE i.relkind = 'i'
31
- AND d.indisprimary = 'f'
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'
58
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
59
- ORDER BY i.relname
60
-
61
- Connecting to database specified by database.yml
62
-  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
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')
82
- Connecting to database specified by database.yml
83
- Connecting to database specified by database.yml
84
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
85
- Migrating to CreateSomethings (20121015083259)
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
-
168
- Connecting to database specified by database.yml
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')
191
- Connecting to database specified by database.yml
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"
205
- Migrating to CreateSomethings (20121015083259)
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
222
- FROM pg_class seq,
223
- pg_attribute attr,
224
- pg_depend dep,
225
- pg_namespace name,
226
- pg_constraint cons
227
- WHERE seq.oid = dep.objid
228
- AND seq.relkind = 'S'
229
- AND attr.attrelid = dep.refobjid
230
- AND attr.attnum = dep.refobjsubid
231
- AND attr.attrelid = cons.conrelid
232
- AND attr.attnum = cons.conkey[1]
233
- AND cons.contype = 'p'
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
245
- 
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
262
- FROM pg_class t
263
- INNER JOIN pg_index d ON t.oid = d.indrelid
264
- INNER JOIN pg_class i ON d.indexrelid = i.oid
265
- WHERE i.relkind = 'i'
266
- AND d.indisprimary = 'f'
267
- AND t.relname = 'noarraythings'
268
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
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
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
- 
296
- Connecting to database specified by database.yml
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
305
- FROM pg_class t
306
- INNER JOIN pg_index d ON t.oid = d.indrelid
307
- INNER JOIN pg_class i ON d.indexrelid = i.oid
308
- WHERE i.relkind = 'i'
309
- AND d.indisprimary = 'f'
310
- AND t.relname = 'schema_migrations'
311
- AND i.relnamespace IN (SELECT oid FROM pg_namespace WHERE nspname = ANY (current_schemas(false)) )
312
- ORDER BY i.relname
313
-
314
-  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
315
-  (0.5ms) SELECT version FROM "schema_migrations"
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
-