connections 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/connections/connectable.rb +2 -1
- data/lib/connections/connector.rb +2 -1
- data/lib/connections/version.rb +1 -1
- data/test/dummy/log/test.log +262 -0
- metadata +3 -3
@@ -9,7 +9,8 @@ module Connections
|
|
9
9
|
class_eval do
|
10
10
|
|
11
11
|
# user.followers(:user)
|
12
|
-
define_method :"#{t.to_s.sub(/e$/,'')}ers" do |
|
12
|
+
define_method :"#{t.to_s.sub(/e$/,'')}ers" do |*args|
|
13
|
+
class_name = args.first
|
13
14
|
if class_name
|
14
15
|
klass = class_name.to_s.classify.constantize
|
15
16
|
klass.joins(:connections).where("connections_connections.type = ? AND connectable_type = ? AND connectable_id = ?", t.to_s.classify, self.class.base_class.to_s, self)
|
@@ -41,7 +41,8 @@ module Connections
|
|
41
41
|
end
|
42
42
|
|
43
43
|
# user.following(:user)
|
44
|
-
define_method :"#{t.to_s.sub(/e$/,'')}ing" do |
|
44
|
+
define_method :"#{t.to_s.sub(/e$/,'')}ing" do |*args|
|
45
|
+
class_name = args.first
|
45
46
|
if class_name
|
46
47
|
klass = class_name.to_s.classify.constantize
|
47
48
|
klass.joins(:incoming_connections).where("connections_connections.type = ? AND connector_type = ? AND connector_id = ?", t.to_s.classify, self.class.base_class.to_s, self)
|
data/lib/connections/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -6926,3 +6926,265 @@ SQLite3::SQLException: no such column: connections.type: SELECT "users".* FROM "
|
|
6926
6926
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6927
6927
|
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
6928
6928
|
[1m[35m (0.5ms)[0m rollback transaction
|
6929
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
6930
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6931
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6932
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6933
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6934
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6935
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6936
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6937
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6938
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6939
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6940
|
+
[1m[35mConnections::Connection Exists (0.2ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
6941
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6942
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6943
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6944
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
|
6945
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 2 AND "connections_connections"."connectable_type" = 'User'[0m
|
6946
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
|
6947
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6948
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "connections_connections"
|
6949
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6950
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
6951
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6952
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6953
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6954
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User'
|
6955
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'User'[0m
|
6956
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
6957
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6958
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "connections_connections"
|
6959
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6960
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6961
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6962
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6963
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6964
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6965
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6966
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6967
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6968
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6969
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6970
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
6971
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6972
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
6973
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6974
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6975
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
6976
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
6977
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6978
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6979
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6980
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6981
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6982
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6983
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6984
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6985
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6986
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6987
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6988
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
6989
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6990
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6991
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6992
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
6993
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
6994
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6995
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connector_id" = "users"."id" AND "connections_connections"."connector_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connectable_type = 'User' AND connectable_id = 2)[0m
|
6996
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connector_id" = "users"."id" AND "connections_connections"."connector_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connectable_type = 'Post' AND connectable_id = 1)
|
6997
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
6998
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6999
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7000
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7001
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7002
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7003
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7004
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7005
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7006
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7007
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7008
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7009
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7010
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7011
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7012
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7013
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7014
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7015
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7016
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connectable_id" = 1 AND "connections_connections"."connectable_type" = 'Post' AND (connections_connections.type = 'Follow')
|
7017
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
7018
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7019
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7020
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7021
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7022
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7023
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7024
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7025
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7026
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7027
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7028
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7029
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7030
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7031
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7032
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7033
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7034
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7035
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7036
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "users"."id" AND "connections_connections"."connectable_type" = 'User' WHERE (connections_connections.type = 'Follow' AND connector_type = 'User' AND connector_id = 1)
|
7037
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "posts"."id" AND "connections_connections"."connectable_type" = 'Post' WHERE (connections_connections.type = 'Follow' AND connector_type = 'User' AND connector_id = 1)[0m
|
7038
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7039
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7040
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7041
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7042
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7043
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7044
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7045
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7046
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7047
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7048
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7049
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7050
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7051
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7052
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7053
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7054
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1
|
7055
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7056
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7057
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND (connections_connections.type = 'Follow')[0m
|
7058
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7059
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7060
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7061
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7062
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7064
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7065
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7066
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7067
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7068
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7069
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7070
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7071
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7072
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Like"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7073
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7074
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7075
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7076
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7077
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7078
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7079
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7080
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7081
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7082
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7083
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7084
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7085
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7086
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7087
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7088
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Like"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7089
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7090
|
+
[1m[35mLike Load (0.1ms)[0m SELECT "connections_connections".* FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User'
|
7091
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
7092
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7093
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7094
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7095
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7096
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7097
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7098
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7099
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7100
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7101
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7102
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7103
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7104
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1
|
7105
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Like"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7106
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7107
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" INNER JOIN "connections_connections" ON "connections_connections"."connectable_id" = "posts"."id" AND "connections_connections"."connectable_type" = 'Post' WHERE (connections_connections.type = 'Like' AND connector_type = 'User' AND connector_id = 2)[0m
|
7108
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7109
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7110
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7111
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7112
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7113
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7114
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7115
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7117
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7119
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7121
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7122
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7123
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7124
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7125
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7126
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2
|
7127
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1[0m
|
7128
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7130
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7131
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7132
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7133
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7134
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7135
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7136
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7137
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7138
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7139
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7140
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7141
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7142
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Like"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7144
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7145
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7146
|
+
[1m[35mConnections::Connection Load (0.2ms)[0m SELECT "connections_connections".* 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
|
7147
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7148
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ? [["id", 1]]
|
7149
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7150
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7151
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7152
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7153
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7154
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7157
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7158
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7159
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7160
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7161
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7162
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7163
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 1 AND "connections_connections"."type" = 'Follow') LIMIT 1[0m
|
7164
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 2], ["connectable_type", "User"], ["connector_id", 1], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Follow"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7165
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7166
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7167
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2[0m
|
7168
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Follow' AND "connections_connections"."connectable_type" = 'User' AND "connections_connections"."connectable_id" = 2 LIMIT 1
|
7169
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7171
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7172
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7173
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7174
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7175
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7176
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7177
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7178
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7179
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7180
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7181
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE ("connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."connector_id" = 2 AND "connections_connections"."type" = 'Like') LIMIT 1[0m
|
7182
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "connections_connections" ("connectable_id", "connectable_type", "connector_id", "connector_type", "created_at", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["connectable_id", 1], ["connectable_type", "Post"], ["connector_id", 2], ["connector_type", "User"], ["created_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00], ["type", "Like"], ["updated_at", Sun, 30 Dec 2012 03:13:15 UTC +00:00]]
|
7183
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7184
|
+
[1m[35mConnections::Connection Exists (0.1ms)[0m SELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1
|
7185
|
+
[1m[36mConnections::Connection Load (0.1ms)[0m [1mSELECT "connections_connections".* 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[0m
|
7186
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7187
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "connections_connections" WHERE "connections_connections"."type" IN ('Like') AND "connections_connections"."id" = ?[0m [["id", 1]]
|
7188
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7189
|
+
[1m[36mConnections::Connection Exists (0.1ms)[0m [1mSELECT 1 FROM "connections_connections" WHERE "connections_connections"."connector_id" = 2 AND "connections_connections"."connector_type" = 'User' AND "connections_connections"."type" = 'Like' AND "connections_connections"."connectable_type" = 'Post' AND "connections_connections"."connectable_id" = 1 LIMIT 1[0m
|
7190
|
+
[1m[35m (0.6ms)[0m 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.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
segments:
|
118
118
|
- 0
|
119
|
-
hash:
|
119
|
+
hash: -982159010185069862
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
segments:
|
127
127
|
- 0
|
128
|
-
hash:
|
128
|
+
hash: -982159010185069862
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
131
|
rubygems_version: 1.8.23
|