lazy_columns 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/lazy_columns/version.rb +1 -1
- data/spec/dummy/app/models/action.rb +2 -0
- data/spec/dummy/app/models/person.rb +5 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130224111844_create_people.rb +10 -0
- data/spec/dummy/db/migrate/20130224112917_add_owner_to_actions.rb +7 -0
- data/spec/dummy/db/schema.rb +9 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +19 -0
- data/spec/dummy/log/test.log +546 -0
- data/spec/dummy/spec/models/person_spec.rb +5 -0
- data/spec/lazy_columns/acts_as_lazy_column_loader_spec.rb +32 -26
- metadata +16 -8
data/README.md
CHANGED
@@ -29,7 +29,7 @@ end
|
|
29
29
|
Now, when you fetch some action the comments are not loaded:
|
30
30
|
|
31
31
|
```ruby
|
32
|
-
Action.create(:
|
32
|
+
Action.create(title: "Some action", comments: "Some comments") # => <Action id: 1...>
|
33
33
|
action = Action.find(1) # => <Action id: 1, title: "Some action">
|
34
34
|
```
|
35
35
|
|
data/lib/lazy_columns/version.rb
CHANGED
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,13 +11,21 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20130224112917) do
|
15
15
|
|
16
16
|
create_table "actions", :force => true do |t|
|
17
17
|
t.string "title"
|
18
18
|
t.text "comments"
|
19
19
|
t.datetime "created_at", :null => false
|
20
20
|
t.datetime "updated_at", :null => false
|
21
|
+
t.integer "person_id"
|
22
|
+
end
|
23
|
+
|
24
|
+
create_table "people", :force => true do |t|
|
25
|
+
t.string "name"
|
26
|
+
t.text "cv"
|
27
|
+
t.datetime "created_at", :null => false
|
28
|
+
t.datetime "updated_at", :null => false
|
21
29
|
end
|
22
30
|
|
23
31
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -12,3 +12,22 @@ Migrating to CreateActions (20130107093428)
|
|
12
12
|
[1m[35m (0.7ms)[0m commit transaction
|
13
13
|
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
14
14
|
Connecting to database specified by database.yml
|
15
|
+
Connecting to database specified by database.yml
|
16
|
+
Connecting to database specified by database.yml
|
17
|
+
Connecting to database specified by database.yml
|
18
|
+
Connecting to database specified by database.yml
|
19
|
+
[1m[36m (0.9ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
20
|
+
Migrating to CreateActions (20130107093428)
|
21
|
+
Migrating to CreatePeople (20130224111844)
|
22
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
23
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
24
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "cv" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
25
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130224111844')[0m
|
26
|
+
[1m[35m (5.1ms)[0m commit transaction
|
27
|
+
Migrating to AddOwnerToActions (20130224112917)
|
28
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
29
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "actions" ADD "person_id" integer
|
30
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130224112917')[0m
|
31
|
+
[1m[35m (0.6ms)[0m commit transaction
|
32
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
33
|
+
Connecting to database specified by database.yml
|
data/spec/dummy/log/test.log
CHANGED
@@ -1994,3 +1994,549 @@ Connecting to database specified by database.yml
|
|
1994
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
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
1996
|
[1m[35m (0.3ms)[0m rollback transaction
|
1997
|
+
Connecting to database specified by database.yml
|
1998
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1999
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2000
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2001
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2002
|
+
[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]]
|
2003
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2004
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:34:32.618488' WHERE "actions"."id" = 18[0m
|
2005
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2006
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2007
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2008
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2009
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2010
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2011
|
+
[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]]
|
2012
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2013
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2014
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2015
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2016
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2017
|
+
[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]]
|
2018
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2019
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:34:32.644738' WHERE "actions"."id" = 18
|
2020
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2021
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2022
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2023
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2024
|
+
[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 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2025
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2026
|
+
[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]]
|
2027
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2028
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2029
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2030
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2031
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2032
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2033
|
+
[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]]
|
2034
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2035
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some new comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", nil], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2036
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2037
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2038
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2039
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2040
|
+
[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 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2041
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2042
|
+
[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]]
|
2043
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2044
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2045
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 11:34:32.659123' WHERE "actions"."id" = 18
|
2046
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2047
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2048
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2049
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2050
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2051
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2052
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2053
|
+
[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]]
|
2054
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2055
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2056
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2057
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
2058
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
2059
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2060
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2061
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2062
|
+
[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 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2063
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2064
|
+
[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]]
|
2065
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2066
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2067
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2068
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2069
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2070
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2071
|
+
[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]]
|
2072
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1[0m
|
2073
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2074
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2075
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2076
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:32 UTC +00:00]]
|
2077
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2078
|
+
[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]]
|
2079
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2080
|
+
Connecting to database specified by database.yml
|
2081
|
+
[1m[36m (0.9ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2082
|
+
Migrating to CreateActions (20130107093428)
|
2083
|
+
Migrating to CreatePeople (20130224111844)
|
2084
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
2085
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2086
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "cv" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
2087
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130224111844')[0m
|
2088
|
+
[1m[35m (4.4ms)[0m commit transaction
|
2089
|
+
Migrating to AddOwnerToActions (20130224112917)
|
2090
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
2091
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "actions" ADD "person_id" integer
|
2092
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130224112917')[0m
|
2093
|
+
[1m[35m (0.8ms)[0m commit transaction
|
2094
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
2095
|
+
Connecting to database specified by database.yml
|
2096
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2097
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2098
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2099
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2100
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2101
|
+
[1m[35m (1.7ms)[0m rollback transaction
|
2102
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2103
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2104
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2105
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2106
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2107
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2109
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 11:34:56.728359' WHERE "actions"."id" = 18
|
2110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2111
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2112
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2113
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2114
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2115
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2116
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2117
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2118
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2119
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:34:56.735190' WHERE "actions"."id" = 18
|
2120
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2121
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2122
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2123
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2124
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2125
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2126
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2127
|
+
[1m[35mAction Load (0.1ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1
|
2128
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2129
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2130
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2131
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2132
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2133
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2134
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2135
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some new comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", nil], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2136
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2137
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2138
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2139
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2140
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2141
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2142
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2143
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2144
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2145
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2146
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2147
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2148
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2149
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2150
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2151
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("created_at", "cv", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["cv", nil], ["name", "Some person"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2152
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2153
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2154
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2155
|
+
[1m[35m (0.1ms)[0m UPDATE "actions" SET "person_id" = 1, "updated_at" = '2013-02-24 11:34:56.766601' WHERE "actions"."id" = 18
|
2156
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2157
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2158
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1[0m
|
2159
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2160
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2161
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2162
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2163
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2164
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2165
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2166
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2167
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2168
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
2169
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
2170
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2171
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2172
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2173
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2174
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2175
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2176
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2177
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2179
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2180
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:34:56 UTC +00:00]]
|
2181
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2182
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2183
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2184
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:34:56.790608' WHERE "actions"."id" = 18[0m
|
2185
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2186
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2187
|
+
Connecting to database specified by database.yml
|
2188
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2189
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2190
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2191
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2192
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2193
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2194
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:35:57.304654' WHERE "actions"."id" = 18[0m
|
2195
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2196
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
2197
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2199
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2201
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2202
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2203
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2204
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2205
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2206
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2207
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2208
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2209
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2210
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2211
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 11:35:57.330043' WHERE "actions"."id" = 18
|
2212
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2213
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2214
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2216
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2217
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2218
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2219
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2220
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2221
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2222
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2223
|
+
[1m[35mAction Load (0.1ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1
|
2224
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2225
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2226
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2227
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2228
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2229
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2230
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2231
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:35:57.352058' WHERE "actions"."id" = 18
|
2232
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2233
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2234
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2235
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2236
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2237
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2238
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2239
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2240
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2241
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2242
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some new comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", nil], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2243
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2244
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2245
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2246
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2247
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2248
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2249
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2250
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2251
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2253
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2254
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("created_at", "cv", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["cv", nil], ["name", "Some person"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2255
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2256
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2257
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:35:57 UTC +00:00]]
|
2258
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2259
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2260
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2261
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2262
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "actions" SET "person_id" = 1, "updated_at" = '2013-02-24 11:35:57.380282' WHERE "actions"."id" = 18[0m
|
2263
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2264
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2265
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1
|
2266
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2267
|
+
Connecting to database specified by database.yml
|
2268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2269
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2270
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2272
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2273
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2274
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2275
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 11:36:12.774648' WHERE "actions"."id" = 18
|
2276
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2277
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2278
|
+
[1m[36m (1.8ms)[0m [1mrollback transaction[0m
|
2279
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2280
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2281
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2282
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2283
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2284
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2285
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("created_at", "cv", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["cv", nil], ["name", "Some person"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2287
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2289
|
+
[1m[35m (0.1ms)[0m UPDATE "actions" SET "person_id" = 1, "updated_at" = '2013-02-24 11:36:12.809395' WHERE "actions"."id" = 18
|
2290
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2291
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2292
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1[0m
|
2293
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2295
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2296
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2297
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2298
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2299
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
2300
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2301
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2302
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2303
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2304
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2305
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2306
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:36:12.824493' WHERE "actions"."id" = 18[0m
|
2307
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2308
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2309
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2310
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2311
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2312
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2313
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2314
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2315
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:36:12.832282' WHERE "actions"."id" = 18
|
2316
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2317
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2318
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2319
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2320
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2322
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2323
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2324
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2325
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2326
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2327
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2328
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2329
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2330
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1[0m
|
2331
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2333
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2334
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2335
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2336
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2337
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2338
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2339
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2341
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2342
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2343
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2344
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2345
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2346
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2347
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
2348
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
2349
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2350
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2351
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2352
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2353
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2354
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2355
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2356
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some new comments"], ["created_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00], ["person_id", nil], ["title", nil], ["updated_at", Sun, 24 Feb 2013 11:36:12 UTC +00:00]]
|
2357
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2358
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2359
|
+
Connecting to database specified by database.yml
|
2360
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2361
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2362
|
+
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2363
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2364
|
+
[1m[36mAction Load (0.2ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2365
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2366
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some new comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", nil], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2367
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2368
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2369
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2371
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2372
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2373
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2374
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2375
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "people" ("created_at", "cv", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["cv", nil], ["name", "Some person"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2376
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2377
|
+
[1m[35mAction Load (0.1ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2378
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2379
|
+
[1m[35m (0.1ms)[0m UPDATE "actions" SET "person_id" = 1, "updated_at" = '2014-01-15 21:11:14.145539' WHERE "actions"."id" = 18
|
2380
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2381
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2382
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1[0m
|
2383
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2384
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2385
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2386
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2387
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2388
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2389
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2390
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2014-01-15 21:11:14.156778' WHERE "actions"."id" = 18[0m
|
2391
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2392
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2393
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2394
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2395
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2396
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2397
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2398
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2399
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2400
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2401
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2402
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2403
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2404
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2405
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2406
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2407
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2408
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2409
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2410
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2411
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2412
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2413
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2414
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2415
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
2416
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
2417
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2418
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2419
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2420
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2421
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2422
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2423
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2424
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2425
|
+
[1m[35m (0.2ms)[0m UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2014-01-15 21:11:14.183622' WHERE "actions"."id" = 18
|
2426
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2427
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2428
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2429
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2430
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2431
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2432
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2433
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2434
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1[0m
|
2435
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2436
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2437
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2438
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2439
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2440
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2441
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2442
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2014-01-15 21:11:14.192314' WHERE "actions"."id" = 18[0m
|
2443
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2444
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2445
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2446
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2447
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:11:14 UTC +00:00]]
|
2448
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2449
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2450
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2451
|
+
Connecting to database specified by database.yml
|
2452
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2453
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2454
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2455
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2456
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2457
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2458
|
+
[1m[36m (0.8ms)[0m [1mUPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2014-01-15 21:12:39.557358' WHERE "actions"."id" = 18[0m
|
2459
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2460
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
2461
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2462
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2463
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2464
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2465
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2466
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1[0m
|
2467
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2468
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2470
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2472
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2473
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2474
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "people" ("created_at", "cv", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["cv", nil], ["name", "Some person"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2475
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2476
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2477
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2478
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "actions" SET "person_id" = 1, "updated_at" = '2014-01-15 21:12:39.599291' WHERE "actions"."id" = 18[0m
|
2479
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2480
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2481
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1
|
2482
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2483
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2485
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2487
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2488
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2489
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2490
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2491
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2492
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2493
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2494
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2495
|
+
[1m[35m (0.3ms)[0m UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2014-01-15 21:12:39.614957' WHERE "actions"."id" = 18
|
2496
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2497
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2499
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2500
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2501
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2502
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2503
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2504
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2505
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2506
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2507
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2508
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2509
|
+
[1m[35mAction Load (0.1ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2510
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2511
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2513
|
+
[1m[35mActionWith2LazyColumns Load (0.1ms)[0m SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
|
2514
|
+
[1m[36mActionWith2LazyColumns Load (0.1ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 19]]
|
2515
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2516
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2517
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2518
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2519
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2520
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2521
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2522
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some new comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", nil], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2523
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2524
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2525
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2526
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2527
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2528
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2529
|
+
[1m[35mAction Load (0.0ms)[0m SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2530
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2531
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2532
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "actions" SET "title" = 'some new title', "updated_at" = '2014-01-15 21:12:39.646441' WHERE "actions"."id" = 18[0m
|
2533
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2534
|
+
[1m[36mAction Load (0.0ms)[0m [1mSELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2535
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2536
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2537
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2538
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["comments", "some comments"], ["created_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00], ["person_id", nil], ["title", "some action"], ["updated_at", Wed, 15 Jan 2014 21:12:39 UTC +00:00]]
|
2539
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2540
|
+
[1m[36mAction Load (0.1ms)[0m [1mSELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1[0m [["id", 18]]
|
2541
|
+
[1m[35mAction Load (0.0ms)[0m SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
|
2542
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
@@ -1,59 +1,65 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe LazyColumns::ActsAsLazyColumnLoader do
|
4
|
-
|
5
|
-
@action = create_and_reload_action_from_db
|
6
|
-
end
|
4
|
+
let!(:action){action = create_and_reload_action_from_db}
|
7
5
|
|
8
6
|
describe "#lazy_column" do
|
9
7
|
it "excludes single column from active record objects" do
|
10
|
-
|
8
|
+
action.has_attribute?(:comments).should be_false
|
11
9
|
end
|
12
10
|
|
13
11
|
it "loads column when requested" do
|
14
|
-
|
12
|
+
action.comments.should == "some comments"
|
15
13
|
end
|
16
14
|
|
17
15
|
it "should not reload the object if the column was eagerly loaded" do
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
action = Action.select(:comments).first
|
17
|
+
action.should_not_receive :reload
|
18
|
+
action.comments
|
21
19
|
end
|
22
20
|
|
23
21
|
it "should not reload the object after the column was fetched" do
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
action.comments
|
23
|
+
action.should_not_receive :reload
|
24
|
+
action.comments
|
27
25
|
end
|
28
26
|
|
29
27
|
it "should let you define the attribute when creating the object" do
|
30
|
-
|
31
|
-
|
28
|
+
action = Action.create!(comments: "some new comments")
|
29
|
+
action.comments.should == "some new comments"
|
32
30
|
end
|
33
31
|
|
34
32
|
it "should let you update the attribute using #update_attribute" do
|
35
|
-
|
36
|
-
|
33
|
+
action.update_attribute(:comments, "some new comments")
|
34
|
+
action.comments.should == "some new comments"
|
37
35
|
end
|
38
36
|
|
39
37
|
it "should let you update the attribute using #update_attributes" do
|
40
|
-
|
41
|
-
|
38
|
+
action.update_attributes(comments: "some new comments")
|
39
|
+
action.comments.should == "some new comments"
|
42
40
|
end
|
43
41
|
|
44
42
|
it "should let you define multiple lazy columns at the same time" do
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
43
|
+
action = create_and_reload_action_from_db(ActionWith2LazyColumns)
|
44
|
+
action.has_attribute?(:comments).should be_false
|
45
|
+
action.has_attribute?(:title).should be_false
|
46
|
+
action.title.should == "some action"
|
47
|
+
action.comments.should == "some comments"
|
50
48
|
end
|
51
49
|
|
52
50
|
it "should let you modify normal attributes" do
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
action.title = 'some new title'
|
52
|
+
action.comments
|
53
|
+
action.save!
|
54
|
+
action.reload.title.should == 'some new title'
|
55
|
+
end
|
56
|
+
|
57
|
+
it "should let you modify associations" do
|
58
|
+
person = Person.create :name=>"Some person"
|
59
|
+
action.person = person
|
60
|
+
action.comments
|
61
|
+
action.save!
|
62
|
+
action.reload.person.should == person
|
57
63
|
end
|
58
64
|
end
|
59
65
|
|
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.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2
|
21
|
+
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2
|
29
|
+
version: '3.2'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sqlite3
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- spec/dummy/app/controllers/application_controller.rb
|
96
96
|
- spec/dummy/app/helpers/application_helper.rb
|
97
97
|
- spec/dummy/app/models/action.rb
|
98
|
+
- spec/dummy/app/models/person.rb
|
98
99
|
- spec/dummy/app/views/layouts/application.html.erb
|
99
100
|
- spec/dummy/config/application.rb
|
100
101
|
- spec/dummy/config/boot.rb
|
@@ -114,6 +115,8 @@ files:
|
|
114
115
|
- spec/dummy/config.ru
|
115
116
|
- spec/dummy/db/development.sqlite3
|
116
117
|
- spec/dummy/db/migrate/20130107093428_create_actions.rb
|
118
|
+
- spec/dummy/db/migrate/20130224111844_create_people.rb
|
119
|
+
- spec/dummy/db/migrate/20130224112917_add_owner_to_actions.rb
|
117
120
|
- spec/dummy/db/schema.rb
|
118
121
|
- spec/dummy/db/test.sqlite3
|
119
122
|
- spec/dummy/log/development.log
|
@@ -125,6 +128,7 @@ files:
|
|
125
128
|
- spec/dummy/Rakefile
|
126
129
|
- spec/dummy/README.rdoc
|
127
130
|
- spec/dummy/script/rails
|
131
|
+
- spec/dummy/spec/models/person_spec.rb
|
128
132
|
- spec/dummy/test/fixtures/actions.yml
|
129
133
|
- spec/lazy_columns/acts_as_lazy_column_loader_spec.rb
|
130
134
|
- spec/spec_helper.rb
|
@@ -142,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
146
|
version: '0'
|
143
147
|
segments:
|
144
148
|
- 0
|
145
|
-
hash:
|
149
|
+
hash: -1026142534990287093
|
146
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
151
|
none: false
|
148
152
|
requirements:
|
@@ -151,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
155
|
version: '0'
|
152
156
|
segments:
|
153
157
|
- 0
|
154
|
-
hash:
|
158
|
+
hash: -1026142534990287093
|
155
159
|
requirements: []
|
156
160
|
rubyforge_project:
|
157
161
|
rubygems_version: 1.8.23
|
@@ -164,6 +168,7 @@ test_files:
|
|
164
168
|
- spec/dummy/app/controllers/application_controller.rb
|
165
169
|
- spec/dummy/app/helpers/application_helper.rb
|
166
170
|
- spec/dummy/app/models/action.rb
|
171
|
+
- spec/dummy/app/models/person.rb
|
167
172
|
- spec/dummy/app/views/layouts/application.html.erb
|
168
173
|
- spec/dummy/config/application.rb
|
169
174
|
- spec/dummy/config/boot.rb
|
@@ -183,6 +188,8 @@ test_files:
|
|
183
188
|
- spec/dummy/config.ru
|
184
189
|
- spec/dummy/db/development.sqlite3
|
185
190
|
- spec/dummy/db/migrate/20130107093428_create_actions.rb
|
191
|
+
- spec/dummy/db/migrate/20130224111844_create_people.rb
|
192
|
+
- spec/dummy/db/migrate/20130224112917_add_owner_to_actions.rb
|
186
193
|
- spec/dummy/db/schema.rb
|
187
194
|
- spec/dummy/db/test.sqlite3
|
188
195
|
- spec/dummy/log/development.log
|
@@ -194,6 +201,7 @@ test_files:
|
|
194
201
|
- spec/dummy/Rakefile
|
195
202
|
- spec/dummy/README.rdoc
|
196
203
|
- spec/dummy/script/rails
|
204
|
+
- spec/dummy/spec/models/person_spec.rb
|
197
205
|
- spec/dummy/test/fixtures/actions.yml
|
198
206
|
- spec/lazy_columns/acts_as_lazy_column_loader_spec.rb
|
199
207
|
- spec/spec_helper.rb
|