lazy_columns 0.5.4 → 0.5.5
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.
- data/lib/lazy_columns/acts_as_lazy_column_loader.rb +5 -1
- data/lib/lazy_columns/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +13 -0
- data/spec/dummy/log/test.log +565 -0
- data/spec/lazy_columns/acts_as_lazy_column_loader_spec.rb +8 -1
- metadata +7 -5
@@ -22,7 +22,11 @@ module LazyColumns
|
|
22
22
|
|
23
23
|
def define_lazy_accessor_for(column)
|
24
24
|
define_method column do
|
25
|
-
|
25
|
+
unless has_attribute?(column)
|
26
|
+
changes_before_reload = self.changes.clone
|
27
|
+
self.reload
|
28
|
+
changes_before_reload.each{|attribute_name, values| self.send("#{attribute_name}=", values[1])}
|
29
|
+
end
|
26
30
|
read_attribute column
|
27
31
|
end
|
28
32
|
end
|
data/lib/lazy_columns/version.rb
CHANGED
Binary file
|
@@ -1 +1,14 @@
|
|
1
1
|
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
6
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
7
|
+
[1m[35m (1.0ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
8
|
+
Migrating to CreateActions (20130107093428)
|
9
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "actions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "comments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
11
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130107093428')[0m
|
12
|
+
[1m[35m (0.7ms)[0m commit transaction
|
13
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
14
|
+
Connecting to database specified by database.yml
|
data/spec/dummy/log/test.log
CHANGED
@@ -1429,3 +1429,568 @@ Connecting to database specified by database.yml
|
|
1429
1429
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1430
1430
|
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1431
1431
|
[1m[35m (0.3ms)[0m rollback transaction
|
1432
|
+
Connecting to database specified by database.yml
|
1433
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1434
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1435
|
+
[1m[36mSQL (7.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1436
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1437
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1438
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1439
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1441
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1442
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1443
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1444
|
+
[1m[35mAction Load (0.1ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1
|
1445
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1446
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1447
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1448
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1449
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1450
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1451
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1452
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-23 09:42:21.288238' WHERE "actions"."id" = 18
|
1453
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1454
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1455
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1456
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1457
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1458
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1459
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1460
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1461
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1462
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1463
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1464
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1465
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1466
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1467
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1468
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some new comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", nil], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1469
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1470
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1471
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1472
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1473
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1474
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1475
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1476
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1477
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1478
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1479
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1480
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT title FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
1481
|
+
[1m[36mActionWith2LazyColumns Load (0.0ms)[0m [1mSELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1482
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1484
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1485
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1486
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1487
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1488
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1489
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-23 09:42:21.316958' WHERE "actions"."id" = 18[0m
|
1490
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1491
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1492
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1493
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1494
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00], ["title", "some action"], ["updated_at", Sat, 23 Feb 2013 09:42:21 UTC +00:00]]
|
1495
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1496
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1497
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1498
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1499
|
+
Connecting to database specified by database.yml
|
1500
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1501
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1502
|
+
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:02:34 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:02:34 UTC +00:00]]
|
1503
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1504
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1505
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1506
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1507
|
+
Connecting to database specified by database.yml
|
1508
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1509
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1510
|
+
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:03:06 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:03:06 UTC +00:00]]
|
1511
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1512
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1513
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1514
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1515
|
+
Connecting to database specified by database.yml
|
1516
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1517
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1518
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:03:45 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:03:45 UTC +00:00]]
|
1519
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1520
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1521
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1522
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
1523
|
+
Connecting to database specified by database.yml
|
1524
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1525
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1526
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:04:01 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:04:01 UTC +00:00]]
|
1527
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1528
|
+
[1m[36mAction Load (0.4ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1529
|
+
[1m[35mAction Load (0.2ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1530
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1531
|
+
Connecting to database specified by database.yml
|
1532
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1533
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1534
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:05:27 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:05:27 UTC +00:00]]
|
1535
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1536
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1537
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1538
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
1539
|
+
Connecting to database specified by database.yml
|
1540
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1541
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1542
|
+
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:05:40 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:05:40 UTC +00:00]]
|
1543
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1544
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1545
|
+
Connecting to database specified by database.yml
|
1546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1547
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1548
|
+
[1m[36mSQL (5047.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:06:37 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:06:37 UTC +00:00]]
|
1549
|
+
SQLite3::BusyException: database is locked: INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)
|
1550
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1551
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1552
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1553
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1554
|
+
Connecting to database specified by database.yml
|
1555
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1556
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1557
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:06:54 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:06:54 UTC +00:00]]
|
1558
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1559
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1560
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1561
|
+
[1m[36m (2.1ms)[0m [1mrollback transaction[0m
|
1562
|
+
Connecting to database specified by database.yml
|
1563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1564
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1565
|
+
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:08:02 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:08:02 UTC +00:00]]
|
1566
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1567
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1568
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1569
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1570
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1571
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1572
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
1573
|
+
Connecting to database specified by database.yml
|
1574
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1575
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1576
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:08:24 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:08:24 UTC +00:00]]
|
1577
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1578
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1579
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1580
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1581
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1582
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1583
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
1584
|
+
Connecting to database specified by database.yml
|
1585
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1586
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1587
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:09:15 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:09:15 UTC +00:00]]
|
1588
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1589
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1590
|
+
Connecting to database specified by database.yml
|
1591
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1592
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1593
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:10:16 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:10:16 UTC +00:00]]
|
1594
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1595
|
+
[1m[36mAction Load (0.3ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1596
|
+
[1m[35mAction Load (0.2ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1597
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1598
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1599
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1600
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1601
|
+
Connecting to database specified by database.yml
|
1602
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1603
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1604
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:12:07 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:12:07 UTC +00:00]]
|
1605
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1606
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1607
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1608
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1609
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1610
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1611
|
+
[1m[35m (1.8ms)[0m rollback transaction
|
1612
|
+
Connecting to database specified by database.yml
|
1613
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1614
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1615
|
+
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:12:41 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:12:41 UTC +00:00]]
|
1616
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1617
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1618
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1619
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1620
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1621
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1622
|
+
[1m[35m (1.8ms)[0m rollback transaction
|
1623
|
+
Connecting to database specified by database.yml
|
1624
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1625
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1626
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:12:52 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:12:52 UTC +00:00]]
|
1627
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1628
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1629
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1630
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1631
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1632
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1633
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
1634
|
+
Connecting to database specified by database.yml
|
1635
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1636
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1637
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:12:55 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:12:55 UTC +00:00]]
|
1638
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1639
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1640
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1641
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1642
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1643
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1644
|
+
[1m[35m (2.1ms)[0m rollback transaction
|
1645
|
+
Connecting to database specified by database.yml
|
1646
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1647
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1648
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:13:20 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:13:20 UTC +00:00]]
|
1649
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1650
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1651
|
+
[1m[35mAction Load (0.2ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1652
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1653
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1654
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1655
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1656
|
+
Connecting to database specified by database.yml
|
1657
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
1658
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1659
|
+
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:13:48 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:13:48 UTC +00:00]]
|
1660
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1661
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1662
|
+
Connecting to database specified by database.yml
|
1663
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1664
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1665
|
+
[1m[36mSQL (5052.8ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:14:19 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:14:19 UTC +00:00]]
|
1666
|
+
SQLite3::BusyException: database is locked: INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)
|
1667
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1668
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1669
|
+
[1m[35mAction Load (0.2ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1670
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1671
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1672
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1673
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1674
|
+
Connecting to database specified by database.yml
|
1675
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1676
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1677
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:14:31 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:14:31 UTC +00:00]]
|
1678
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1679
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1680
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1681
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1682
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:14:31.392781' WHERE "actions"."id" = 18
|
1683
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1684
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1685
|
+
[1m[36m (2.2ms)[0m [1mrollback transaction[0m
|
1686
|
+
Connecting to database specified by database.yml
|
1687
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1688
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1689
|
+
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:14:41 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:14:41 UTC +00:00]]
|
1690
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1691
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1692
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1693
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1694
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:15:30.828507' WHERE "actions"."id" = 18
|
1695
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1696
|
+
[1m[35mAction Load (0.2ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1697
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1698
|
+
Connecting to database specified by database.yml
|
1699
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1700
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1701
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:15:48 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:15:48 UTC +00:00]]
|
1702
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1703
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1704
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1705
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1706
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:15:48.928815' WHERE "actions"."id" = 18
|
1707
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1708
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1709
|
+
[1m[36m (1.8ms)[0m [1mrollback transaction[0m
|
1710
|
+
Connecting to database specified by database.yml
|
1711
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1712
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1713
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:16:44 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:16:44 UTC +00:00]]
|
1714
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1715
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1716
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1717
|
+
[1m[36m (1.7ms)[0m [1mrollback transaction[0m
|
1718
|
+
Connecting to database specified by database.yml
|
1719
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1720
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1721
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:16:54 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:16:54 UTC +00:00]]
|
1722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1723
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1724
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1725
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1726
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:16:54.993130' WHERE "actions"."id" = 18
|
1727
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1728
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1729
|
+
[1m[36m (1.8ms)[0m [1mrollback transaction[0m
|
1730
|
+
Connecting to database specified by database.yml
|
1731
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1732
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1733
|
+
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:18:24 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:18:24 UTC +00:00]]
|
1734
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1735
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1736
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1737
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1738
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:19:10.678842' WHERE "actions"."id" = 18
|
1739
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1740
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1741
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1742
|
+
Connecting to database specified by database.yml
|
1743
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1744
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1745
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:19:12 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:19:12 UTC +00:00]]
|
1746
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1747
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1748
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1749
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1750
|
+
[1m[35m (0.4ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:19:51.358709' WHERE "actions"."id" = 18
|
1751
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1752
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1753
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1754
|
+
Connecting to database specified by database.yml
|
1755
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1756
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1757
|
+
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:19:53 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:19:53 UTC +00:00]]
|
1758
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1759
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1760
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1761
|
+
Connecting to database specified by database.yml
|
1762
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1763
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1764
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1765
|
+
[1m[35m (0.4ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:21:18.724579' WHERE "actions"."id" = 18
|
1766
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1767
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1768
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
1769
|
+
[1m[36mSQL (3465.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:21:15 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:21:15 UTC +00:00]]
|
1770
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1771
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1772
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1773
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1774
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:21:18.815707' WHERE "actions"."id" = 18
|
1775
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1776
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1777
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
1778
|
+
Connecting to database specified by database.yml
|
1779
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1780
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1781
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:22:14 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:22:14 UTC +00:00]]
|
1782
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1783
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1784
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1785
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1786
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:22:14.913890' WHERE "actions"."id" = 18
|
1787
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1788
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1789
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
1790
|
+
Connecting to database specified by database.yml
|
1791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1792
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1793
|
+
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:23:36 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:23:36 UTC +00:00]]
|
1794
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1795
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1796
|
+
Connecting to database specified by database.yml
|
1797
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1798
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1799
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:24:19 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:24:19 UTC +00:00]]
|
1800
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1801
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1802
|
+
[1m[35mAction Load (0.2ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1803
|
+
Connecting to database specified by database.yml
|
1804
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1805
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1806
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:24:35 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:24:35 UTC +00:00]]
|
1807
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1808
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1809
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1810
|
+
Connecting to database specified by database.yml
|
1811
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1812
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1813
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:25:14 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:25:14 UTC +00:00]]
|
1814
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1815
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1816
|
+
Connecting to database specified by database.yml
|
1817
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1818
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1819
|
+
[1m[36mSQL (5055.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:27:41 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:27:41 UTC +00:00]]
|
1820
|
+
SQLite3::BusyException: database is locked: INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)
|
1821
|
+
[1m[35m (0.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1822
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1823
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1824
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1825
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some action', "updated_at" = '2013-02-24 09:27:52.606055' WHERE "actions"."id" = 18
|
1826
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1827
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1828
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1829
|
+
Connecting to database specified by database.yml
|
1830
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1831
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1832
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:27:56 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:27:56 UTC +00:00]]
|
1833
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1834
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1835
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1836
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1837
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1838
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1839
|
+
[1m[35m (2.3ms)[0m rollback transaction
|
1840
|
+
Connecting to database specified by database.yml
|
1841
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1842
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1843
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:28:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:28:32 UTC +00:00]]
|
1844
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1845
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1846
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1847
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1848
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1849
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1850
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1851
|
+
Connecting to database specified by database.yml
|
1852
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1853
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1854
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:29:09 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:29:09 UTC +00:00]]
|
1855
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1856
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1857
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1858
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1859
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1860
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1861
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1862
|
+
Connecting to database specified by database.yml
|
1863
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1864
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1865
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:30:19 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:30:19 UTC +00:00]]
|
1866
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1867
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1868
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1869
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1870
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1871
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1872
|
+
[1m[35m (1.8ms)[0m rollback transaction
|
1873
|
+
Connecting to database specified by database.yml
|
1874
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1875
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1876
|
+
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:30:24 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:30:24 UTC +00:00]]
|
1877
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1878
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1879
|
+
[1m[35mAction Load (0.1ms)[0m SELECT comments FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1880
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1881
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1882
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1883
|
+
Connecting to database specified by database.yml
|
1884
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1885
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1886
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1887
|
+
[1m[36mSQL (2764.1ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:32:49 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:32:49 UTC +00:00]]
|
1888
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1889
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1890
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1891
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1892
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 09:32:52.460648' WHERE "actions"."id" = 18
|
1893
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1894
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1895
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
1896
|
+
Connecting to database specified by database.yml
|
1897
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1898
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1899
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:33:11 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:33:11 UTC +00:00]]
|
1900
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1901
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1902
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1903
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1904
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 09:33:11.053956' WHERE "actions"."id" = 18
|
1905
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1906
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1907
|
+
[1m[36m (1.8ms)[0m [1mrollback transaction[0m
|
1908
|
+
Connecting to database specified by database.yml
|
1909
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1910
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1911
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:33:35 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:33:35 UTC +00:00]]
|
1912
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1913
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1914
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1915
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1916
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 09:33:35.675178' WHERE "actions"."id" = 18
|
1917
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1918
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1919
|
+
[1m[36m (2.3ms)[0m [1mrollback transaction[0m
|
1920
|
+
Connecting to database specified by database.yml
|
1921
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1922
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1923
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1924
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1925
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1926
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1927
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1928
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 09:34:05.677441' WHERE "actions"."id" = 18
|
1929
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1930
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1931
|
+
[1m[36m (1.7ms)[0m [1mrollback transaction[0m
|
1932
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1933
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1934
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1935
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1936
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1937
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1938
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1939
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1940
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1941
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1942
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1943
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1944
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1945
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 09:34:05.688053' WHERE "actions"."id" = 18[0m
|
1946
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1947
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1948
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1949
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1950
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1951
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1952
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1953
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1954
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1955
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1956
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1957
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1958
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1959
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1960
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1961
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1962
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1963
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
1964
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
1965
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1966
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1967
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1968
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1969
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1970
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1971
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1972
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1973
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1974
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1975
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1976
|
+
[1m[35mAction Load (0.1ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1977
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1978
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some new comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", nil], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1979
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1980
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1981
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1982
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1983
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1984
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1985
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
1986
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1987
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 09:34:05.737432' WHERE "actions"."id" = 18[0m
|
1988
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1989
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1990
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1991
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1992
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 09:34:05 UTC +00:00]]
|
1993
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1994
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
1995
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1[0m
|
1996
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
@@ -20,7 +20,7 @@ describe LazyColumns::ActsAsLazyColumnLoader do
|
|
20
20
|
@action.comments
|
21
21
|
end
|
22
22
|
|
23
|
-
it "should not reload the object
|
23
|
+
it "should not reload the object after the column was fetched" do
|
24
24
|
@action.comments
|
25
25
|
@action.should_not_receive :reload
|
26
26
|
@action.comments
|
@@ -48,6 +48,13 @@ describe LazyColumns::ActsAsLazyColumnLoader do
|
|
48
48
|
@action.title.should == "some action"
|
49
49
|
@action.comments.should == "some comments"
|
50
50
|
end
|
51
|
+
|
52
|
+
it "should let you modify normal attributes" do
|
53
|
+
@action.title = 'some new title'
|
54
|
+
@action.comments
|
55
|
+
@action.save!
|
56
|
+
@action.reload.title.should == 'some new title'
|
57
|
+
end
|
51
58
|
end
|
52
59
|
|
53
60
|
def create_and_reload_action_from_db(klass=Action)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazy_columns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- spec/dummy/config/locales/en.yml
|
113
113
|
- spec/dummy/config/routes.rb
|
114
114
|
- spec/dummy/config.ru
|
115
|
+
- spec/dummy/db/development.sqlite3
|
115
116
|
- spec/dummy/db/migrate/20130107093428_create_actions.rb
|
116
117
|
- spec/dummy/db/schema.rb
|
117
118
|
- spec/dummy/db/test.sqlite3
|
@@ -141,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
142
|
version: '0'
|
142
143
|
segments:
|
143
144
|
- 0
|
144
|
-
hash:
|
145
|
+
hash: 3751127418290046231
|
145
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
147
|
none: false
|
147
148
|
requirements:
|
@@ -150,10 +151,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
151
|
version: '0'
|
151
152
|
segments:
|
152
153
|
- 0
|
153
|
-
hash:
|
154
|
+
hash: 3751127418290046231
|
154
155
|
requirements: []
|
155
156
|
rubyforge_project:
|
156
|
-
rubygems_version: 1.8.
|
157
|
+
rubygems_version: 1.8.23
|
157
158
|
signing_key:
|
158
159
|
specification_version: 3
|
159
160
|
summary: Rails plugin that let you configure ActiveRecord columns to be loaded lazily
|
@@ -180,6 +181,7 @@ test_files:
|
|
180
181
|
- spec/dummy/config/locales/en.yml
|
181
182
|
- spec/dummy/config/routes.rb
|
182
183
|
- spec/dummy/config.ru
|
184
|
+
- spec/dummy/db/development.sqlite3
|
183
185
|
- spec/dummy/db/migrate/20130107093428_create_actions.rb
|
184
186
|
- spec/dummy/db/schema.rb
|
185
187
|
- spec/dummy/db/test.sqlite3
|