validation_issues 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/valid_issues/templates/migration.rb +1 -0
- data/lib/validation_issues/acts_as_validation_issues.rb +1 -0
- data/lib/validation_issues/version.rb +1 -1
- data/test/dummy/app/models/user.rb +3 -3
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +98 -0
- data/test/dummy/log/test.log +1028 -0
- data/test/dummy/test/unit/user_test.rb +11 -0
- data/test/factories/users.rb +7 -0
- metadata +4 -2
@@ -4,7 +4,7 @@ class User < ActiveRecord::Base
|
|
4
4
|
|
5
5
|
validates :first_name, :presence => true
|
6
6
|
validates :last_name, :presence => true
|
7
|
-
validates :nick_name, :presence => false
|
8
|
-
|
9
|
-
|
7
|
+
validates :nick_name, :presence => false#,
|
8
|
+
#:format => { :with => /w+/ },
|
9
|
+
#:allow_blank => true
|
10
10
|
end
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -362,3 +362,101 @@ Migrating to CreateValidationIssues (20120722204204)
|
|
362
362
|
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
|
363
363
|
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
364
364
|
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
365
|
+
Connecting to database specified by database.yml
|
366
|
+
[1m[36m (0.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
367
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
368
|
+
Migrating to CreateValidationIssues (20120722204204)
|
369
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
370
|
+
[1m[35m (0.0ms)[0m begin transaction
|
371
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("validation_issues")[0m
|
372
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
|
373
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
374
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
375
|
+
[1m[36m (1.2ms)[0m [1mDROP INDEX "index_validation_issues_on_form_name_and_issue_type"[0m
|
376
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("validation_issues")
|
377
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
378
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
379
|
+
[1m[36m (0.7ms)[0m [1mDROP INDEX "index_validation_issues_on_issue_type"[0m
|
380
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("validation_issues")
|
381
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_form_name')[0m
|
382
|
+
[1m[35m (0.3ms)[0m DROP INDEX "index_validation_issues_on_form_name"
|
383
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "validation_issues"[0m
|
384
|
+
[1m[35m (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20120722204204'
|
385
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
386
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
387
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
388
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
389
|
+
Connecting to database specified by database.yml
|
390
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
391
|
+
Migrating to CreateUsers (20120722183345)
|
392
|
+
Migrating to CreateValidationIssues (20120722204204)
|
393
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
394
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
395
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "validation_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "issue_type" varchar(255), "form_name" varchar(255) NOT NULL, "issue_hash" text NOT NULL, "notes" text DEFAULT '', "issue_count" integer DEFAULT 0, "success_count" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
396
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("validation_issues")[0m
|
397
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_validation_issues_on_form_name" ON "validation_issues" ("form_name")
|
398
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("validation_issues")[0m
|
399
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
400
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_validation_issues_on_issue_type" ON "validation_issues" ("issue_type")[0m
|
401
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("validation_issues")
|
402
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
403
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
404
|
+
[1m[36m (0.4ms)[0m [1mCREATE UNIQUE INDEX "index_validation_issues_on_form_name_and_issue_type" ON "validation_issues" ("form_name", "issue_type")[0m
|
405
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120722204204')
|
406
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
407
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
408
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
409
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
410
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("validation_issues")[0m
|
411
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
|
412
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
413
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
414
|
+
Connecting to database specified by database.yml
|
415
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
416
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
417
|
+
Migrating to CreateValidationIssues (20120722204204)
|
418
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
419
|
+
[1m[35m (0.0ms)[0m begin transaction
|
420
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("validation_issues")[0m
|
421
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
|
422
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
423
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
424
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_validation_issues_on_form_name_and_issue_type"[0m
|
425
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("validation_issues")
|
426
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
427
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
428
|
+
[1m[36m (0.3ms)[0m [1mDROP INDEX "index_validation_issues_on_issue_type"[0m
|
429
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("validation_issues")
|
430
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_form_name')[0m
|
431
|
+
[1m[35m (0.1ms)[0m DROP INDEX "index_validation_issues_on_form_name"
|
432
|
+
[1m[36m (0.2ms)[0m [1mDROP TABLE "validation_issues"[0m
|
433
|
+
[1m[35m (0.1ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20120722204204'
|
434
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
435
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
436
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
437
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
438
|
+
Connecting to database specified by database.yml
|
439
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
440
|
+
Migrating to CreateUsers (20120722183345)
|
441
|
+
Migrating to CreateValidationIssues (20120722204204)
|
442
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
443
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
444
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "validation_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "issue_type" varchar(255), "form_name" varchar(255) NOT NULL, "issue_hash" text NOT NULL, "notes" text DEFAULT '', "issue_count" integer DEFAULT 0, "success_count" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
445
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("validation_issues")[0m
|
446
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_validation_issues_on_form_name" ON "validation_issues" ("form_name")
|
447
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("validation_issues")[0m
|
448
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
449
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_validation_issues_on_issue_type" ON "validation_issues" ("issue_type")[0m
|
450
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("validation_issues")
|
451
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
452
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|
453
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_validation_issues_on_form_name_and_issue_type" ON "validation_issues" ("form_name", "issue_type")[0m
|
454
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120722204204')
|
455
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
456
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
457
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
458
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("users")
|
459
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("validation_issues")[0m
|
460
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
|
461
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_info('index_validation_issues_on_issue_type')[0m
|
462
|
+
[1m[35m (0.0ms)[0m PRAGMA index_info('index_validation_issues_on_form_name')
|