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 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(:title=>"Some action", :comments=>"Some comments") # => <Action id: 1...>
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
 
@@ -1,3 +1,3 @@
1
1
  module LazyColumns
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
@@ -3,4 +3,6 @@ class Action < ActiveRecord::Base
3
3
  lazy_load :comments
4
4
 
5
5
  attr_accessible :comments, :title
6
+
7
+ belongs_to :person
6
8
  end
@@ -0,0 +1,5 @@
1
+ class Person < ActiveRecord::Base
2
+ attr_accessible :cv, :name
3
+
4
+ has_many :actions
5
+ end
@@ -0,0 +1,10 @@
1
+ class CreatePeople < ActiveRecord::Migration
2
+ def change
3
+ create_table :people do |t|
4
+ t.string :name
5
+ t.text :cv
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ class AddOwnerToActions < ActiveRecord::Migration
2
+ def change
3
+ change_table :actions do |t|
4
+ t.references :person
5
+ end
6
+ end
7
+ end
@@ -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 => 20130107093428) do
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
Binary file
@@ -12,3 +12,22 @@ Migrating to CreateActions (20130107093428)
12
12
   (0.7ms) commit transaction
13
13
   (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
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
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
20
+ Migrating to CreateActions (20130107093428)
21
+ Migrating to CreatePeople (20130224111844)
22
+  (0.0ms) select sqlite_version(*)
23
+  (0.0ms) begin transaction
24
+  (0.3ms) 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
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130224111844')
26
+  (5.1ms) commit transaction
27
+ Migrating to AddOwnerToActions (20130224112917)
28
+  (0.4ms) begin transaction
29
+  (0.3ms) ALTER TABLE "actions" ADD "person_id" integer
30
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130224112917')
31
+  (0.6ms) commit transaction
32
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
33
+ Connecting to database specified by database.yml
@@ -1994,3 +1994,549 @@ Connecting to database specified by database.yml
1994
1994
  Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
1995
1995
  Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1
1996
1996
   (0.3ms) rollback transaction
1997
+ Connecting to database specified by database.yml
1998
+  (0.1ms) begin transaction
1999
+  (0.1ms) SAVEPOINT active_record_1
2000
+ SQL (4.2ms) 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]]
2001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2002
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2003
+  (0.0ms) SAVEPOINT active_record_1
2004
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:34:32.618488' WHERE "actions"."id" = 18
2005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2006
+  (0.4ms) rollback transaction
2007
+  (0.0ms) begin transaction
2008
+  (0.0ms) SAVEPOINT active_record_1
2009
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2011
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2012
+  (0.4ms) rollback transaction
2013
+  (0.0ms) begin transaction
2014
+  (0.0ms) SAVEPOINT active_record_1
2015
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2017
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2018
+  (0.0ms) SAVEPOINT active_record_1
2019
+  (0.2ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:34:32.644738' WHERE "actions"."id" = 18
2020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2021
+  (0.4ms) rollback transaction
2022
+  (0.0ms) begin transaction
2023
+  (0.0ms) SAVEPOINT active_record_1
2024
+ SQL (0.4ms) 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]]
2025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2026
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2027
+ Action Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2028
+  (0.4ms) rollback transaction
2029
+  (0.0ms) begin transaction
2030
+  (0.0ms) SAVEPOINT active_record_1
2031
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2033
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2034
+  (0.0ms) SAVEPOINT active_record_1
2035
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2037
+  (0.3ms) rollback transaction
2038
+  (0.0ms) begin transaction
2039
+  (0.0ms) SAVEPOINT active_record_1
2040
+ SQL (0.4ms) 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]]
2041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2042
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2043
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2044
+  (0.0ms) SAVEPOINT active_record_1
2045
+  (0.3ms) UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 11:34:32.659123' WHERE "actions"."id" = 18
2046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2047
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2048
+  (0.3ms) rollback transaction
2049
+  (0.0ms) begin transaction
2050
+  (0.0ms) SAVEPOINT active_record_1
2051
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2053
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2054
+  (0.0ms) SAVEPOINT active_record_1
2055
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2057
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2058
+ ActionWith2LazyColumns Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2059
+  (0.3ms) rollback transaction
2060
+  (0.0ms) begin transaction
2061
+  (0.0ms) SAVEPOINT active_record_1
2062
+ SQL (0.4ms) 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]]
2063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2064
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2065
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2066
+  (0.4ms) rollback transaction
2067
+  (0.0ms) begin transaction
2068
+  (0.0ms) SAVEPOINT active_record_1
2069
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2071
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2072
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, comments FROM "actions" LIMIT 1
2073
+  (0.3ms) rollback transaction
2074
+  (0.1ms) begin transaction
2075
+  (0.0ms) SAVEPOINT active_record_1
2076
+ SQL (0.5ms) 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]]
2077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2078
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2079
+  (0.3ms) rollback transaction
2080
+ Connecting to database specified by database.yml
2081
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2082
+ Migrating to CreateActions (20130107093428)
2083
+ Migrating to CreatePeople (20130224111844)
2084
+  (0.0ms) select sqlite_version(*)
2085
+  (0.0ms) begin transaction
2086
+  (0.3ms) 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
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130224111844')
2088
+  (4.4ms) commit transaction
2089
+ Migrating to AddOwnerToActions (20130224112917)
2090
+  (0.5ms) begin transaction
2091
+  (0.3ms) ALTER TABLE "actions" ADD "person_id" integer
2092
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130224112917')
2093
+  (0.8ms) commit transaction
2094
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
2095
+ Connecting to database specified by database.yml
2096
+  (0.1ms) begin transaction
2097
+  (0.1ms) SAVEPOINT active_record_1
2098
+ SQL (4.5ms) 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]]
2099
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2100
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2101
+  (1.7ms) rollback transaction
2102
+  (0.0ms) begin transaction
2103
+  (0.0ms) SAVEPOINT active_record_1
2104
+ SQL (0.3ms) 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]]
2105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2106
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2107
+ Action Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2108
+  (0.0ms) SAVEPOINT active_record_1
2109
+  (0.2ms) UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 11:34:56.728359' WHERE "actions"."id" = 18
2110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2111
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2112
+  (0.3ms) rollback transaction
2113
+  (0.0ms) begin transaction
2114
+  (0.0ms) SAVEPOINT active_record_1
2115
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2117
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2118
+  (0.0ms) SAVEPOINT active_record_1
2119
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:34:56.735190' WHERE "actions"."id" = 18
2120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2121
+  (0.3ms) rollback transaction
2122
+  (0.0ms) begin transaction
2123
+  (0.0ms) SAVEPOINT active_record_1
2124
+ SQL (0.3ms) 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]]
2125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2126
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2127
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1
2128
+  (0.3ms) rollback transaction
2129
+  (0.1ms) begin transaction
2130
+  (0.0ms) SAVEPOINT active_record_1
2131
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2133
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2134
+  (0.0ms) SAVEPOINT active_record_1
2135
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2137
+  (0.4ms) rollback transaction
2138
+  (0.0ms) begin transaction
2139
+  (0.0ms) SAVEPOINT active_record_1
2140
+ SQL (0.4ms) 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]]
2141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2142
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2143
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2144
+  (0.3ms) rollback transaction
2145
+  (0.0ms) begin transaction
2146
+  (0.0ms) SAVEPOINT active_record_1
2147
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2149
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2150
+  (0.1ms) SAVEPOINT active_record_1
2151
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2153
+ Action Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2154
+  (0.0ms) SAVEPOINT active_record_1
2155
+  (0.1ms) UPDATE "actions" SET "person_id" = 1, "updated_at" = '2013-02-24 11:34:56.766601' WHERE "actions"."id" = 18
2156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2157
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2158
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1
2159
+  (0.4ms) rollback transaction
2160
+  (0.1ms) begin transaction
2161
+  (0.0ms) SAVEPOINT active_record_1
2162
+ SQL (0.4ms) 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]]
2163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2164
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2165
+  (0.0ms) SAVEPOINT active_record_1
2166
+ SQL (0.3ms) 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]]
2167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2168
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2169
+ ActionWith2LazyColumns Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2170
+  (0.4ms) rollback transaction
2171
+  (0.1ms) begin transaction
2172
+  (0.0ms) SAVEPOINT active_record_1
2173
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2175
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2176
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2177
+  (0.2ms) rollback transaction
2178
+  (0.1ms) begin transaction
2179
+  (0.0ms) SAVEPOINT active_record_1
2180
+ SQL (0.4ms) 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]]
2181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2182
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2183
+  (0.0ms) SAVEPOINT active_record_1
2184
+  (0.2ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:34:56.790608' WHERE "actions"."id" = 18
2185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2186
+  (0.4ms) rollback transaction
2187
+ Connecting to database specified by database.yml
2188
+  (0.0ms) begin transaction
2189
+  (0.1ms) SAVEPOINT active_record_1
2190
+ SQL (4.2ms) 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]]
2191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2192
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2193
+  (0.0ms) SAVEPOINT active_record_1
2194
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:35:57.304654' WHERE "actions"."id" = 18
2195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2196
+  (1.6ms) rollback transaction
2197
+  (0.1ms) begin transaction
2198
+  (0.0ms) SAVEPOINT active_record_1
2199
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2201
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2202
+ Action Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2203
+  (0.4ms) rollback transaction
2204
+  (0.0ms) begin transaction
2205
+  (0.0ms) SAVEPOINT active_record_1
2206
+ SQL (0.3ms) 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]]
2207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2208
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2209
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2210
+  (0.0ms) SAVEPOINT active_record_1
2211
+  (0.3ms) UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 11:35:57.330043' WHERE "actions"."id" = 18
2212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2213
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2214
+  (0.3ms) rollback transaction
2215
+  (0.1ms) begin transaction
2216
+  (0.0ms) SAVEPOINT active_record_1
2217
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2219
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2220
+ ActionWith2LazyColumns Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2221
+  (0.4ms) rollback transaction
2222
+  (0.0ms) begin transaction
2223
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1
2224
+  (0.0ms) rollback transaction
2225
+  (0.1ms) begin transaction
2226
+  (0.1ms) SAVEPOINT active_record_1
2227
+ SQL (1.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2229
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2230
+  (0.0ms) SAVEPOINT active_record_1
2231
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:35:57.352058' WHERE "actions"."id" = 18
2232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2233
+  (0.3ms) rollback transaction
2234
+  (0.0ms) begin transaction
2235
+  (0.0ms) SAVEPOINT active_record_1
2236
+ SQL (0.4ms) 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]]
2237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2238
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2239
+  (0.3ms) rollback transaction
2240
+  (0.1ms) begin transaction
2241
+  (0.0ms) SAVEPOINT active_record_1
2242
+ SQL (0.4ms) INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2244
+  (0.3ms) rollback transaction
2245
+  (0.0ms) begin transaction
2246
+  (0.0ms) SAVEPOINT active_record_1
2247
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2249
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2250
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2251
+  (0.4ms) rollback transaction
2252
+  (0.0ms) begin transaction
2253
+  (0.1ms) SAVEPOINT active_record_1
2254
+ SQL (0.5ms) INSERT INTO "people" ("created_at", "cv", "name", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2256
+  (0.0ms) SAVEPOINT active_record_1
2257
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2259
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2260
+ Action Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2261
+  (0.0ms) SAVEPOINT active_record_1
2262
+  (0.1ms) UPDATE "actions" SET "person_id" = 1, "updated_at" = '2013-02-24 11:35:57.380282' WHERE "actions"."id" = 18
2263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2264
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2265
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1
2266
+  (0.4ms) rollback transaction
2267
+ Connecting to database specified by database.yml
2268
+  (0.1ms) begin transaction
2269
+  (0.1ms) SAVEPOINT active_record_1
2270
+ SQL (4.6ms) 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]]
2271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2272
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2273
+ Action Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2274
+  (0.0ms) SAVEPOINT active_record_1
2275
+  (0.2ms) UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2013-02-24 11:36:12.774648' WHERE "actions"."id" = 18
2276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2277
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2278
+  (1.8ms) rollback transaction
2279
+  (0.1ms) begin transaction
2280
+  (0.0ms) SAVEPOINT active_record_1
2281
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2283
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2284
+  (0.1ms) SAVEPOINT active_record_1
2285
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2287
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2288
+  (0.0ms) SAVEPOINT active_record_1
2289
+  (0.1ms) UPDATE "actions" SET "person_id" = 1, "updated_at" = '2013-02-24 11:36:12.809395' WHERE "actions"."id" = 18
2290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2291
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2292
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1
2293
+  (0.5ms) rollback transaction
2294
+  (0.0ms) begin transaction
2295
+  (0.0ms) SAVEPOINT active_record_1
2296
+ SQL (0.3ms) 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]]
2297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2298
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2299
+  (0.2ms) rollback transaction
2300
+  (0.0ms) begin transaction
2301
+  (0.0ms) SAVEPOINT active_record_1
2302
+ SQL (0.4ms) 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]]
2303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2304
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2305
+  (0.0ms) SAVEPOINT active_record_1
2306
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:36:12.824493' WHERE "actions"."id" = 18
2307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2308
+  (0.5ms) rollback transaction
2309
+  (0.1ms) begin transaction
2310
+  (0.1ms) SAVEPOINT active_record_1
2311
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2313
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2314
+  (0.0ms) SAVEPOINT active_record_1
2315
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2013-02-24 11:36:12.832282' WHERE "actions"."id" = 18
2316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2317
+  (0.4ms) rollback transaction
2318
+  (0.0ms) begin transaction
2319
+  (0.0ms) SAVEPOINT active_record_1
2320
+ SQL (0.3ms) 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]]
2321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2322
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2323
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2324
+  (0.3ms) rollback transaction
2325
+  (0.0ms) begin transaction
2326
+  (0.0ms) SAVEPOINT active_record_1
2327
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2329
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2330
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1
2331
+  (0.4ms) rollback transaction
2332
+  (0.1ms) begin transaction
2333
+  (0.0ms) SAVEPOINT active_record_1
2334
+ SQL (0.4ms) 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]]
2335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2336
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2337
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2338
+  (0.3ms) rollback transaction
2339
+  (0.0ms) begin transaction
2340
+  (0.0ms) SAVEPOINT active_record_1
2341
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2343
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2344
+  (0.0ms) SAVEPOINT active_record_1
2345
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2347
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2348
+ ActionWith2LazyColumns Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2349
+  (0.4ms) rollback transaction
2350
+  (0.0ms) begin transaction
2351
+  (0.0ms) SAVEPOINT active_record_1
2352
+ SQL (0.4ms) 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]]
2353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2354
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2355
+  (0.0ms) SAVEPOINT active_record_1
2356
+ SQL (0.4ms) INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2358
+  (0.3ms) rollback transaction
2359
+ Connecting to database specified by database.yml
2360
+  (0.0ms) begin transaction
2361
+  (0.1ms) SAVEPOINT active_record_1
2362
+ SQL (4.5ms) 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]]
2363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2364
+ Action Load (0.2ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2365
+  (0.0ms) SAVEPOINT active_record_1
2366
+ SQL (0.8ms) INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2368
+  (0.3ms) rollback transaction
2369
+  (0.0ms) begin transaction
2370
+  (0.0ms) SAVEPOINT active_record_1
2371
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2373
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2374
+  (0.1ms) SAVEPOINT active_record_1
2375
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2377
+ Action Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2378
+  (0.0ms) SAVEPOINT active_record_1
2379
+  (0.1ms) UPDATE "actions" SET "person_id" = 1, "updated_at" = '2014-01-15 21:11:14.145539' WHERE "actions"."id" = 18
2380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2381
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2382
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1
2383
+  (0.4ms) rollback transaction
2384
+  (0.0ms) begin transaction
2385
+  (0.0ms) SAVEPOINT active_record_1
2386
+ SQL (0.4ms) 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]]
2387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2388
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2389
+  (0.0ms) SAVEPOINT active_record_1
2390
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2014-01-15 21:11:14.156778' WHERE "actions"."id" = 18
2391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2392
+  (0.3ms) rollback transaction
2393
+  (0.0ms) begin transaction
2394
+  (0.0ms) SAVEPOINT active_record_1
2395
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2397
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2398
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2399
+  (0.4ms) rollback transaction
2400
+  (0.0ms) begin transaction
2401
+  (0.0ms) SAVEPOINT active_record_1
2402
+ SQL (0.3ms) 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]]
2403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2404
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2405
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2406
+  (0.3ms) rollback transaction
2407
+  (0.0ms) begin transaction
2408
+  (0.0ms) SAVEPOINT active_record_1
2409
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2411
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2412
+  (0.0ms) SAVEPOINT active_record_1
2413
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2415
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2416
+ ActionWith2LazyColumns Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2417
+  (0.5ms) rollback transaction
2418
+  (0.0ms) begin transaction
2419
+  (0.0ms) SAVEPOINT active_record_1
2420
+ SQL (0.3ms) 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]]
2421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2422
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2423
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2424
+  (0.0ms) SAVEPOINT active_record_1
2425
+  (0.2ms) UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2014-01-15 21:11:14.183622' WHERE "actions"."id" = 18
2426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2427
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2428
+  (0.3ms) rollback transaction
2429
+  (0.0ms) begin transaction
2430
+  (0.0ms) SAVEPOINT active_record_1
2431
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2433
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2434
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1
2435
+  (0.3ms) rollback transaction
2436
+  (0.0ms) begin transaction
2437
+  (0.0ms) SAVEPOINT active_record_1
2438
+ SQL (0.4ms) 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]]
2439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2440
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2441
+  (0.0ms) SAVEPOINT active_record_1
2442
+  (0.2ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2014-01-15 21:11:14.192314' WHERE "actions"."id" = 18
2443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2444
+  (0.3ms) rollback transaction
2445
+  (0.0ms) begin transaction
2446
+  (0.0ms) SAVEPOINT active_record_1
2447
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2449
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2450
+  (0.5ms) rollback transaction
2451
+ Connecting to database specified by database.yml
2452
+  (0.1ms) begin transaction
2453
+  (0.1ms) SAVEPOINT active_record_1
2454
+ SQL (4.2ms) 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]]
2455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2456
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2457
+  (0.0ms) SAVEPOINT active_record_1
2458
+  (0.8ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2014-01-15 21:12:39.557358' WHERE "actions"."id" = 18
2459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2460
+  (1.9ms) rollback transaction
2461
+  (0.1ms) begin transaction
2462
+  (0.0ms) SAVEPOINT active_record_1
2463
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2465
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2466
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id, comments FROM "actions" LIMIT 1
2467
+  (0.3ms) rollback transaction
2468
+  (0.0ms) begin transaction
2469
+  (0.0ms) SAVEPOINT active_record_1
2470
+ SQL (0.4ms) 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]]
2471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2472
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2473
+  (0.0ms) SAVEPOINT active_record_1
2474
+ SQL (0.5ms) INSERT INTO "people" ("created_at", "cv", "name", "updated_at") VALUES (?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2476
+ Action Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2477
+  (0.0ms) SAVEPOINT active_record_1
2478
+  (0.1ms) UPDATE "actions" SET "person_id" = 1, "updated_at" = '2014-01-15 21:12:39.599291' WHERE "actions"."id" = 18
2479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2480
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2481
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = 1 LIMIT 1
2482
+  (0.4ms) rollback transaction
2483
+  (0.0ms) begin transaction
2484
+  (0.0ms) SAVEPOINT active_record_1
2485
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2487
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2488
+  (0.5ms) rollback transaction
2489
+  (0.0ms) begin transaction
2490
+  (0.0ms) SAVEPOINT active_record_1
2491
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2493
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2494
+  (0.0ms) SAVEPOINT active_record_1
2495
+  (0.3ms) UPDATE "actions" SET "comments" = 'some new comments', "updated_at" = '2014-01-15 21:12:39.614957' WHERE "actions"."id" = 18
2496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2497
+  (0.3ms) rollback transaction
2498
+  (0.1ms) begin transaction
2499
+  (0.0ms) SAVEPOINT active_record_1
2500
+ SQL (0.5ms) 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]]
2501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2502
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2503
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2504
+  (0.4ms) rollback transaction
2505
+  (0.1ms) begin transaction
2506
+  (0.0ms) SAVEPOINT active_record_1
2507
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2509
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2510
+  (0.1ms) SAVEPOINT active_record_1
2511
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2513
+ ActionWith2LazyColumns Load (0.1ms) SELECT actions.id, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2514
+ ActionWith2LazyColumns Load (0.1ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 19]]
2515
+  (0.5ms) rollback transaction
2516
+  (0.1ms) begin transaction
2517
+  (0.1ms) SAVEPOINT active_record_1
2518
+ SQL (0.5ms) 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]]
2519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2520
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2521
+  (0.0ms) SAVEPOINT active_record_1
2522
+ SQL (0.4ms) INSERT INTO "actions" ("comments", "created_at", "person_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2524
+  (0.3ms) rollback transaction
2525
+  (0.0ms) begin transaction
2526
+  (0.0ms) SAVEPOINT active_record_1
2527
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2529
+ Action Load (0.0ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2530
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2531
+  (0.0ms) SAVEPOINT active_record_1
2532
+  (0.2ms) UPDATE "actions" SET "title" = 'some new title', "updated_at" = '2014-01-15 21:12:39.646441' WHERE "actions"."id" = 18
2533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2534
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2535
+  (0.3ms) rollback transaction
2536
+  (0.0ms) begin transaction
2537
+  (0.0ms) SAVEPOINT active_record_1
2538
+ SQL (0.6ms) 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]]
2539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2540
+ Action Load (0.1ms) SELECT actions.id, actions.title, actions.created_at, actions.updated_at, actions.person_id FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2541
+ Action Load (0.0ms) SELECT "actions".* FROM "actions" WHERE "actions"."id" = ? LIMIT 1 [["id", 18]]
2542
+  (0.3ms) rollback transaction
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe Person do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
@@ -1,59 +1,65 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe LazyColumns::ActsAsLazyColumnLoader do
4
- before(:each) do
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
- @action.has_attribute?(:comments).should be_false
8
+ action.has_attribute?(:comments).should be_false
11
9
  end
12
10
 
13
11
  it "loads column when requested" do
14
- @action.comments.should == "some comments"
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
- @action = Action.select(:comments).first
19
- @action.should_not_receive :reload
20
- @action.comments
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
- @action.comments
25
- @action.should_not_receive :reload
26
- @action.comments
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
- @action = Action.create!(comments: "some new comments")
31
- @action.comments.should == "some new comments"
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
- @action.update_attribute(:comments, "some new comments")
36
- @action.comments.should == "some new comments"
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
- @action.update_attributes(comments: "some new comments")
41
- @action.comments.should == "some new comments"
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
- @action = create_and_reload_action_from_db(ActionWith2LazyColumns)
46
- @action.has_attribute?(:comments).should be_false
47
- @action.has_attribute?(:title).should be_false
48
- @action.title.should == "some action"
49
- @action.comments.should == "some comments"
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
- @action.title = 'some new title'
54
- @action.comments
55
- @action.save!
56
- @action.reload.title.should == 'some new title'
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.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: 2013-02-24 00:00:00.000000000 Z
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.10
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.10
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: 3751127418290046231
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: 3751127418290046231
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