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.
@@ -8,6 +8,7 @@ class CreateValidationIssues < ActiveRecord::Migration
8
8
  #t.text :issued_by_ids
9
9
  t.text :notes
10
10
  t.integer :issue_count
11
+ t.integer :success_count
11
12
 
12
13
  t.timestamps
13
14
  end
@@ -37,6 +37,7 @@ module ValidationIssues
37
37
  vi ||= ValidationIssue.new(:form_name => form_name, :issue_type => self.class.to_s)
38
38
  vi.notes ||= ''
39
39
  vi.issue_count ||= 0
40
+ vi.issue_hash ||= {}
40
41
  vi.save
41
42
  vi.increment_success_count!
42
43
  end
@@ -1,3 +1,3 @@
1
1
  module ValidationIssues
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -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
- :format => { :with => /w+/ },
9
- :allow_blank => true
7
+ validates :nick_name, :presence => false#,
8
+ #:format => { :with => /w+/ },
9
+ #:allow_blank => true
10
10
  end
Binary file
Binary file
@@ -362,3 +362,101 @@ Migrating to CreateValidationIssues (20120722204204)
362
362
   (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
363
363
   (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
364
364
   (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
365
+ Connecting to database specified by database.yml
366
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
367
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
368
+ Migrating to CreateValidationIssues (20120722204204)
369
+  (0.0ms) select sqlite_version(*)
370
+  (0.0ms) begin transaction
371
+  (0.1ms) PRAGMA index_list("validation_issues")
372
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
373
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
374
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
375
+  (1.2ms) DROP INDEX "index_validation_issues_on_form_name_and_issue_type"
376
+  (0.0ms) PRAGMA index_list("validation_issues")
377
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
378
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
379
+  (0.7ms) DROP INDEX "index_validation_issues_on_issue_type"
380
+  (0.0ms) PRAGMA index_list("validation_issues")
381
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
382
+  (0.3ms) DROP INDEX "index_validation_issues_on_form_name"
383
+  (0.6ms) DROP TABLE "validation_issues"
384
+  (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20120722204204'
385
+  (0.7ms) commit transaction
386
+  (0.2ms) select sqlite_version(*)
387
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
388
+  (0.0ms) PRAGMA index_list("users")
389
+ Connecting to database specified by database.yml
390
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
391
+ Migrating to CreateUsers (20120722183345)
392
+ Migrating to CreateValidationIssues (20120722204204)
393
+  (0.0ms) select sqlite_version(*)
394
+  (0.0ms) begin transaction
395
+  (1.3ms) 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
+  (0.0ms) PRAGMA index_list("validation_issues")
397
+  (0.1ms) CREATE INDEX "index_validation_issues_on_form_name" ON "validation_issues" ("form_name")
398
+  (0.0ms) PRAGMA index_list("validation_issues")
399
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
400
+  (0.1ms) CREATE INDEX "index_validation_issues_on_issue_type" ON "validation_issues" ("issue_type")
401
+  (0.0ms) PRAGMA index_list("validation_issues")
402
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
403
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
404
+  (0.4ms) CREATE UNIQUE INDEX "index_validation_issues_on_form_name_and_issue_type" ON "validation_issues" ("form_name", "issue_type")
405
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120722204204')
406
+  (0.8ms) commit transaction
407
+  (0.3ms) select sqlite_version(*)
408
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
409
+  (0.0ms) PRAGMA index_list("users")
410
+  (0.0ms) PRAGMA index_list("validation_issues")
411
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
412
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
413
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
414
+ Connecting to database specified by database.yml
415
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
416
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
417
+ Migrating to CreateValidationIssues (20120722204204)
418
+  (0.0ms) select sqlite_version(*)
419
+  (0.0ms) begin transaction
420
+  (0.1ms) PRAGMA index_list("validation_issues")
421
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
422
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
423
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
424
+  (0.3ms) DROP INDEX "index_validation_issues_on_form_name_and_issue_type"
425
+  (0.0ms) PRAGMA index_list("validation_issues")
426
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
427
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
428
+  (0.3ms) DROP INDEX "index_validation_issues_on_issue_type"
429
+  (0.0ms) PRAGMA index_list("validation_issues")
430
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
431
+  (0.1ms) DROP INDEX "index_validation_issues_on_form_name"
432
+  (0.2ms) DROP TABLE "validation_issues"
433
+  (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20120722204204'
434
+  (0.9ms) commit transaction
435
+  (0.3ms) select sqlite_version(*)
436
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
437
+  (0.0ms) PRAGMA index_list("users")
438
+ Connecting to database specified by database.yml
439
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
440
+ Migrating to CreateUsers (20120722183345)
441
+ Migrating to CreateValidationIssues (20120722204204)
442
+  (0.0ms) select sqlite_version(*)
443
+  (0.0ms) begin transaction
444
+  (0.5ms) 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
+  (0.0ms) PRAGMA index_list("validation_issues")
446
+  (0.1ms) CREATE INDEX "index_validation_issues_on_form_name" ON "validation_issues" ("form_name")
447
+  (0.0ms) PRAGMA index_list("validation_issues")
448
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
449
+  (0.1ms) CREATE INDEX "index_validation_issues_on_issue_type" ON "validation_issues" ("issue_type")
450
+  (0.0ms) PRAGMA index_list("validation_issues")
451
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
452
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')
453
+  (0.3ms) CREATE UNIQUE INDEX "index_validation_issues_on_form_name_and_issue_type" ON "validation_issues" ("form_name", "issue_type")
454
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120722204204')
455
+  (0.8ms) commit transaction
456
+  (0.3ms) select sqlite_version(*)
457
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
458
+  (0.0ms) PRAGMA index_list("users")
459
+  (0.0ms) PRAGMA index_list("validation_issues")
460
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name_and_issue_type')
461
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_issue_type')
462
+  (0.0ms) PRAGMA index_info('index_validation_issues_on_form_name')