rails_attr_enum 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/CHANGELOG.md +5 -0
- data/lib/rails_attr_enum.rb +2 -1
- data/lib/rails_attr_enum/version.rb +1 -1
- data/test/dummy/bin/bundle +0 -0
- data/test/dummy/bin/rails +0 -0
- data/test/dummy/bin/rake +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +3 -0
- data/test/dummy/log/test.log +491 -0
- data/test/dummy/rails +0 -0
- data/test/dummy/rake +0 -0
- data/test/dummy/rspec +0 -0
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NTgzOWNhOTk5YmVmYzU1NGNhMzc0OTUyNDhhZGMwODU0ODhmMjdlZg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MGI3ZmI5M2ZkZjRhMTc4MzE5ZTdiZmNmZGQ5OTAwYTFhOTBjODg5NA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZTM3MjIxZDY5NzgxNzc0ODI5Y2FkNDhiNDY1NzVmNmQ2N2YwNDdhODg2MDA0
|
10
|
+
MjU4NGRkMjM0NmUyMDQxNjJhZTIyZmY4Y2I1ZTg2M2Y0NWEyMzM0YjE4OGM5
|
11
|
+
NGE1MjhhOTViNjA1ZGM1NTNiZTNhN2Y0NTBkYzkzZjc5YmUxYWY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
N2FhZDdkOTRjOGNhMjdmOTdmMmU1ODM2NzU0NGRlMDIxNjQ2OGJkOTBkYjFh
|
14
|
+
ZWM5MzQ5MTRiNTk4NzAxNDk4MTJjYjNkMTk3MTE4OWI3MWM4ZTVkYWM1NjQz
|
15
|
+
ZDZlZWI4YmY2NTU1MjVmYTUzNTQ5NDZjN2M3YzkwZTFmZTcxMTk=
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
### v0.2.0
|
2
|
+
* No longer raise an error when `attr_enum` is called on an attribute
|
3
|
+
that does not exist. Instead, a warning is sent via `puts` and the
|
4
|
+
enum is not set up.
|
5
|
+
|
1
6
|
### v0.1.1
|
2
7
|
* Added support for filtering results from `Enum.label_value_pairs` by
|
3
8
|
passinging in enum value keys as symbol arguments.
|
data/lib/rails_attr_enum.rb
CHANGED
@@ -33,7 +33,8 @@ module RailsAttrEnum
|
|
33
33
|
@_attr_enums ||= {}
|
34
34
|
|
35
35
|
if table_exists? && !column_names.include?(attr.name)
|
36
|
-
|
36
|
+
puts "Warning: Cannot create enum for '#{attr.name}' because that attribute does not exist for '#{self.name}'"
|
37
|
+
return
|
37
38
|
end
|
38
39
|
|
39
40
|
if @_attr_enums.any? { |(_, enm)| enm.attr_name == attr.name }
|
data/test/dummy/bin/bundle
CHANGED
File without changes
|
data/test/dummy/bin/rails
CHANGED
File without changes
|
data/test/dummy/bin/rake
CHANGED
File without changes
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -130,3 +130,6 @@ DEPRECATION WARNING: Model.scoped is deprecated. Please use Model.all instead. (
|
|
130
130
|
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
131
131
|
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131023212242')[0m
|
132
132
|
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
133
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
134
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
135
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -13352,3 +13352,494 @@ Migrating to CreateUsers (20131023212242)
|
|
13352
13352
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_2
|
13353
13353
|
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13354
13354
|
[1m[35m (0.0ms)[0m rollback transaction
|
13355
|
+
[1m[36m (12.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "role" integer, "created_at" datetime, "updated_at" datetime) [0m
|
13356
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
13357
|
+
[1m[36m (4.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
13358
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
13359
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131023212242')[0m
|
13360
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
13361
|
+
[1m[36m (8.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "role" integer, "created_at" datetime, "updated_at" datetime) [0m
|
13362
|
+
[1m[35m (4.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
13363
|
+
[1m[36m (4.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
13364
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
13365
|
+
[1m[36m (0.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131023212242')[0m
|
13366
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
13367
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13368
|
+
[1m[35m (4.0ms)[0m DELETE FROM "users";
|
13369
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
13370
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
13371
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13372
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13373
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13374
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13375
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13376
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13377
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13378
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13379
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13380
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13381
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13382
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13383
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13384
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13385
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13386
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13387
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13388
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13389
|
+
[1m[36m (4.0ms)[0m [1mbegin transaction[0m
|
13390
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13391
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13392
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13393
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13394
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13395
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13396
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13397
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13398
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13399
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13400
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13403
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13404
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13405
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13406
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13407
|
+
[1m[36mActiveRecord::SchemaMigration Load (4.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13408
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13409
|
+
[1m[35m (20.0ms)[0m DELETE FROM "users";
|
13410
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
13411
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
13412
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13413
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13414
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13415
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13416
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13417
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13418
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13419
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13420
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13421
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13422
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13423
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13424
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13425
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13426
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13427
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13428
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13429
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13430
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13431
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13432
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13433
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13434
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13435
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13436
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13437
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13438
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13439
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13440
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13441
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13442
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13443
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13444
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13445
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13446
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13447
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13448
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13449
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13450
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13451
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13452
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13453
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13454
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13456
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13457
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13458
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13459
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13460
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13461
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13462
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13463
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13464
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13465
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13466
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13468
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13470
|
+
[1m[36m (4.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13471
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13472
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13473
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13474
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13475
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13476
|
+
[1m[36m (4.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13477
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13480
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13481
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13482
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13483
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13485
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13487
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13488
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13489
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13490
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13492
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13493
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13494
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13495
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13497
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13498
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13499
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13500
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13501
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13502
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13503
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13504
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13505
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13506
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13507
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13508
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13509
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13510
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13511
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13512
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13513
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13514
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13515
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13516
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13517
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13518
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13519
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13520
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13521
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13522
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13523
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13524
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13525
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13526
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13527
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13528
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13529
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13530
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13531
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13532
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13533
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13534
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13535
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13536
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13537
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13538
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13539
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13540
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13541
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13542
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13543
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13544
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13545
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13546
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13548
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13549
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13550
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13551
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13552
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13553
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13554
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13555
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13556
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13557
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13558
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13559
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13560
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13561
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13562
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13563
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13564
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13565
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13566
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13567
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13568
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13569
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13570
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13571
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13572
|
+
[1m[36mSQL (36.0ms)[0m [1mINSERT INTO "users" ("created_at", "role", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 21 Jan 2014 20:39:39 UTC +00:00], ["role", 1], ["updated_at", Tue, 21 Jan 2014 20:39:39 UTC +00:00]]
|
13573
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "role", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 21 Jan 2014 20:39:39 UTC +00:00], ["role", 1], ["updated_at", Tue, 21 Jan 2014 20:39:39 UTC +00:00]]
|
13574
|
+
[1m[36m (4.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13575
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13576
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13577
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13578
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13579
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13580
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "role", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 21 Jan 2014 20:39:40 UTC +00:00], ["role", 1], ["updated_at", Tue, 21 Jan 2014 20:39:40 UTC +00:00]]
|
13581
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "role", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 21 Jan 2014 20:39:40 UTC +00:00], ["role", 1], ["updated_at", Tue, 21 Jan 2014 20:39:40 UTC +00:00]]
|
13582
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."role" = 0[0m
|
13583
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13584
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13585
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13586
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13587
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13588
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13589
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13590
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13591
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13592
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13593
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13594
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13595
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13596
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13597
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13598
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13599
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13600
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13601
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13602
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13603
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13604
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13605
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13606
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13607
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13608
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13609
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13610
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13611
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13612
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13613
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13614
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13615
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13616
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13617
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13618
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13619
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13620
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13621
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13622
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13623
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13624
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13625
|
+
[1m[35m (4.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13626
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13627
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13628
|
+
[1m[35m (4.0ms)[0m DELETE FROM "users";
|
13629
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
13630
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
13631
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13632
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13633
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13634
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13635
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13636
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13637
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13638
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13640
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13641
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13642
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13643
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13644
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13645
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13646
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13647
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13648
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13649
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13650
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13651
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13652
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13653
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13654
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13655
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13656
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13657
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13658
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13659
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13660
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13661
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13662
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13663
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13664
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13665
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13666
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13668
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13669
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13670
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13671
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13672
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13673
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13674
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13675
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13676
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13677
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13678
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13679
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13680
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13681
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13682
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13683
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13684
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13685
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13686
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13687
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13688
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13689
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13690
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13691
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13692
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13693
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13694
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13695
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13696
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13698
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13699
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13700
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13701
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13702
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13703
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13704
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13705
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13706
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13707
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13708
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13709
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13711
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13712
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13713
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13714
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13715
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13716
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13717
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13718
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13719
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13720
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13721
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13722
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13723
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13724
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13725
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13726
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13727
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13728
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13729
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13730
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13731
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13732
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13733
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13734
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13735
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13736
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13737
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13738
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13739
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13740
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13741
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13742
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13743
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13744
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13745
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13747
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13748
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13749
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13750
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13751
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13752
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13753
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13754
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13755
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13756
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13757
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13758
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13759
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13760
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13761
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13762
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13763
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13764
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13765
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13766
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13767
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13768
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13769
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13770
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13771
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13772
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13773
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13774
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13775
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13776
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13777
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13778
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13779
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13780
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13781
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13782
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13784
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13785
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13786
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13787
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13788
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13789
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13790
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13791
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13792
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13793
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13794
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13795
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13796
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13797
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13798
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13799
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13800
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13801
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13802
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13803
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13804
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13805
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13807
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13808
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13809
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13810
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13811
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13812
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13813
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13814
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13815
|
+
[1m[36mSQL (8.0ms)[0m [1mINSERT INTO "users" ("created_at", "role", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 21 Jan 2014 20:39:54 UTC +00:00], ["role", 1], ["updated_at", Tue, 21 Jan 2014 20:39:54 UTC +00:00]]
|
13816
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "role", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 21 Jan 2014 20:39:54 UTC +00:00], ["role", 1], ["updated_at", Tue, 21 Jan 2014 20:39:54 UTC +00:00]]
|
13817
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
13818
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13819
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13820
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13821
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13822
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13823
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("created_at", "role", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 21 Jan 2014 20:39:54 UTC +00:00], ["role", 1], ["updated_at", Tue, 21 Jan 2014 20:39:54 UTC +00:00]]
|
13824
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("created_at", "role", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 21 Jan 2014 20:39:54 UTC +00:00], ["role", 1], ["updated_at", Tue, 21 Jan 2014 20:39:54 UTC +00:00]]
|
13825
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."role" = 0[0m
|
13826
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13827
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13828
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13829
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13830
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13831
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13832
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13833
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13834
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13835
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13836
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13837
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13838
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13839
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13840
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13841
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13842
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13843
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13844
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
13845
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
data/test/dummy/rails
CHANGED
File without changes
|
data/test/dummy/rake
CHANGED
File without changes
|
data/test/dummy/rspec
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_attr_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Fairbank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '>='
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - '>='
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - '>='
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - '>='
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Create enums for Rails model attributes like enums in C languages
|
@@ -116,17 +116,17 @@ require_paths:
|
|
116
116
|
- lib
|
117
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
|
-
- - '>='
|
119
|
+
- - ! '>='
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- - '>='
|
124
|
+
- - ! '>='
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.1.
|
129
|
+
rubygems_version: 2.1.10
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Create enum values for a Rails model's attribute
|