model_from_table 0.0.1

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 (53) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/lib/generators/model_from_table_generator.rb +54 -0
  5. data/lib/generators/templates/model.rb +8 -0
  6. data/lib/model_from_table/version.rb +3 -0
  7. data/lib/model_from_table.rb +2 -0
  8. data/lib/tasks/model_from_table_tasks.rake +4 -0
  9. data/test/dummy/README.rdoc +28 -0
  10. data/test/dummy/Rakefile +6 -0
  11. data/test/dummy/app/assets/javascripts/application.js +13 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  13. data/test/dummy/app/controllers/application_controller.rb +5 -0
  14. data/test/dummy/app/helpers/application_helper.rb +2 -0
  15. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  16. data/test/dummy/bin/bundle +3 -0
  17. data/test/dummy/bin/rails +4 -0
  18. data/test/dummy/bin/rake +4 -0
  19. data/test/dummy/config/application.rb +23 -0
  20. data/test/dummy/config/boot.rb +5 -0
  21. data/test/dummy/config/database.yml +26 -0
  22. data/test/dummy/config/environment.rb +5 -0
  23. data/test/dummy/config/environments/development.rb +37 -0
  24. data/test/dummy/config/environments/production.rb +82 -0
  25. data/test/dummy/config/environments/test.rb +39 -0
  26. data/test/dummy/config/initializers/assets.rb +8 -0
  27. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  28. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  29. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  30. data/test/dummy/config/initializers/inflections.rb +16 -0
  31. data/test/dummy/config/initializers/mime_types.rb +4 -0
  32. data/test/dummy/config/initializers/session_store.rb +3 -0
  33. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  34. data/test/dummy/config/locales/en.yml +23 -0
  35. data/test/dummy/config/routes.rb +56 -0
  36. data/test/dummy/config/secrets.yml +22 -0
  37. data/test/dummy/config.ru +4 -0
  38. data/test/dummy/db/development.sqlite3 +0 -0
  39. data/test/dummy/db/migrate/20140728150510_create_tables.rb +16 -0
  40. data/test/dummy/db/schema.rb +28 -0
  41. data/test/dummy/db/test.sqlite3 +0 -0
  42. data/test/dummy/log/development.log +97 -0
  43. data/test/dummy/log/test.log +1047 -0
  44. data/test/dummy/public/404.html +67 -0
  45. data/test/dummy/public/422.html +67 -0
  46. data/test/dummy/public/500.html +66 -0
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/model_from_table_generator_test.rb +55 -0
  49. data/test/test_helper.rb +19 -0
  50. data/test/tmp/app/models/company.rb +3 -0
  51. data/test/tmp/app/models/legacy_table.rb +4 -0
  52. data/test/tmp/app/models/user.rb +2 -0
  53. metadata +182 -0
