connections 0.1.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module Connections
13
13
 
14
14
  # user.follow(other_user)
15
15
  define_method t do |connectable|
16
- Connections::Connection.create do |c|
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
- scope = active_connections(t, connectable)
26
- Object.const_defined?(t.to_s.classify) ? scope.destroy_all : scope.delete_all
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.table_name.classify, :connectable_id => connectable)
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
@@ -1,3 +1,3 @@
1
1
  module Connections
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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
@@ -7188,3 +7188,810 @@ SQLite3::SQLException: no such column: connections.type: SELECT "users".* FROM "
7188
7188
   (0.0ms) RELEASE SAVEPOINT active_record_1
7189
7189
  Connections::Connection Exists (0.1ms) 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
7190
7190
   (0.6ms) rollback transaction
7191
+  (0.4ms) begin transaction
7192
+  (0.0ms) SAVEPOINT active_record_1
7193
+ SQL (7.6ms) 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]]
7194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7195
+  (0.0ms) SAVEPOINT active_record_1
7196
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7198
+  (0.0ms) SAVEPOINT active_record_1
7199
+ SQL (0.8ms) 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]]
7200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7201
+  (0.1ms) SAVEPOINT active_record_1
7202
+ Connections::Connection Exists (0.8ms) 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
+ SQL (0.4ms) 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]]
7204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7205
+  (0.0ms) SAVEPOINT active_record_1
7206
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
7207
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 2 AND "connections_connections"."connectable_type" = 'User'
7208
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
7209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7210
+  (0.0ms) SELECT COUNT(*) FROM "connections_connections"
7211
+  (0.0ms) SAVEPOINT active_record_1
7212
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7215
+  (0.0ms) SAVEPOINT active_record_1
7216
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User'
7217
+ SQL (0.0ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'User'
7218
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
7219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7220
+  (0.0ms) SELECT COUNT(*) FROM "connections_connections"
7221
+  (1.4ms) rollback transaction
7222
+  (0.1ms) begin transaction
7223
+  (0.0ms) SAVEPOINT active_record_1
7224
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7226
+  (0.0ms) SAVEPOINT active_record_1
7227
+ SQL (0.3ms) 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]]
7228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7229
+  (0.0ms) SAVEPOINT active_record_1
7230
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7232
+ Connections::Connection Exists (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7234
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7237
+ Connections::Connection Exists (0.1ms) 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
7238
+  (0.6ms) rollback transaction
7239
+  (0.0ms) begin transaction
7240
+  (0.0ms) SAVEPOINT active_record_1
7241
+ SQL (0.3ms) 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]]
7242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7243
+  (0.0ms) SAVEPOINT active_record_1
7244
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7246
+  (0.0ms) SAVEPOINT active_record_1
7247
+ SQL (0.1ms) 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]]
7248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7249
+  (0.0ms) SAVEPOINT active_record_1
7250
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7253
+  (0.0ms) SAVEPOINT active_record_1
7254
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.1ms) 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]]
7256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7257
+ User Load (0.1ms) 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 = 'User' AND connectable_id = 2)
7258
+ User Load (0.1ms) 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
+  (0.5ms) rollback transaction
7260
+  (0.0ms) begin transaction
7261
+  (0.0ms) SAVEPOINT active_record_1
7262
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7264
+  (0.0ms) SAVEPOINT active_record_1
7265
+ SQL (0.2ms) 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]]
7266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7267
+  (0.0ms) SAVEPOINT active_record_1
7268
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7270
+  (0.0ms) SAVEPOINT active_record_1
7271
+ Connections::Connection Exists (0.1ms) 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
7272
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7274
+  (0.0ms) SAVEPOINT active_record_1
7275
+ Connections::Connection Exists (0.1ms) 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" = 'Follow') LIMIT 1
7276
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7278
+  (0.1ms) SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'Post' AND (connections_connections.type = 'Follow')
7279
+  (0.6ms) rollback transaction
7280
+  (0.0ms) begin transaction
7281
+  (0.0ms) SAVEPOINT active_record_1
7282
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7284
+  (0.0ms) SAVEPOINT active_record_1
7285
+ SQL (0.2ms) 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]]
7286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7287
+  (0.0ms) SAVEPOINT active_record_1
7288
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7290
+  (0.0ms) SAVEPOINT active_record_1
7291
+ Connections::Connection Exists (0.1ms) 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
7292
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7294
+  (0.0ms) SAVEPOINT active_record_1
7295
+ Connections::Connection Exists (0.1ms) 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
7296
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7298
+ User Load (0.1ms) 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
+ Post Load (0.1ms) SELECT "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)
7300
+  (0.4ms) rollback transaction
7301
+  (0.0ms) begin transaction
7302
+  (0.0ms) SAVEPOINT active_record_1
7303
+ SQL (0.3ms) 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]]
7304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7305
+  (0.0ms) SAVEPOINT active_record_1
7306
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7308
+  (0.0ms) SAVEPOINT active_record_1
7309
+ SQL (0.1ms) 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]]
7310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7311
+  (0.0ms) SAVEPOINT active_record_1
7312
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7315
+  (0.0ms) SAVEPOINT active_record_1
7316
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.1ms) 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]]
7318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7319
+  (0.1ms) SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND (connections_connections.type = 'Follow')
7320
+  (0.5ms) rollback transaction
7321
+  (0.0ms) begin transaction
7322
+  (0.0ms) SAVEPOINT active_record_1
7323
+ SQL (0.3ms) 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]]
7324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7325
+  (0.0ms) SAVEPOINT active_record_1
7326
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7328
+  (0.0ms) SAVEPOINT active_record_1
7329
+ SQL (0.1ms) 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]]
7330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7331
+ Connections::Connection Exists (0.1ms) 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
7332
+  (0.1ms) SAVEPOINT active_record_1
7333
+ Connections::Connection Exists (0.1ms) 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
7334
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7336
+ Connections::Connection Exists (0.1ms) 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
+  (0.7ms) rollback transaction
7338
+  (0.1ms) begin transaction
7339
+  (0.1ms) SAVEPOINT active_record_1
7340
+ SQL (0.6ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7342
+  (0.0ms) SAVEPOINT active_record_1
7343
+ SQL (0.4ms) 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]]
7344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7345
+  (0.0ms) SAVEPOINT active_record_1
7346
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7348
+  (0.0ms) SAVEPOINT active_record_1
7349
+ Connections::Connection Exists (0.1ms) 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
7350
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7352
+ Like Load (0.2ms) 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
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
7354
+  (0.5ms) rollback transaction
7355
+  (0.0ms) begin transaction
7356
+  (0.0ms) SAVEPOINT active_record_1
7357
+ SQL (0.4ms) 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]]
7358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7359
+  (0.0ms) SAVEPOINT active_record_1
7360
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7362
+  (0.0ms) SAVEPOINT active_record_1
7363
+ SQL (0.2ms) 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]]
7364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7365
+  (0.0ms) SAVEPOINT active_record_1
7366
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7369
+ Post Load (0.1ms) SELECT "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)
7370
+  (0.6ms) rollback transaction
7371
+  (0.0ms) begin transaction
7372
+  (0.0ms) SAVEPOINT active_record_1
7373
+ SQL (0.3ms) 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]]
7374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7375
+  (0.0ms) SAVEPOINT active_record_1
7376
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7378
+  (0.0ms) SAVEPOINT active_record_1
7379
+ SQL (0.1ms) 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]]
7380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7381
+ Connections::Connection Exists (0.1ms) 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
7382
+  (0.0ms) SAVEPOINT active_record_1
7383
+ Connections::Connection Exists (0.1ms) 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
7384
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7386
+ Connections::Connection Exists (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7388
+ SQL (0.2ms) 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
+ Connections::Connection Exists (0.2ms) 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
7390
+  (0.7ms) rollback transaction
7391
+  (0.1ms) begin transaction
7392
+  (0.1ms) SAVEPOINT active_record_1
7393
+ SQL (0.6ms) 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]]
7394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7395
+  (0.0ms) SAVEPOINT active_record_1
7396
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7398
+  (0.0ms) SAVEPOINT active_record_1
7399
+ SQL (0.2ms) 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]]
7400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7401
+ Connections::Connection Exists (0.1ms) 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
7402
+  (0.0ms) SAVEPOINT active_record_1
7403
+ Connections::Connection Exists (0.1ms) 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
7404
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7406
+ Connections::Connection Exists (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7408
+ Like Load (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7410
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
7411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7412
+ Connections::Connection Exists (0.1ms) 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
+  (0.5ms) rollback transaction
7414
+  (0.0ms) begin transaction
7415
+  (0.0ms) SAVEPOINT active_record_1
7416
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7418
+  (0.0ms) SAVEPOINT active_record_1
7419
+ SQL (0.3ms) 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]]
7420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7421
+  (0.0ms) SAVEPOINT active_record_1
7422
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7424
+  (0.0ms) SAVEPOINT active_record_1
7425
+ Connections::Connection Exists (0.1ms) 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
7426
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7428
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.1ms) 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
7430
+ Connections::Connection Exists (0.1ms) 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
+  (0.6ms) rollback transaction
7432
+  (0.0ms) begin transaction
7433
+  (0.0ms) SAVEPOINT active_record_1
7434
+ SQL (19.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7436
+  (0.1ms) SAVEPOINT active_record_1
7437
+ SQL (0.3ms) 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]]
7438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7439
+  (0.0ms) SAVEPOINT active_record_1
7440
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7442
+  (0.0ms) SAVEPOINT active_record_1
7443
+ Connections::Connection Exists (0.1ms) 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
7444
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7446
+ Connections::Connection Exists (0.1ms) 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
+ Like Load (0.1ms) SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2
7448
+  (0.0ms) SAVEPOINT active_record_1
7449
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
7450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7451
+ Connections::Connection Exists (0.1ms) 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
7452
+  (0.6ms) rollback transaction
7453
+  (0.4ms) begin transaction
7454
+  (0.1ms) SAVEPOINT active_record_1
7455
+ SQL (3.9ms) 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]]
7456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7457
+  (0.0ms) SAVEPOINT active_record_1
7458
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7460
+  (0.0ms) SAVEPOINT active_record_1
7461
+ SQL (0.2ms) 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]]
7462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7463
+  (0.1ms) SAVEPOINT active_record_1
7464
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.3ms) 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]]
7466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7467
+  (0.0ms) SAVEPOINT active_record_1
7468
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
7469
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 2 AND "connections_connections"."connectable_type" = 'User'
7470
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
7471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7472
+  (0.0ms) SELECT COUNT(*) FROM "connections_connections"
7473
+  (0.0ms) SAVEPOINT active_record_1
7474
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7477
+  (0.0ms) SAVEPOINT active_record_1
7478
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User'
7479
+ SQL (0.0ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'User'
7480
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
7481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7482
+  (0.0ms) SELECT COUNT(*) FROM "connections_connections"
7483
+  (1.9ms) rollback transaction
7484
+  (0.1ms) begin transaction
7485
+  (0.0ms) SAVEPOINT active_record_1
7486
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7488
+  (0.0ms) SAVEPOINT active_record_1
7489
+ SQL (0.2ms) 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]]
7490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7491
+  (0.0ms) SAVEPOINT active_record_1
7492
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7494
+ Connections::Connection Exists (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7496
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7499
+ Connections::Connection Exists (0.1ms) 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
7500
+  (0.5ms) rollback transaction
7501
+  (0.0ms) begin transaction
7502
+  (0.0ms) SAVEPOINT active_record_1
7503
+ SQL (0.3ms) 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]]
7504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7505
+  (0.0ms) SAVEPOINT active_record_1
7506
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7508
+  (0.0ms) SAVEPOINT active_record_1
7509
+ SQL (0.1ms) 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]]
7510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7511
+  (0.0ms) SAVEPOINT active_record_1
7512
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7515
+  (0.0ms) SAVEPOINT active_record_1
7516
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.1ms) 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]]
7518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7519
+ User Load (0.1ms) 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 = 'User' AND connectable_id = 2)
7520
+ User Load (0.1ms) 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
+  (0.5ms) rollback transaction
7522
+  (0.0ms) begin transaction
7523
+  (0.0ms) SAVEPOINT active_record_1
7524
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7526
+  (0.0ms) SAVEPOINT active_record_1
7527
+ SQL (0.2ms) 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]]
7528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7529
+  (0.0ms) SAVEPOINT active_record_1
7530
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7532
+  (0.0ms) SAVEPOINT active_record_1
7533
+ Connections::Connection Exists (0.1ms) 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
7534
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7536
+  (0.0ms) SAVEPOINT active_record_1
7537
+ Connections::Connection Exists (0.1ms) 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" = 'Follow') LIMIT 1
7538
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7540
+  (0.1ms) SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'Post' AND (connections_connections.type = 'Follow')
7541
+  (0.5ms) rollback transaction
7542
+  (0.0ms) begin transaction
7543
+  (0.0ms) SAVEPOINT active_record_1
7544
+ SQL (0.6ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7546
+  (0.0ms) SAVEPOINT active_record_1
7547
+ SQL (0.3ms) 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]]
7548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7549
+  (0.0ms) SAVEPOINT active_record_1
7550
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7552
+  (0.0ms) SAVEPOINT active_record_1
7553
+ Connections::Connection Exists (0.1ms) 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
7554
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7556
+  (0.0ms) SAVEPOINT active_record_1
7557
+ Connections::Connection Exists (0.1ms) 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
7558
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7560
+ User Load (0.1ms) 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
+ Post Load (0.1ms) SELECT "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)
7562
+  (0.5ms) rollback transaction
7563
+  (0.0ms) begin transaction
7564
+  (0.0ms) SAVEPOINT active_record_1
7565
+ SQL (0.5ms) 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]]
7566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7567
+  (0.0ms) SAVEPOINT active_record_1
7568
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7570
+  (0.0ms) SAVEPOINT active_record_1
7571
+ SQL (0.1ms) 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]]
7572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7573
+  (0.0ms) SAVEPOINT active_record_1
7574
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7576
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7577
+  (0.0ms) SAVEPOINT active_record_1
7578
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.1ms) 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]]
7580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7581
+  (0.1ms) SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND (connections_connections.type = 'Follow')
7582
+  (0.5ms) rollback transaction
7583
+  (0.0ms) begin transaction
7584
+  (0.0ms) SAVEPOINT active_record_1
7585
+ SQL (0.3ms) 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]]
7586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7587
+  (0.0ms) SAVEPOINT active_record_1
7588
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7590
+  (0.0ms) SAVEPOINT active_record_1
7591
+ SQL (0.1ms) 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]]
7592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7593
+ Connections::Connection Exists (0.1ms) 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
7594
+  (0.1ms) SAVEPOINT active_record_1
7595
+ Connections::Connection Exists (0.1ms) 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
7596
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7598
+ Connections::Connection Exists (0.1ms) 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
+  (0.5ms) rollback transaction
7600
+  (0.0ms) begin transaction
7601
+  (0.0ms) SAVEPOINT active_record_1
7602
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7604
+  (0.0ms) SAVEPOINT active_record_1
7605
+ SQL (0.2ms) 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]]
7606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7607
+  (0.0ms) SAVEPOINT active_record_1
7608
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7610
+  (0.0ms) SAVEPOINT active_record_1
7611
+ Connections::Connection Exists (0.1ms) 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
7612
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7614
+ Like Load (0.1ms) 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
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
7616
+  (0.5ms) rollback transaction
7617
+  (0.0ms) begin transaction
7618
+  (0.0ms) SAVEPOINT active_record_1
7619
+ SQL (0.6ms) 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]]
7620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7621
+  (0.0ms) SAVEPOINT active_record_1
7622
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7624
+  (0.0ms) SAVEPOINT active_record_1
7625
+ SQL (0.1ms) 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]]
7626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7627
+  (0.0ms) SAVEPOINT active_record_1
7628
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7630
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7631
+ Post Load (0.1ms) SELECT "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)
7632
+  (0.5ms) rollback transaction
7633
+  (0.0ms) begin transaction
7634
+  (0.0ms) SAVEPOINT active_record_1
7635
+ SQL (0.3ms) 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]]
7636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7637
+  (0.0ms) SAVEPOINT active_record_1
7638
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7640
+  (0.0ms) SAVEPOINT active_record_1
7641
+ SQL (0.1ms) 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]]
7642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7643
+ Connections::Connection Exists (0.1ms) 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
7644
+  (0.0ms) SAVEPOINT active_record_1
7645
+ Connections::Connection Exists (0.1ms) 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
7646
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7648
+ Connections::Connection Exists (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7650
+ SQL (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7652
+  (0.6ms) rollback transaction
7653
+  (0.0ms) begin transaction
7654
+  (0.0ms) SAVEPOINT active_record_1
7655
+ SQL (0.4ms) 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]]
7656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7657
+  (0.0ms) SAVEPOINT active_record_1
7658
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7660
+  (0.0ms) SAVEPOINT active_record_1
7661
+ SQL (0.1ms) 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]]
7662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7663
+  (0.0ms) SAVEPOINT active_record_1
7664
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7666
+ Connections::Connection Exists (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7668
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7671
+ Connections::Connection Exists (0.1ms) 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
7672
+  (0.1ms) SAVEPOINT active_record_1
7673
+ Connections::Connection Exists (0.1ms) SELECT 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
7674
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7676
+ Connections::Connection Exists (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7678
+ Like Load (0.2ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7680
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
7681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7682
+  (0.0ms) SAVEPOINT active_record_1
7683
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 2]]
7684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7685
+ Connections::Connection Exists (0.1ms) 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
7686
+ Connections::Connection Exists (0.1ms) 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
+  (0.5ms) rollback transaction
7688
+  (0.0ms) begin transaction
7689
+  (0.0ms) SAVEPOINT active_record_1
7690
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7692
+  (0.0ms) SAVEPOINT active_record_1
7693
+ SQL (0.2ms) 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]]
7694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7695
+  (0.0ms) SAVEPOINT active_record_1
7696
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7698
+  (0.0ms) SAVEPOINT active_record_1
7699
+ Connections::Connection Exists (0.1ms) 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
7700
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7702
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.1ms) 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
7704
+ Connections::Connection Exists (0.1ms) 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
+  (0.4ms) rollback transaction
7706
+  (0.0ms) begin transaction
7707
+  (0.0ms) SAVEPOINT active_record_1
7708
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7710
+  (0.0ms) SAVEPOINT active_record_1
7711
+ SQL (0.2ms) 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]]
7712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7713
+  (0.0ms) SAVEPOINT active_record_1
7714
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7716
+  (0.0ms) SAVEPOINT active_record_1
7717
+ Connections::Connection Exists (0.1ms) 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
7718
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7720
+ Connections::Connection Exists (0.1ms) 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
+ Like Load (0.1ms) SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2
7722
+  (0.0ms) SAVEPOINT active_record_1
7723
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
7724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7725
+ Connections::Connection Exists (0.1ms) 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
7726
+  (0.6ms) rollback transaction
7727
+  (0.4ms) begin transaction
7728
+  (0.1ms) SAVEPOINT active_record_1
7729
+ SQL (3.9ms) 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]]
7730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7731
+  (0.0ms) SAVEPOINT active_record_1
7732
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7734
+  (0.0ms) SAVEPOINT active_record_1
7735
+ SQL (0.2ms) 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]]
7736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7737
+  (0.1ms) SAVEPOINT active_record_1
7738
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.4ms) 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]]
7740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7741
+  (0.0ms) SAVEPOINT active_record_1
7742
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
7743
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 2 AND "connections_connections"."connectable_type" = 'User'
7744
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
7745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7746
+  (0.1ms) SELECT COUNT(*) FROM "connections_connections"
7747
+  (0.0ms) SAVEPOINT active_record_1
7748
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7751
+  (0.0ms) SAVEPOINT active_record_1
7752
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User'
7753
+ SQL (0.0ms) DELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'User'
7754
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
7755
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7756
+  (0.0ms) SELECT COUNT(*) FROM "connections_connections"
7757
+  (1.9ms) rollback transaction
7758
+  (0.1ms) begin transaction
7759
+  (0.0ms) SAVEPOINT active_record_1
7760
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7762
+  (0.0ms) SAVEPOINT active_record_1
7763
+ SQL (0.3ms) 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]]
7764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7765
+  (0.0ms) SAVEPOINT active_record_1
7766
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7768
+ Connections::Connection Exists (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7770
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7773
+ Connections::Connection Exists (0.1ms) 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
7774
+  (0.5ms) rollback transaction
7775
+  (0.0ms) begin transaction
7776
+  (0.0ms) SAVEPOINT active_record_1
7777
+ SQL (0.3ms) 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]]
7778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7779
+  (0.0ms) SAVEPOINT active_record_1
7780
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7782
+  (0.0ms) SAVEPOINT active_record_1
7783
+ SQL (0.1ms) 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]]
7784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7785
+  (0.0ms) SAVEPOINT active_record_1
7786
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7789
+  (0.0ms) SAVEPOINT active_record_1
7790
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.1ms) 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]]
7792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7793
+ User Load (0.2ms) 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 = 'User' AND connectable_id = 2)
7794
+ User Load (0.1ms) 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
+  (0.5ms) rollback transaction
7796
+  (0.0ms) begin transaction
7797
+  (0.0ms) SAVEPOINT active_record_1
7798
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7800
+  (0.0ms) SAVEPOINT active_record_1
7801
+ SQL (0.2ms) 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]]
7802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7803
+  (0.0ms) SAVEPOINT active_record_1
7804
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7806
+  (0.0ms) SAVEPOINT active_record_1
7807
+ Connections::Connection Exists (0.1ms) 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
7808
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7810
+  (0.0ms) SAVEPOINT active_record_1
7811
+ Connections::Connection Exists (0.1ms) 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" = 'Follow') LIMIT 1
7812
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7814
+  (0.1ms) SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'Post' AND (connections_connections.type = 'Follow')
7815
+  (0.5ms) rollback transaction
7816
+  (0.0ms) begin transaction
7817
+  (0.1ms) SAVEPOINT active_record_1
7818
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7820
+  (0.0ms) SAVEPOINT active_record_1
7821
+ SQL (0.4ms) 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]]
7822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7823
+  (0.0ms) SAVEPOINT active_record_1
7824
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7826
+  (0.0ms) SAVEPOINT active_record_1
7827
+ Connections::Connection Exists (0.1ms) 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
7828
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7830
+  (0.0ms) SAVEPOINT active_record_1
7831
+ Connections::Connection Exists (0.1ms) 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
7832
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7834
+ User Load (0.1ms) 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
+ Post Load (0.1ms) SELECT "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)
7836
+  (0.6ms) rollback transaction
7837
+  (0.0ms) begin transaction
7838
+  (0.0ms) SAVEPOINT active_record_1
7839
+ SQL (0.4ms) 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]]
7840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7841
+  (0.0ms) SAVEPOINT active_record_1
7842
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7844
+  (0.0ms) SAVEPOINT active_record_1
7845
+ SQL (0.1ms) 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]]
7846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7847
+  (0.0ms) SAVEPOINT active_record_1
7848
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7851
+  (0.0ms) SAVEPOINT active_record_1
7852
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7855
+  (0.1ms) SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND (connections_connections.type = 'Follow')
7856
+  (0.5ms) rollback transaction
7857
+  (0.0ms) begin transaction
7858
+  (0.0ms) SAVEPOINT active_record_1
7859
+ SQL (0.3ms) 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]]
7860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7861
+  (0.0ms) SAVEPOINT active_record_1
7862
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7864
+  (0.1ms) SAVEPOINT active_record_1
7865
+ SQL (0.2ms) 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]]
7866
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7867
+ Connections::Connection Exists (0.1ms) 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
7868
+  (0.1ms) SAVEPOINT active_record_1
7869
+ Connections::Connection Exists (0.1ms) 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
7870
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7872
+ Connections::Connection Exists (0.1ms) 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
+  (0.6ms) rollback transaction
7874
+  (0.0ms) begin transaction
7875
+  (0.0ms) SAVEPOINT active_record_1
7876
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7878
+  (0.0ms) SAVEPOINT active_record_1
7879
+ SQL (0.2ms) 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]]
7880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7881
+  (0.0ms) SAVEPOINT active_record_1
7882
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7884
+  (0.0ms) SAVEPOINT active_record_1
7885
+ Connections::Connection Exists (0.1ms) 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
7886
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7888
+ Like Load (0.2ms) 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
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
7890
+  (0.5ms) rollback transaction
7891
+  (0.0ms) begin transaction
7892
+  (0.0ms) SAVEPOINT active_record_1
7893
+ SQL (0.5ms) 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]]
7894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7895
+  (0.0ms) SAVEPOINT active_record_1
7896
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7898
+  (0.0ms) SAVEPOINT active_record_1
7899
+ SQL (0.1ms) 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]]
7900
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7901
+  (0.0ms) SAVEPOINT active_record_1
7902
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7905
+ Post Load (0.1ms) SELECT "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)
7906
+  (0.6ms) rollback transaction
7907
+  (0.0ms) begin transaction
7908
+  (0.0ms) SAVEPOINT active_record_1
7909
+ SQL (0.3ms) 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]]
7910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7911
+  (0.0ms) SAVEPOINT active_record_1
7912
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7914
+  (0.0ms) SAVEPOINT active_record_1
7915
+ SQL (0.2ms) 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]]
7916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7917
+ Connections::Connection Exists (0.1ms) 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
7918
+  (0.0ms) SAVEPOINT active_record_1
7919
+ Connections::Connection Exists (0.1ms) 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
7920
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7922
+ Connections::Connection Exists (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7924
+ SQL (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7926
+  (0.6ms) rollback transaction
7927
+  (0.0ms) begin transaction
7928
+  (0.0ms) SAVEPOINT active_record_1
7929
+ SQL (0.3ms) 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]]
7930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7931
+  (0.0ms) SAVEPOINT active_record_1
7932
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7934
+  (0.0ms) SAVEPOINT active_record_1
7935
+ SQL (0.1ms) 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]]
7936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7937
+  (0.0ms) SAVEPOINT active_record_1
7938
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7940
+ Connections::Connection Exists (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7942
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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]]
7944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7945
+ Connections::Connection Exists (0.1ms) 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
7946
+  (0.1ms) SAVEPOINT active_record_1
7947
+ Connections::Connection Exists (0.1ms) SELECT 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
7948
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7950
+ Connections::Connection Exists (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7952
+ Like Load (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7954
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
7955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7956
+ Connections::Connection Exists (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7958
+  (0.5ms) rollback transaction
7959
+  (0.0ms) begin transaction
7960
+  (0.0ms) SAVEPOINT active_record_1
7961
+ SQL (0.3ms) 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]]
7962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7963
+  (0.0ms) SAVEPOINT active_record_1
7964
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7966
+  (0.0ms) SAVEPOINT active_record_1
7967
+ SQL (0.1ms) INSERT INTO "posts" ("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]]
7968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7969
+  (0.1ms) SAVEPOINT active_record_1
7970
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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:52 UTC +00:00], ["type", "Follow"], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
7972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7973
+ Connections::Connection Exists (0.1ms) 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
7974
+ SQL (0.1ms) 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
+ Connections::Connection Exists (0.1ms) 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
7976
+  (0.4ms) rollback transaction
7977
+  (0.1ms) begin transaction
7978
+  (0.1ms) SAVEPOINT active_record_1
7979
+ SQL (0.4ms) 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]]
7980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7981
+  (0.0ms) SAVEPOINT active_record_1
7982
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7984
+  (0.0ms) SAVEPOINT active_record_1
7985
+ SQL (0.1ms) INSERT INTO "posts" ("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]]
7986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7987
+  (0.0ms) SAVEPOINT active_record_1
7988
+ Connections::Connection Exists (0.1ms) 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
+ SQL (0.2ms) 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:52 UTC +00:00], ["type", "Like"], ["updated_at", Thu, 25 Apr 2013 01:11:52 UTC +00:00]]
7990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7991
+ Connections::Connection Exists (0.1ms) 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
7992
+ Like Load (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
7994
+ SQL (0.1ms) DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
7995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7996
+ Connections::Connection Exists (0.2ms) 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
+  (0.7ms) rollback transaction
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.2
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: 2012-12-30 00:00:00.000000000 Z
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: -982159010185069862
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: -982159010185069862
128
+ hash: -2112956439051513006
129
129
  requirements: []
130
130
  rubyforge_project:
131
131
  rubygems_version: 1.8.23