connections 0.1.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/connections/connector.rb +11 -4
- data/lib/connections/version.rb +1 -1
- data/test/connections_test.rb +5 -1
- data/test/dummy/log/test.log +807 -0
- metadata +4 -4
@@ -13,7 +13,7 @@ module Connections
|
|
13
13
|
|
14
14
|
# user.follow(other_user)
|
15
15
|
define_method t do |connectable|
|
16
|
-
|
16
|
+
connection_class(t).create do |c|
|
17
17
|
c.type = t.to_s.classify
|
18
18
|
c.connector = self
|
19
19
|
c.connectable = connectable
|
@@ -22,8 +22,11 @@ module Connections
|
|
22
22
|
|
23
23
|
# user.unfollow(other_user)
|
24
24
|
define_method :"un#{t}" do |connectable|
|
25
|
-
|
26
|
-
|
25
|
+
if Object.const_defined?(t.to_s.classify)
|
26
|
+
connection_class(t).where(:connector_type => self.class.base_class, :connector_id => self, :connectable_id => connectable).destroy_all
|
27
|
+
else
|
28
|
+
active_connections(t, connectable).delete_all
|
29
|
+
end
|
27
30
|
end
|
28
31
|
|
29
32
|
# user.follows?(other_user)
|
@@ -58,8 +61,12 @@ module Connections
|
|
58
61
|
|
59
62
|
private
|
60
63
|
|
64
|
+
def connection_class(type)
|
65
|
+
Object.const_defined?(type.to_s.classify) ? type.to_s.classify.constantize : Connections::Connection
|
66
|
+
end
|
67
|
+
|
61
68
|
def active_connections(type, connectable)
|
62
|
-
connections.where(:type => type.to_s.classify, :connectable_type => connectable.class.
|
69
|
+
connections.where(:type => type.to_s.classify, :connectable_type => connectable.class.base_class, :connectable_id => connectable)
|
63
70
|
end
|
64
71
|
end
|
65
72
|
end
|
data/lib/connections/version.rb
CHANGED
data/test/connections_test.rb
CHANGED
@@ -72,17 +72,21 @@ class ConnectionsTest < ActiveSupport::TestCase
|
|
72
72
|
end
|
73
73
|
|
74
74
|
test '#unlike' do
|
75
|
-
@user.like(@post)
|
75
|
+
like = @user.like(@post)
|
76
|
+
assert_equal Like, like.class
|
76
77
|
assert @user.likes?(@post)
|
77
78
|
@user.unlike(@post)
|
78
79
|
assert !@user.likes?(@post)
|
79
80
|
end
|
80
81
|
|
81
82
|
test '#toggle_like' do
|
83
|
+
@other_post = Post.create!
|
82
84
|
@user.toggle_like(@post)
|
85
|
+
@user.toggle_like(@other_post)
|
83
86
|
assert @user.likes?(@post)
|
84
87
|
@user.toggle_like(@post)
|
85
88
|
assert !@user.likes?(@post)
|
89
|
+
assert @user.likes?(@other_post)
|
86
90
|
end
|
87
91
|
|
88
92
|
test '#liking' do
|
data/test/dummy/log/test.log
CHANGED
@@ -7188,3 +7188,810 @@ SQLite3::SQLException: no such column: connections.type: SELECT "users".* FROM "
|
|
7188
7188
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7189
7189
|
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7190
7190
|
[1m[35m (0.6ms)[0m rollback transaction
|
7191
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
7192
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7193
|
+
[1m[36mSQL (7.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7194
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7195
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7196
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7197
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7198
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7199
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7200
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7201
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7202
|
+
[1m[35mConnections::Connection Exists (0.8ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7203
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7204
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7205
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7206
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
|
7207
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 2 AND "connections_connections"."connectable_type" = 'User'[0m
|
7208
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
|
7209
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7210
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "connections_connections"
|
7211
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7212
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7213
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7214
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7215
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7216
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User'
|
7217
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'User'[0m
|
7218
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
7219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7220
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "connections_connections"
|
7221
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
7222
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7223
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7224
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7225
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7226
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7227
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7228
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7229
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7230
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7231
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7232
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7233
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7234
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7235
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7236
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7237
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7238
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7240
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7241
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7242
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7243
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7244
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7245
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7246
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7247
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7248
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7249
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7250
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7251
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7252
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7253
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7254
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7255
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7256
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7257
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connector_id" = "users"."id" AND "connections_connections"."connector_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connectable_type = 'User' AND connectable_id = 2)[0m
|
7258
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connector_id" = "users"."id" AND "connections_connections"."connector_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connectable_type = 'Post' AND connectable_id = 1)
|
7259
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7260
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7261
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7262
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7264
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7265
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7266
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7268
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7269
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7270
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7271
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7272
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7273
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7274
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7275
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7276
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7277
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7278
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'Post' AND (connections_connections.type = 'Follow')
|
7279
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
7280
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7281
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7282
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7283
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7284
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7285
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7286
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7287
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7288
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7289
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7290
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7291
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7292
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7293
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7294
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7295
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7296
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7297
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7298
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "users"."id" AND "connections_connections"."connectable_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connector_type = 'User' AND connector_id = 1)
|
7299
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "posts"."id" AND "connections_connections"."connectable_type" = 'Post' WHERE (connections_connections.type = 'Follow' AND connector_type = 'User' AND connector_id = 1)[0m
|
7300
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
7301
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7302
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7303
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7304
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7305
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7306
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7307
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7308
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7309
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7310
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7311
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7312
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7313
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7314
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7315
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7316
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7317
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7318
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7319
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND (connections_connections.type = 'Follow')[0m
|
7320
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7321
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7323
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7324
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7325
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7326
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7327
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7328
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7329
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7330
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7331
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7332
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7333
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7334
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7335
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7336
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7337
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
7338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7339
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7340
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7341
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7342
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7343
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7344
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7345
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7346
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7347
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7348
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7349
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7350
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7351
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7352
|
+
[1m[35mLike Load (0.2ms)[0m SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
|
7353
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
7354
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7355
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7356
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7357
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7358
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7360
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7363
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7364
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7365
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7366
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1
|
7367
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7368
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7369
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "posts"."id" AND "connections_connections"."connectable_type" = 'Post' WHERE (connections_connections.type = 'Like' AND connector_type = 'User' AND connector_id = 2)[0m
|
7370
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7371
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7372
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7373
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7374
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7375
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7376
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7377
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7378
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7379
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7380
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7381
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7382
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7383
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7384
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7385
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7386
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7387
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7388
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2
|
7389
|
+
[1m[36mConnections::Connection Exists (0.2ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7390
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
7391
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7392
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7393
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7394
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7395
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7396
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7397
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7398
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7399
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7400
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7401
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7403
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7404
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7405
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7406
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7407
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7408
|
+
[1m[35mLike Load (0.1ms)[0m SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2
|
7409
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7410
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
|
7411
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7412
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7413
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7414
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7415
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7416
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7417
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7418
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7419
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7420
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7421
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7422
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7423
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7424
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7425
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7426
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7427
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7428
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7429
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2[0m
|
7430
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7431
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
7432
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7434
|
+
[1m[35mSQL (19.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7435
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7436
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7437
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7438
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7439
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7440
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7441
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7442
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7443
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7444
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:09:35 UTC +00:00]]
|
7445
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7446
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7447
|
+
[1m[36mLike Load (0.1ms)[0m [1mSELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2[0m
|
7448
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7449
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ?[0m [["id", 1]]
|
7450
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7451
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7452
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7453
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
7454
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7455
|
+
[1m[36mSQL (3.9ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7456
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7457
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7458
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7459
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7460
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7461
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7462
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7463
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7464
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7465
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7466
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7467
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7468
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
|
7469
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 2 AND "connections_connections"."connectable_type" = 'User'[0m
|
7470
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
|
7471
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7472
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "connections_connections"
|
7473
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7474
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7475
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7476
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7477
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7478
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User'
|
7479
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'User'[0m
|
7480
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
7481
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7482
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "connections_connections"
|
7483
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
7484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7485
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7486
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7487
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7488
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7489
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7490
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7491
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7492
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7493
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7494
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7495
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7496
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7497
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7498
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7499
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7500
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7501
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7502
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7503
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7504
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7505
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7506
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7507
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7508
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7509
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7510
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7511
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7512
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7513
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7514
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7515
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7516
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7517
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7518
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7519
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connector_id" = "users"."id" AND "connections_connections"."connector_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connectable_type = 'User' AND connectable_id = 2)[0m
|
7520
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connector_id" = "users"."id" AND "connections_connections"."connector_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connectable_type = 'Post' AND connectable_id = 1)
|
7521
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7522
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7523
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7524
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7525
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7526
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7527
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7528
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7529
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7530
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7531
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7532
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7533
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7534
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7535
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7536
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7537
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7538
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7539
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7540
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'Post' AND (connections_connections.type = 'Follow')
|
7541
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7542
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7543
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7544
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7545
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7546
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7547
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7548
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7549
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7550
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7551
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7552
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7553
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7554
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7555
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7556
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7557
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7558
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7559
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7560
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "users"."id" AND "connections_connections"."connectable_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connector_type = 'User' AND connector_id = 1)
|
7561
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "posts"."id" AND "connections_connections"."connectable_type" = 'Post' WHERE (connections_connections.type = 'Follow' AND connector_type = 'User' AND connector_id = 1)[0m
|
7562
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7563
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7564
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7565
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7566
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7567
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7568
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7569
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7570
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7571
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7572
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7573
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7574
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7575
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7576
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7577
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7578
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7579
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7580
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7581
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND (connections_connections.type = 'Follow')[0m
|
7582
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7583
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7584
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7585
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7586
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7587
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7588
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7589
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7590
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7591
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7592
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7593
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7594
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7595
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7596
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7597
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7598
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7599
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7600
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7601
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7602
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7603
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7604
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7605
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7606
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7607
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7608
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7609
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7610
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7611
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7612
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7613
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7614
|
+
[1m[35mLike Load (0.1ms)[0m SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
|
7615
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
7616
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7617
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7619
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7620
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7621
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7622
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7623
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7624
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7625
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7626
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7627
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7628
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1
|
7629
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7630
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7631
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "posts"."id" AND "connections_connections"."connectable_type" = 'Post' WHERE (connections_connections.type = 'Like' AND connector_type = 'User' AND connector_id = 2)[0m
|
7632
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7633
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7634
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7635
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7636
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7638
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7640
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7641
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7642
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7643
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7644
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7645
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7646
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7647
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7648
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7649
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7650
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2
|
7651
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7652
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7653
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7654
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7655
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7656
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7657
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7658
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7659
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7660
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7661
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7662
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7663
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7664
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7665
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7666
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7667
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7668
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1
|
7669
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7670
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7671
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7672
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7673
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7674
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7675
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7676
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7677
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7678
|
+
[1m[35mLike Load (0.2ms)[0m SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2
|
7679
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7680
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
|
7681
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7682
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7683
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ?[0m [["id", 2]]
|
7684
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7685
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7686
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7687
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7688
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7689
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7690
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7691
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7692
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7693
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7695
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7696
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7697
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7698
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7699
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7700
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7701
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7702
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7703
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2[0m
|
7704
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7705
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
7706
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7708
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7709
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7711
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7712
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7713
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7714
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7715
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7716
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7717
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7718
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:17 UTC +00:00]]
|
7719
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7720
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7721
|
+
[1m[36mLike Load (0.1ms)[0m [1mSELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2[0m
|
7722
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7723
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ?[0m [["id", 1]]
|
7724
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7725
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7726
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7727
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
7728
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7729
|
+
[1m[36mSQL (3.9ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7730
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7731
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7732
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7733
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7734
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7735
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7736
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7737
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7738
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7739
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7740
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7741
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7742
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
|
7743
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 2 AND "connections_connections"."connectable_type" = 'User'[0m
|
7744
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
|
7745
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7746
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "connections_connections"
|
7747
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7748
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7749
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7750
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7751
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7752
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User'
|
7753
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'User'[0m
|
7754
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
7755
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7756
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "connections_connections"
|
7757
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
7758
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7759
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7760
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7761
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7762
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7763
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7764
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7765
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7766
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7767
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7768
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7769
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7770
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7771
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7772
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7773
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7774
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7775
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7776
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7777
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7778
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7780
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7781
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7782
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7783
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7784
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7785
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7786
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7787
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7788
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7789
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7790
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7791
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7792
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7793
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connector_id" = "users"."id" AND "connections_connections"."connector_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connectable_type = 'User' AND connectable_id = 2)[0m
|
7794
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connector_id" = "users"."id" AND "connections_connections"."connector_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connectable_type = 'Post' AND connectable_id = 1)
|
7795
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7796
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7797
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7798
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7799
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7800
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7801
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7802
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7803
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7804
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7805
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7806
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7807
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7808
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7809
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7810
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7811
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7812
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7813
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7814
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'Post' AND (connections_connections.type = 'Follow')
|
7815
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7816
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7817
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7818
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7819
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7820
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7821
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7822
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7823
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7824
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7825
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7826
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7827
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7828
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7829
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7830
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7831
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7832
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7833
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7834
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "users"."id" AND "connections_connections"."connectable_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connector_type = 'User' AND connector_id = 1)
|
7835
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "posts"."id" AND "connections_connections"."connectable_type" = 'Post' WHERE (connections_connections.type = 'Follow' AND connector_type = 'User' AND connector_id = 1)[0m
|
7836
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7837
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7838
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7839
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7840
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7841
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7842
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7843
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7844
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7845
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7846
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7848
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7849
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7850
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7851
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7852
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7853
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7854
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7855
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND (connections_connections.type = 'Follow')[0m
|
7856
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7857
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7858
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7859
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7860
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7861
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7862
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7863
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7865
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7866
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7867
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7868
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7869
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7870
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7871
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7872
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7873
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
7874
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7875
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7876
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7877
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7878
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7879
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7880
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7881
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7882
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7883
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7884
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7885
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7886
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7887
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7888
|
+
[1m[35mLike Load (0.2ms)[0m SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
|
7889
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
7890
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7891
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7892
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7893
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7894
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7895
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7896
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7897
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7898
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7899
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7900
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7901
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7902
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1
|
7903
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7904
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7905
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "posts"."id" AND "connections_connections"."connectable_type" = 'Post' WHERE (connections_connections.type = 'Like' AND connector_type = 'User' AND connector_id = 2)[0m
|
7906
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7907
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7908
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7909
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7910
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7911
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7912
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7913
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7914
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7915
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7916
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7917
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7918
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7919
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7920
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7921
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7922
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7923
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7924
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2
|
7925
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7926
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7927
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7928
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7929
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7930
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7931
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7932
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7933
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7934
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7935
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7936
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7937
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7938
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7939
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7940
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7941
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7942
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1
|
7943
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7944
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7945
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7946
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7947
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7948
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:51 UTC +00:00]]
|
7949
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7950
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7951
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7952
|
+
[1m[35mLike Load (0.1ms)[0m SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."connectable_id" = 1
|
7953
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7954
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
|
7955
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7956
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7957
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7958
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7959
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7960
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7961
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
|
7962
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7963
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7964
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
|
7965
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7966
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7967
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
|
7968
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7969
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7970
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7971
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
|
7972
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7973
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7974
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2
|
7975
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7976
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
7977
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7978
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7979
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
|
7980
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7981
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7982
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
|
7983
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7984
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7985
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
|
7986
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7987
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7988
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1
|
7989
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
|
7990
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7991
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7992
|
+
[1m[35mLike Load (0.1ms)[0m SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."connectable_id" = 1
|
7993
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7994
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
|
7995
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7996
|
+
[1m[35mConnections::Connection Exists (0.2ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7997
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: connections
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
segments:
|
118
118
|
- 0
|
119
|
-
hash: -
|
119
|
+
hash: -2112956439051513006
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
segments:
|
127
127
|
- 0
|
128
|
-
hash: -
|
128
|
+
hash: -2112956439051513006
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
131
|
rubygems_version: 1.8.23
|