@@ -0,0 +1,1047 @@
1
+  (0.1ms) begin transaction
2
+ ------------------------------
3
+ ModelFromTableTest: test_truth
4
+ ------------------------------
5
+  (0.1ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ ------------------------------
8
+ ModelFromTableTest: test_truth
9
+ ------------------------------
10
+  (0.1ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ ------------------------------
13
+ ModelFromTableTest: test_truth
14
+ ------------------------------
15
+  (0.1ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ ----------------------------------
18
+ ModelFromTableTest: test_resources
19
+ ----------------------------------
20
+  (0.1ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+ ------------------------------
23
+ ModelFromTableTest: test_truth
24
+ ------------------------------
25
+  (0.0ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ ----------------------------------
28
+ ModelFromTableTest: test_resources
29
+ ----------------------------------
30
+  (0.1ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+ ------------------------------
33
+ ModelFromTableTest: test_truth
34
+ ------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.1ms) begin transaction
37
+ ----------------------------------
38
+ ModelFromTableTest: test_resources
39
+ ----------------------------------
40
+  (0.1ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+ ------------------------------
43
+ ModelFromTableTest: test_truth
44
+ ------------------------------
45
+  (0.0ms) rollback transaction
46
+  (0.1ms) begin transaction
47
+ ----------------------------------
48
+ ModelFromTableTest: test_resources
49
+ ----------------------------------
50
+  (0.1ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ ------------------------------
53
+ ModelFromTableTest: test_truth
54
+ ------------------------------
55
+  (0.0ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+ ----------------------------------
58
+ ModelFromTableTest: test_resources
59
+ ----------------------------------
60
+  (0.4ms) rollback transaction
61
+  (0.1ms) begin transaction
62
+ ------------------------------
63
+ ModelFromTableTest: test_truth
64
+ ------------------------------
65
+  (0.1ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+ ----------------------------------
68
+ ModelFromTableTest: test_resources
69
+ ----------------------------------
70
+  (0.1ms) rollback transaction
71
+  (0.1ms) begin transaction
72
+ ------------------------------
73
+ ModelFromTableTest: test_truth
74
+ ------------------------------
75
+  (0.0ms) rollback transaction
76
+  (0.1ms) begin transaction
77
+ ----------------------------------
78
+ ModelFromTableTest: test_resources
79
+ ----------------------------------
80
+  (0.1ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+ ------------------------------
83
+ ModelFromTableTest: test_truth
84
+ ------------------------------
85
+  (0.0ms) rollback transaction
86
+  (0.1ms) begin transaction
87
+ ----------------------------------
88
+ ModelFromTableTest: test_resources
89
+ ----------------------------------
90
+  (0.1ms) rollback transaction
91
+  (0.0ms) begin transaction
92
+ ------------------------------
93
+ ModelFromTableTest: test_truth
94
+ ------------------------------
95
+  (0.0ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+ ----------------------------------
98
+ ModelFromTableTest: test_resources
99
+ ----------------------------------
100
+  (7.0ms) rollback transaction
101
+  (0.1ms) begin transaction
102
+ ------------------------------
103
+ ModelFromTableTest: test_truth
104
+ ------------------------------
105
+  (0.1ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+ ----------------------------------
108
+ ModelFromTableTest: test_resources
109
+ ----------------------------------
110
+  (0.1ms) rollback transaction
111
+  (0.1ms) begin transaction
112
+ ------------------------------
113
+ ModelFromTableTest: test_truth
114
+ ------------------------------
115
+  (0.0ms) rollback transaction
116
+  (0.2ms) begin transaction
117
+ ----------------------------------
118
+ ModelFromTableTest: test_resources
119
+ ----------------------------------
120
+  (0.1ms) rollback transaction
121
+  (0.1ms) begin transaction
122
+ ------------------------------
123
+ ModelFromTableTest: test_truth
124
+ ------------------------------
125
+  (0.1ms) rollback transaction
126
+  (0.1ms) begin transaction
127
+ ----------------------------------
128
+ ModelFromTableTest: test_resources
129
+ ----------------------------------
130
+  (0.1ms) rollback transaction
131
+  (0.1ms) begin transaction
132
+ ------------------------------
133
+ ModelFromTableTest: test_truth
134
+ ------------------------------
135
+  (0.0ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+ ----------------------------------
138
+ ModelFromTableTest: test_resources
139
+ ----------------------------------
140
+  (0.1ms) rollback transaction
141
+  (0.0ms) begin transaction
142
+ ------------------------------
143
+ ModelFromTableTest: test_truth
144
+ ------------------------------
145
+  (0.0ms) rollback transaction
146
+  (0.1ms) begin transaction
147
+ ----------------------------------
148
+ ModelFromTableTest: test_resources
149
+ ----------------------------------
150
+  (0.1ms) rollback transaction
151
+  (0.0ms) begin transaction
152
+ ------------------------------
153
+ ModelFromTableTest: test_truth
154
+ ------------------------------
155
+  (0.0ms) rollback transaction
156
+  (0.1ms) begin transaction
157
+ ----------------------------------
158
+ ModelFromTableTest: test_resources
159
+ ----------------------------------
160
+  (0.1ms) rollback transaction
161
+  (0.0ms) begin transaction
162
+ ------------------------------
163
+ ModelFromTableTest: test_truth
164
+ ------------------------------
165
+  (0.0ms) rollback transaction
166
+  (0.1ms) begin transaction
167
+ ----------------------------------
168
+ ModelFromTableTest: test_resources
169
+ ----------------------------------
170
+  (0.1ms) rollback transaction
171
+  (0.0ms) begin transaction
172
+ ------------------------------
173
+ ModelFromTableTest: test_truth
174
+ ------------------------------
175
+  (0.1ms) rollback transaction
176
+  (0.1ms) begin transaction
177
+ ----------------------------------
178
+ ModelFromTableTest: test_resources
179
+ ----------------------------------
180
+  (0.1ms) rollback transaction
181
+  (0.1ms) begin transaction
182
+ ------------------------------
183
+ ModelFromTableTest: test_truth
184
+ ------------------------------
185
+  (0.1ms) rollback transaction
186
+  (0.1ms) begin transaction
187
+ ----------------------------------
188
+ ModelFromTableTest: test_resources
189
+ ----------------------------------
190
+  (0.1ms) rollback transaction
191
+  (0.1ms) begin transaction
192
+ ----------------------------------
193
+ ModelFromTableTest: test_resources
194
+ ----------------------------------
195
+  (0.1ms) rollback transaction
196
+  (0.1ms) begin transaction
197
+ ----------------------------------
198
+ ModelFromTableTest: test_resources
199
+ ----------------------------------
200
+  (0.1ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+ ----------------------------------
203
+ ModelFromTableTest: test_resources
204
+ ----------------------------------
205
+  (0.1ms) rollback transaction
206
+  (0.1ms) begin transaction
207
+ ----------------------------------
208
+ ModelFromTableTest: test_resources
209
+ ----------------------------------
210
+  (6.0ms) rollback transaction
211
+  (0.1ms) begin transaction
212
+ ----------------------------------
213
+ ModelFromTableTest: test_resources
214
+ ----------------------------------
215
+  (0.1ms) rollback transaction
216
+  (0.1ms) begin transaction
217
+ ----------------------------------
218
+ ModelFromTableTest: test_resources
219
+ ----------------------------------
220
+  (0.1ms) rollback transaction
221
+  (0.1ms) begin transaction
222
+ -------------------------------------------
223
+ ModelFromTableGeneratorTest: test_resources
224
+ -------------------------------------------
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ -------------------------------------------
228
+ ModelFromTableGeneratorTest: test_resources
229
+ -------------------------------------------
230
+  (0.1ms) rollback transaction
231
+  (0.1ms) begin transaction
232
+ -------------------------------------------
233
+ ModelFromTableGeneratorTest: test_resources
234
+ -------------------------------------------
235
+  (0.1ms) rollback transaction
236
+  (0.1ms) begin transaction
237
+ -------------------------------------------
238
+ ModelFromTableGeneratorTest: test_resources
239
+ -------------------------------------------
240
+  (0.1ms) rollback transaction
241
+  (0.1ms) begin transaction
242
+ -------------------------------------------
243
+ ModelFromTableGeneratorTest: test_resources
244
+ -------------------------------------------
245
+  (0.1ms) rollback transaction
246
+  (0.1ms) begin transaction
247
+ -------------------------------------------
248
+ ModelFromTableGeneratorTest: test_resources
249
+ -------------------------------------------
250
+  (0.1ms) rollback transaction
251
+  (0.1ms) begin transaction
252
+ -------------------------------------------
253
+ ModelFromTableGeneratorTest: test_resources
254
+ -------------------------------------------
255
+  (0.1ms) rollback transaction
256
+  (0.1ms) begin transaction
257
+ -------------------------------------------
258
+ ModelFromTableGeneratorTest: test_resources
259
+ -------------------------------------------
260
+  (0.1ms) rollback transaction
261
+  (0.1ms) begin transaction
262
+ -------------------------------------------
263
+ ModelFromTableGeneratorTest: test_resources
264
+ -------------------------------------------
265
+  (0.1ms) rollback transaction
266
+  (0.1ms) begin transaction
267
+ -------------------------------------------
268
+ ModelFromTableGeneratorTest: test_resources
269
+ -------------------------------------------
270
+  (0.1ms) rollback transaction
271
+  (0.1ms) begin transaction
272
+ -------------------------------------------
273
+ ModelFromTableGeneratorTest: test_resources
274
+ -------------------------------------------
275
+  (0.1ms) rollback transaction
276
+  (0.1ms) begin transaction
277
+ -------------------------------------------
278
+ ModelFromTableGeneratorTest: test_resources
279
+ -------------------------------------------
280
+  (0.1ms) rollback transaction
281
+  (0.1ms) begin transaction
282
+ -------------------------------------------
283
+ ModelFromTableGeneratorTest: test_resources
284
+ -------------------------------------------
285
+  (0.1ms) rollback transaction
286
+  (0.1ms) begin transaction
287
+ -------------------------------------------
288
+ ModelFromTableGeneratorTest: test_resources
289
+ -------------------------------------------
290
+  (0.1ms) rollback transaction
291
+  (0.1ms) begin transaction
292
+ -------------------------------------------
293
+ ModelFromTableGeneratorTest: test_resources
294
+ -------------------------------------------
295
+  (0.1ms) rollback transaction
296
+  (0.1ms) begin transaction
297
+ -------------------------------------------
298
+ ModelFromTableGeneratorTest: test_resources
299
+ -------------------------------------------
300
+  (0.1ms) rollback transaction
301
+  (0.1ms) begin transaction
302
+ -------------------------------------------
303
+ ModelFromTableGeneratorTest: test_resources
304
+ -------------------------------------------
305
+  (0.1ms) rollback transaction
306
+  (0.1ms) begin transaction
307
+ -------------------------------------------
308
+ ModelFromTableGeneratorTest: test_resources
309
+ -------------------------------------------
310
+  (0.1ms) rollback transaction
311
+  (0.1ms) begin transaction
312
+ -------------------------------------------
313
+ ModelFromTableGeneratorTest: test_resources
314
+ -------------------------------------------
315
+  (0.1ms) rollback transaction
316
+ ActiveRecord::SchemaMigration Load (17.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
317
+  (1.3ms) BEGIN
318
+ -------------------------------------------
319
+ ModelFromTableGeneratorTest: test_resources
320
+ -------------------------------------------
321
+  (0.3ms) ROLLBACK
322
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
323
+  (0.3ms) BEGIN
324
+ -------------------------------------------
325
+ ModelFromTableGeneratorTest: test_resources
326
+ -------------------------------------------
327
+  (0.4ms) ROLLBACK
328
+ ActiveRecord::SchemaMigration Load (13.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
329
+  (0.8ms) BEGIN
330
+ -------------------------------------------
331
+ ModelFromTableGeneratorTest: test_resources
332
+ -------------------------------------------
333
+  (0.4ms) ROLLBACK
334
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
335
+  (0.3ms) BEGIN
336
+ -------------------------------------------------------
337
+ ModelFromTableGeneratorTest: test_all_files_are_created
338
+ -------------------------------------------------------
339
+  (0.3ms) ROLLBACK
340
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
341
+  (0.3ms) BEGIN
342
+ -------------------------------------------------------
343
+ ModelFromTableGeneratorTest: test_all_files_are_created
344
+ -------------------------------------------------------
345
+  (0.3ms) ROLLBACK
346
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
347
+  (0.3ms) BEGIN
348
+ -------------------------------------------------------
349
+ ModelFromTableGeneratorTest: test_all_files_are_created
350
+ -------------------------------------------------------
351
+  (0.2ms) ROLLBACK
352
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
353
+  (0.4ms) BEGIN
354
+ -------------------------------------------------------
355
+ ModelFromTableGeneratorTest: test_all_files_are_created
356
+ -------------------------------------------------------
357
+  (0.2ms) ROLLBACK
358
+ ActiveRecord::SchemaMigration Load (1.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
359
+  (0.3ms) BEGIN
360
+ -------------------------------------------------------
361
+ ModelFromTableGeneratorTest: test_all_files_are_created
362
+ -------------------------------------------------------
363
+  (0.5ms) ROLLBACK
364
+ ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
365
+  (0.3ms) BEGIN
366
+ -------------------------------------------------------
367
+ ModelFromTableGeneratorTest: test_all_files_are_created
368
+ -------------------------------------------------------
369
+  (0.2ms) ROLLBACK
370
+ ActiveRecord::SchemaMigration Load (4.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
371
+  (0.5ms) BEGIN
372
+ -------------------------------------------------------
373
+ ModelFromTableGeneratorTest: test_all_files_are_created
374
+ -------------------------------------------------------
375
+  (0.5ms) ROLLBACK
376
+ ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
377
+  (0.6ms) BEGIN
378
+ -------------------------------------------------------
379
+ ModelFromTableGeneratorTest: test_all_files_are_created
380
+ -------------------------------------------------------
381
+  (0.5ms) ROLLBACK
382
+  (0.4ms) BEGIN
383
+ ------------------------------------------------------------------------------------
384
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
385
+ ------------------------------------------------------------------------------------
386
+  (0.5ms) ROLLBACK
387
+  (0.4ms) BEGIN
388
+ --------------------------------------------------------------------
389
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
390
+ --------------------------------------------------------------------
391
+  (0.5ms) ROLLBACK
392
+ ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
393
+  (0.5ms) BEGIN
394
+ -------------------------------------------------------
395
+ ModelFromTableGeneratorTest: test_all_files_are_created
396
+ -------------------------------------------------------
397
+  (0.4ms) ROLLBACK
398
+  (0.3ms) BEGIN
399
+ ----------------------------------------------------------------
400
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
401
+ ----------------------------------------------------------------
402
+  (0.3ms) ROLLBACK
403
+  (0.2ms) BEGIN
404
+ ------------------------------------------------------------------------------------
405
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
406
+ ------------------------------------------------------------------------------------
407
+  (0.4ms) ROLLBACK
408
+  (0.3ms) BEGIN
409
+ --------------------------------------------------------------------
410
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
411
+ --------------------------------------------------------------------
412
+  (0.6ms) ROLLBACK
413
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
414
+  (0.4ms) BEGIN
415
+ -------------------------------------------------------
416
+ ModelFromTableGeneratorTest: test_all_files_are_created
417
+ -------------------------------------------------------
418
+  (0.4ms) ROLLBACK
419
+  (0.2ms) BEGIN
420
+ ----------------------------------------------------------------
421
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
422
+ ----------------------------------------------------------------
423
+  (0.3ms) ROLLBACK
424
+  (0.3ms) BEGIN
425
+ ------------------------------------------------------------------------------------
426
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
427
+ ------------------------------------------------------------------------------------
428
+  (0.4ms) ROLLBACK
429
+  (0.3ms) BEGIN
430
+ --------------------------------------------------------------------
431
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
432
+ --------------------------------------------------------------------
433
+  (0.5ms) ROLLBACK
434
+ ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
435
+  (0.5ms) BEGIN
436
+ -------------------------------------------------------
437
+ ModelFromTableGeneratorTest: test_all_files_are_created
438
+ -------------------------------------------------------
439
+  (0.5ms) ROLLBACK
440
+  (0.3ms) BEGIN
441
+ ----------------------------------------------------------------
442
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
443
+ ----------------------------------------------------------------
444
+  (0.4ms) ROLLBACK
445
+  (0.3ms) BEGIN
446
+ --------------------------------------------------
447
+ ModelFromTableGeneratorTest: test_rails_convension
448
+ --------------------------------------------------
449
+  (0.5ms) ROLLBACK
450
+  (0.3ms) BEGIN
451
+ ------------------------------------------------------------------------------------
452
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
453
+ ------------------------------------------------------------------------------------
454
+  (0.4ms) ROLLBACK
455
+  (0.3ms) BEGIN
456
+ --------------------------------------------------------------------
457
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
458
+ --------------------------------------------------------------------
459
+  (0.5ms) ROLLBACK
460
+  (0.1ms) begin transaction
461
+ -------------------------------------------------------
462
+ ModelFromTableGeneratorTest: test_all_files_are_created
463
+ -------------------------------------------------------
464
+  (0.1ms) rollback transaction
465
+  (0.0ms) begin transaction
466
+ ----------------------------------------------------------------
467
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
468
+ ----------------------------------------------------------------
469
+  (0.1ms) rollback transaction
470
+  (0.1ms) begin transaction
471
+ --------------------------------------------------
472
+ ModelFromTableGeneratorTest: test_rails_convension
473
+ --------------------------------------------------
474
+  (0.1ms) rollback transaction
475
+  (0.0ms) begin transaction
476
+ ------------------------------------------------------------------------------------
477
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
478
+ ------------------------------------------------------------------------------------
479
+  (0.1ms) rollback transaction
480
+  (0.0ms) begin transaction
481
+ --------------------------------------------------------------------
482
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
483
+ --------------------------------------------------------------------
484
+  (0.1ms) rollback transaction
485
+  (0.1ms) begin transaction
486
+ -------------------------------------------------------
487
+ ModelFromTableGeneratorTest: test_all_files_are_created
488
+ -------------------------------------------------------
489
+  (0.1ms) rollback transaction
490
+  (0.0ms) begin transaction
491
+ ----------------------------------------------------------------
492
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
493
+ ----------------------------------------------------------------
494
+  (0.0ms) rollback transaction
495
+  (0.0ms) begin transaction
496
+ --------------------------------------------------
497
+ ModelFromTableGeneratorTest: test_rails_convension
498
+ --------------------------------------------------
499
+  (0.1ms) rollback transaction
500
+  (0.0ms) begin transaction
501
+ ------------------------------------------------------------------------------------
502
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
503
+ ------------------------------------------------------------------------------------
504
+  (0.1ms) rollback transaction
505
+  (0.1ms) begin transaction
506
+ --------------------------------------------------------------------
507
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
508
+ --------------------------------------------------------------------
509
+  (0.1ms) rollback transaction
510
+  (0.1ms) begin transaction
511
+ -------------------------------------------------------
512
+ ModelFromTableGeneratorTest: test_all_files_are_created
513
+ -------------------------------------------------------
514
+  (0.0ms) SAVEPOINT active_record_1
515
+ ----------------------------------------------------------------
516
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
517
+ ----------------------------------------------------------------
518
+  (0.0ms) SAVEPOINT active_record_2
519
+ --------------------------------------------------
520
+ ModelFromTableGeneratorTest: test_rails_convension
521
+ --------------------------------------------------
522
+  (0.0ms) SAVEPOINT active_record_3
523
+ ------------------------------------------------------------------------------------
524
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
525
+ ------------------------------------------------------------------------------------
526
+  (0.1ms) SAVEPOINT active_record_4
527
+ --------------------------------------------------------------------
528
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
529
+ --------------------------------------------------------------------
530
+  (0.1ms) begin transaction
531
+ -------------------------------------------------------
532
+ ModelFromTableGeneratorTest: test_all_files_are_created
533
+ -------------------------------------------------------
534
+  (0.1ms) rollback transaction
535
+  (0.1ms) begin transaction
536
+ ----------------------------------------------------------------
537
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
538
+ ----------------------------------------------------------------
539
+  (0.0ms) rollback transaction
540
+  (0.1ms) begin transaction
541
+ --------------------------------------------------
542
+ ModelFromTableGeneratorTest: test_rails_convension
543
+ --------------------------------------------------
544
+  (0.0ms) rollback transaction
545
+  (0.1ms) begin transaction
546
+ ------------------------------------------------------------------------------------
547
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
548
+ ------------------------------------------------------------------------------------
549
+  (0.0ms) rollback transaction
550
+  (0.1ms) begin transaction
551
+ --------------------------------------------------------------------
552
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
553
+ --------------------------------------------------------------------
554
+  (0.1ms) rollback transaction
555
+  (0.1ms) begin transaction
556
+ -------------------------------------------------------
557
+ ModelFromTableGeneratorTest: test_all_files_are_created
558
+ -------------------------------------------------------
559
+  (0.1ms) rollback transaction
560
+  (0.0ms) begin transaction
561
+ ----------------------------------------------------------------
562
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
563
+ ----------------------------------------------------------------
564
+  (0.0ms) rollback transaction
565
+  (0.0ms) begin transaction
566
+ --------------------------------------------------
567
+ ModelFromTableGeneratorTest: test_rails_convension
568
+ --------------------------------------------------
569
+  (0.0ms) rollback transaction
570
+  (0.0ms) begin transaction
571
+ ------------------------------------------------------------------------------------
572
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
573
+ ------------------------------------------------------------------------------------
574
+  (0.0ms) rollback transaction
575
+  (0.0ms) begin transaction
576
+ --------------------------------------------------------------------
577
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
578
+ --------------------------------------------------------------------
579
+  (0.1ms) rollback transaction
580
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
581
+  (0.1ms) select sqlite_version(*)
582
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
583
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
584
+ Migrating to CreateTables (20140728150510)
585
+  (0.1ms) begin transaction
586
+  (0.1ms) rollback transaction
587
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
588
+ Migrating to CreateTables (20140728150510)
589
+  (0.1ms) begin transaction
590
+  (0.5ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
591
+  (0.2ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
592
+  (0.1ms) CREATE TABLE "some_legacy_table" ("code" varchar(255)) 
593
+  (0.3ms) ALTER TABLE some_legacy_table ADD PRIMARY KEY (code)
594
+ SQLite3::SQLException: near "PRIMARY": syntax error: ALTER TABLE some_legacy_table ADD PRIMARY KEY (code)
595
+  (1.8ms) rollback transaction
596
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
597
+ Migrating to CreateTables (20140728150510)
598
+  (0.1ms) begin transaction
599
+  (0.5ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
600
+  (0.1ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
601
+  (0.1ms) CREATE TABLE "some_legacy_table" ("code" varchar(255)) 
602
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728150510"]]
603
+  (1.3ms) commit transaction
604
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
605
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
606
+  (0.1ms) begin transaction
607
+ -------------------------------------------------------
608
+ ModelFromTableGeneratorTest: test_all_files_are_created
609
+ -------------------------------------------------------
610
+  (0.1ms) rollback transaction
611
+  (0.1ms) begin transaction
612
+ ----------------------------------------------------------------
613
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
614
+ ----------------------------------------------------------------
615
+  (0.1ms) rollback transaction
616
+  (0.1ms) begin transaction
617
+ --------------------------------------------------
618
+ ModelFromTableGeneratorTest: test_rails_convension
619
+ --------------------------------------------------
620
+  (0.1ms) rollback transaction
621
+  (0.1ms) begin transaction
622
+ ------------------------------------------------------------------------------------
623
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
624
+ ------------------------------------------------------------------------------------
625
+  (0.1ms) rollback transaction
626
+  (0.1ms) begin transaction
627
+ --------------------------------------------------------------------
628
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
629
+ --------------------------------------------------------------------
630
+  (0.1ms) rollback transaction
631
+  (1.9ms) DROP TABLE "company"
632
+  (1.0ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
633
+  (1.1ms) DROP TABLE "some_legacy_table"
634
+  (1.1ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
635
+  (1.0ms) DROP TABLE "tme_profiles"
636
+  (1.6ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
637
+  (0.1ms) SELECT version FROM "schema_migrations"
638
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
639
+  (2.4ms) DROP TABLE "company"
640
+  (1.3ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
641
+  (1.0ms) DROP TABLE "some_legacy_table"
642
+  (1.0ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
643
+  (1.2ms) DROP TABLE "tme_profiles"
644
+  (1.3ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
645
+  (0.2ms) SELECT version FROM "schema_migrations"
646
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
647
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
648
+  (0.1ms) begin transaction
649
+ -------------------------------------------------------
650
+ ModelFromTableGeneratorTest: test_all_files_are_created
651
+ -------------------------------------------------------
652
+  (0.1ms) rollback transaction
653
+  (0.1ms) begin transaction
654
+ ----------------------------------------------------------------
655
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
656
+ ----------------------------------------------------------------
657
+  (0.1ms) rollback transaction
658
+  (0.1ms) begin transaction
659
+ --------------------------------------------------
660
+ ModelFromTableGeneratorTest: test_rails_convension
661
+ --------------------------------------------------
662
+  (0.1ms) rollback transaction
663
+  (0.1ms) begin transaction
664
+ ------------------------------------------------------------------------------------
665
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
666
+ ------------------------------------------------------------------------------------
667
+  (0.1ms) rollback transaction
668
+  (0.0ms) begin transaction
669
+ --------------------------------------------------------------------
670
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
671
+ --------------------------------------------------------------------
672
+  (0.1ms) rollback transaction
673
+  (2.6ms) DROP TABLE "company"
674
+  (1.1ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
675
+  (1.1ms) DROP TABLE "some_legacy_table"
676
+  (1.0ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
677
+  (1.1ms) DROP TABLE "tme_profiles"
678
+  (1.8ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
679
+  (0.1ms) SELECT version FROM "schema_migrations"
680
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
681
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
682
+  (0.1ms) begin transaction
683
+ -------------------------------------------------------
684
+ ModelFromTableGeneratorTest: test_all_files_are_created
685
+ -------------------------------------------------------
686
+  (0.1ms) rollback transaction
687
+  (0.1ms) begin transaction
688
+ ----------------------------------------------------------------
689
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
690
+ ----------------------------------------------------------------
691
+  (0.1ms) rollback transaction
692
+  (0.1ms) begin transaction
693
+ --------------------------------------------------
694
+ ModelFromTableGeneratorTest: test_rails_convension
695
+ --------------------------------------------------
696
+  (0.1ms) rollback transaction
697
+  (0.1ms) begin transaction
698
+ ------------------------------------------------------------------------------------
699
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
700
+ ------------------------------------------------------------------------------------
701
+  (0.1ms) rollback transaction
702
+  (0.1ms) begin transaction
703
+ --------------------------------------------------------------------
704
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
705
+ --------------------------------------------------------------------
706
+  (0.1ms) rollback transaction
707
+  (2.7ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
708
+  (1.1ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
709
+  (1.2ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
710
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
711
+  (0.1ms) select sqlite_version(*)
712
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
713
+  (0.1ms) SELECT version FROM "schema_migrations"
714
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140728150510')
715
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
716
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
717
+  (0.1ms) begin transaction
718
+ -------------------------------------------------------
719
+ ModelFromTableGeneratorTest: test_all_files_are_created
720
+ -------------------------------------------------------
721
+  (0.1ms) rollback transaction
722
+  (0.1ms) begin transaction
723
+ ----------------------------------------------------------------
724
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
725
+ ----------------------------------------------------------------
726
+  (0.1ms) rollback transaction
727
+  (0.1ms) begin transaction
728
+ --------------------------------------------------
729
+ ModelFromTableGeneratorTest: test_rails_convension
730
+ --------------------------------------------------
731
+  (0.1ms) rollback transaction
732
+  (0.0ms) begin transaction
733
+ ------------------------------------------------------------------------------------
734
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
735
+ ------------------------------------------------------------------------------------
736
+  (0.1ms) rollback transaction
737
+  (0.1ms) begin transaction
738
+ --------------------------------------------------------------------
739
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
740
+ --------------------------------------------------------------------
741
+  (0.1ms) rollback transaction
742
+  (1.1ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
743
+  (1.0ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
744
+  (1.1ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
745
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
746
+  (0.1ms) select sqlite_version(*)
747
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
748
+  (0.1ms) SELECT version FROM "schema_migrations"
749
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140728150510')
750
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
751
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
752
+  (0.1ms) begin transaction
753
+ -------------------------------------------------------
754
+ ModelFromTableGeneratorTest: test_all_files_are_created
755
+ -------------------------------------------------------
756
+  (0.1ms) rollback transaction
757
+  (0.1ms) begin transaction
758
+ ----------------------------------------------------------------
759
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
760
+ ----------------------------------------------------------------
761
+  (0.1ms) rollback transaction
762
+  (0.1ms) begin transaction
763
+ --------------------------------------------------
764
+ ModelFromTableGeneratorTest: test_rails_convension
765
+ --------------------------------------------------
766
+  (0.1ms) rollback transaction
767
+  (0.1ms) begin transaction
768
+ ------------------------------------------------------------------------------------
769
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
770
+ ------------------------------------------------------------------------------------
771
+  (0.1ms) rollback transaction
772
+  (0.1ms) begin transaction
773
+ --------------------------------------------------------------------
774
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
775
+ --------------------------------------------------------------------
776
+  (0.1ms) rollback transaction
777
+  (2.6ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
778
+  (1.1ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
779
+  (1.2ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
780
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
781
+  (0.1ms) select sqlite_version(*)
782
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
783
+  (0.2ms) SELECT version FROM "schema_migrations"
784
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140728150510')
785
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
786
+  (2.6ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
787
+  (1.0ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
788
+  (1.2ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
789
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
790
+  (0.1ms) select sqlite_version(*)
791
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
792
+  (0.1ms) SELECT version FROM "schema_migrations"
793
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140728150510')
794
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
795
+  (2.5ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
796
+  (1.1ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
797
+  (1.1ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
798
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
799
+  (0.1ms) select sqlite_version(*)
800
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
801
+  (0.1ms) SELECT version FROM "schema_migrations"
802
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140728150510')
803
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
804
+  (2.3ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
805
+  (1.1ms) CREATE TABLE "some_legacy_table" ("code" varchar(255))
806
+  (1.1ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
807
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
808
+  (0.1ms) select sqlite_version(*)
809
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
810
+  (0.1ms) SELECT version FROM "schema_migrations"
811
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140728150510')
812
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
813
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
814
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
815
+ Migrating to CreateTables (20140728150510)
816
+  (0.1ms) begin transaction
817
+  (0.5ms) DROP TABLE "some_legacy_table"
818
+  (1.0ms) DROP TABLE "company"
819
+  (0.2ms) DROP TABLE "tme_profiles"
820
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140728150510'
821
+  (1.4ms) commit transaction
822
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
823
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
824
+ Migrating to CreateTables (20140728150510)
825
+  (0.1ms) begin transaction
826
+  (0.5ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
827
+  (0.2ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
828
+  (1.7ms) rollback transaction
829
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
830
+ Migrating to CreateTables (20140728150510)
831
+  (0.1ms) begin transaction
832
+  (0.5ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
833
+  (0.2ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
834
+  (0.1ms) CREATE TABLE "some_legacy_table" ("code" varchar(255)) 
835
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728150510"]]
836
+  (1.3ms) commit transaction
837
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
838
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
839
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
840
+ Migrating to CreateTables (20140728150510)
841
+  (0.1ms) begin transaction
842
+  (0.4ms) DROP TABLE "some_legacy_table"
843
+  (1.0ms) DROP TABLE "company"
844
+  (0.2ms) DROP TABLE "tme_profiles"
845
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140728150510'
846
+  (1.3ms) commit transaction
847
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
848
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
849
+ Migrating to CreateTables (20140728150510)
850
+  (0.1ms) begin transaction
851
+  (0.4ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
852
+  (0.2ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
853
+  (0.2ms) CREATE TABLE "some_legacy_table" () 
854
+ SQLite3::SQLException: near ")": syntax error: CREATE TABLE "some_legacy_table" ()
855
+  (1.7ms) rollback transaction
856
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
857
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
858
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
859
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
860
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
861
+ Migrating to CreateTables (20140728150510)
862
+  (0.1ms) begin transaction
863
+  (0.4ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
864
+  (0.2ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
865
+  (0.1ms) CREATE TABLE "some_legacy_table" ("code" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
866
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728150510"]]
867
+  (2.5ms) commit transaction
868
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
869
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
870
+  (0.1ms) select sqlite_version(*)
871
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
872
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
873
+ Migrating to CreateTables (20140728150510)
874
+  (0.1ms) begin transaction
875
+  (0.4ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
876
+  (0.1ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
877
+  (0.2ms) CREATE TABLE "some_legacy_table" ("code" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
878
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728150510"]]
879
+  (1.2ms) commit transaction
880
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
881
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
882
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
883
+ Migrating to CreateTables (20140728150510)
884
+  (0.1ms) begin transaction
885
+  (0.4ms) DROP TABLE "some_legacy_table"
886
+  (0.9ms) DROP TABLE "company"
887
+  (0.2ms) DROP TABLE "tme_profiles"
888
+ SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140728150510'
889
+  (4.3ms) commit transaction
890
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
891
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
892
+ Migrating to CreateTables (20140728150510)
893
+  (0.1ms) begin transaction
894
+  (0.5ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
895
+  (0.2ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
896
+  (1.6ms) rollback transaction
897
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
898
+ Migrating to CreateTables (20140728150510)
899
+  (0.1ms) begin transaction
900
+  (0.5ms) CREATE TABLE "tme_profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
901
+  (0.2ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
902
+  (0.1ms) CREATE TABLE "some_legacy_table" ("code" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
903
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728150510"]]
904
+  (2.5ms) commit transaction
905
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
906
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
907
+  (0.1ms) begin transaction
908
+ -------------------------------------------------------
909
+ ModelFromTableGeneratorTest: test_all_files_are_created
910
+ -------------------------------------------------------
911
+  (0.1ms) rollback transaction
912
+  (0.1ms) begin transaction
913
+ ----------------------------------------------------------------
914
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
915
+ ----------------------------------------------------------------
916
+  (0.1ms) rollback transaction
917
+  (0.1ms) begin transaction
918
+ --------------------------------------------------
919
+ ModelFromTableGeneratorTest: test_rails_convension
920
+ --------------------------------------------------
921
+  (0.1ms) rollback transaction
922
+  (0.1ms) begin transaction
923
+ ------------------------------------------------------------------------------------
924
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
925
+ ------------------------------------------------------------------------------------
926
+  (0.1ms) rollback transaction
927
+  (0.1ms) begin transaction
928
+ --------------------------------------------------------------------
929
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
930
+ --------------------------------------------------------------------
931
+  (0.1ms) rollback transaction
932
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
933
+  (0.1ms) begin transaction
934
+ -------------------------------------------------------
935
+ ModelFromTableGeneratorTest: test_all_files_are_created
936
+ -------------------------------------------------------
937
+  (0.1ms) rollback transaction
938
+  (0.1ms) begin transaction
939
+ ----------------------------------------------------------------
940
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
941
+ ----------------------------------------------------------------
942
+  (0.1ms) rollback transaction
943
+  (0.1ms) begin transaction
944
+ --------------------------------------------------
945
+ ModelFromTableGeneratorTest: test_rails_convension
946
+ --------------------------------------------------
947
+  (0.1ms) rollback transaction
948
+  (0.1ms) begin transaction
949
+ ------------------------------------------------------------------------------------
950
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
951
+ ------------------------------------------------------------------------------------
952
+  (0.1ms) rollback transaction
953
+  (0.1ms) begin transaction
954
+ --------------------------------------------------------------------
955
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
956
+ --------------------------------------------------------------------
957
+  (0.1ms) rollback transaction
958
+  (3.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
959
+  (0.1ms) select sqlite_version(*)
960
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
961
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
962
+ Migrating to CreateTables (20140728150510)
963
+  (0.1ms) begin transaction
964
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
965
+  (0.1ms) CREATE TABLE "company" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) 
966
+  (0.2ms) CREATE TABLE "legacy_table" ("code" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
967
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140728150510"]]
968
+  (1.2ms) commit transaction
969
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
970
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
971
+  (0.1ms) begin transaction
972
+ -------------------------------------------------------
973
+ ModelFromTableGeneratorTest: test_all_files_are_created
974
+ -------------------------------------------------------
975
+  (0.1ms) rollback transaction
976
+  (0.1ms) begin transaction
977
+ ----------------------------------------------------------------
978
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
979
+ ----------------------------------------------------------------
980
+  (0.1ms) rollback transaction
981
+  (0.1ms) begin transaction
982
+ --------------------------------------------------
983
+ ModelFromTableGeneratorTest: test_rails_convension
984
+ --------------------------------------------------
985
+  (0.1ms) rollback transaction
986
+  (0.1ms) begin transaction
987
+ ------------------------------------------------------------------------------------
988
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
989
+ ------------------------------------------------------------------------------------
990
+  (0.1ms) rollback transaction
991
+  (0.0ms) begin transaction
992
+ --------------------------------------------------------------------
993
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
994
+ --------------------------------------------------------------------
995
+  (0.1ms) rollback transaction
996
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
997
+  (0.1ms) begin transaction
998
+ -------------------------------------------------------
999
+ ModelFromTableGeneratorTest: test_all_files_are_created
1000
+ -------------------------------------------------------
1001
+  (0.1ms) rollback transaction
1002
+  (0.1ms) begin transaction
1003
+ ----------------------------------------------------------------
1004
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
1005
+ ----------------------------------------------------------------
1006
+  (0.1ms) rollback transaction
1007
+  (0.1ms) begin transaction
1008
+ --------------------------------------------------
1009
+ ModelFromTableGeneratorTest: test_rails_convension
1010
+ --------------------------------------------------
1011
+  (0.1ms) rollback transaction
1012
+  (0.1ms) begin transaction
1013
+ ------------------------------------------------------------------------------------
1014
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
1015
+ ------------------------------------------------------------------------------------
1016
+  (0.1ms) rollback transaction
1017
+  (0.2ms) begin transaction
1018
+ --------------------------------------------------------------------
1019
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
1020
+ --------------------------------------------------------------------
1021
+  (0.1ms) rollback transaction
1022
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1023
+  (0.1ms) begin transaction
1024
+ -------------------------------------------------------
1025
+ ModelFromTableGeneratorTest: test_all_files_are_created
1026
+ -------------------------------------------------------
1027
+  (0.1ms) rollback transaction
1028
+  (0.1ms) begin transaction
1029
+ ----------------------------------------------------------------
1030
+ ModelFromTableGeneratorTest: test_not_create_schema_migration.rb
1031
+ ----------------------------------------------------------------
1032
+  (0.1ms) rollback transaction
1033
+  (0.1ms) begin transaction
1034
+ --------------------------------------------------
1035
+ ModelFromTableGeneratorTest: test_rails_convension
1036
+ --------------------------------------------------
1037
+  (0.1ms) rollback transaction
1038
+  (0.1ms) begin transaction
1039
+ ------------------------------------------------------------------------------------
1040
+ ModelFromTableGeneratorTest: test_table_name_and_primary_key_is_not_rails_convension
1041
+ ------------------------------------------------------------------------------------
1042
+  (0.1ms) rollback transaction
1043
+  (0.1ms) begin transaction
1044
+ --------------------------------------------------------------------
1045
+ ModelFromTableGeneratorTest: test_table_name_is_not_rails_convension
1046
+ --------------------------------------------------------------------
1047
+  (0.1ms) rollback transaction