test/dummy/log/test.log in markable-0.0.8 vs test/dummy/log/test.log in markable-0.1.0
- old
+ new
@@ -124487,5 +124487,701 @@
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Wed, 14 Mar 2012 07:30:13 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'[0m
[1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (10.0ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' GROUP BY foods.id[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 5 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 5], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' GROUP BY foods.id
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' GROUP BY foods.id
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 5 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 5], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' GROUP BY foods.id[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 3 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 3], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' GROUP BY foods.id[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, foods.id AS foods_id FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' GROUP BY foods.id
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "admins" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Admin1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "drinks" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Drink1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 1 AND "marks"."markable_type" = 'Drink' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 1], ["markable_type", "Drink"], ["marker_id", 2], ["marker_type", "Admin"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mDrink Load (0.1ms)[0m [1mSELECT "drinks".* FROM "drinks" INNER JOIN "marks" ON "marks"."markable_id" = "drinks"."id" AND "marks"."markable_type" = 'Drink' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin'[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "admins" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Admin1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "drinks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Drink1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 1 AND "marks"."markable_type" = 'Drink' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 1], ["markable_type", "Drink"], ["marker_id", 2], ["marker_type", "Admin"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mDrink Load (0.1ms)[0m SELECT "drinks".* FROM "drinks" INNER JOIN "marks" ON "marks"."markable_id" = "drinks"."id" AND "marks"."markable_type" = 'Drink' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin'
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "admins" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Admin1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Food1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Food2"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "drinks" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Drink1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "Admin"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "Admin"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 1 AND "marks"."markable_type" = 'Drink' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 1], ["markable_type", "Drink"], ["marker_id", 2], ["marker_type", "Admin"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin'[0m
+ [1m[35mDrink Load (0.1ms)[0m SELECT "drinks".* FROM "drinks" INNER JOIN "marks" ON "marks"."markable_id" = "drinks"."id" AND "marks"."markable_type" = 'Drink' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin'
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "admins" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Admin1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Food1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "drinks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Drink1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "Admin"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.0ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 1 AND "marks"."markable_type" = 'Drink' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'Admin' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 1], ["markable_type", "Drink"], ["marker_id", 2], ["marker_type", "Admin"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "admins" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Admin"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.0ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35mMarkable::Mark Exists (0.0ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' LIMIT 1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' LIMIT 1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'
+ [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite'[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food'[0m
+ [1m[35mSQL (0.0ms)[0m DELETE FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."mark" = 'favorite'
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food'
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.0ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food'
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food'
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'
+ [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite'[0m
+ [1m[35mSQL (0.1ms)[0m DELETE FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite'
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food'
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "marker"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "drinks" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "markable"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "marker"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "markable"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "User1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Food1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Food2"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "User1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "drinks" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "Drink1"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "marker"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "marker"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "marker"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "drinks" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "markable"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "marker"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", "markable"], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" INNER JOIN "marks" ON "marks"."marker_id" = "users"."id" AND "marks"."marker_type" = 'User' WHERE "marks"."mark" = 'favorite' AND "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food'
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mSQL (0.1ms)[0m DELETE FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite'
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'hated' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :hated], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'hated' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mMarkable::Mark Exists (0.1ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite'[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "foods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["name", nil], ["updated_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'[0m
+ [1m[35mMarkable::Mark Exists (0.0ms)[0m SELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 1], ["marker_type", "User"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mFood Load (0.1ms)[0m SELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 1 AND "marks"."marker_type" = 'User'
+ [1m[36mMarkable::Mark Exists (0.1ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 3 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 3], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mMarkable::Mark Exists (0.0ms)[0m [1mSELECT 1 FROM "marks" WHERE "marks"."markable_id" = 4 AND "marks"."markable_type" = 'Food' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User' AND "marks"."mark" = 'favorite' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "marks" ("created_at", "mark", "markable_id", "markable_type", "marker_id", "marker_type") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Tue, 03 Apr 2012 03:55:48 UTC +00:00], ["mark", :favorite], ["markable_id", 4], ["markable_type", "Food"], ["marker_id", 2], ["marker_type", "User"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mFood Load (0.1ms)[0m [1mSELECT "foods".* FROM "foods" INNER JOIN "marks" ON "marks"."markable_id" = "foods"."id" AND "marks"."markable_type" = 'Food' WHERE "marks"."mark" = 'favorite' AND "marks"."marker_id" = 2 AND "marks"."marker_type" = 'User'[0m
+ [1m[35m (0.5ms)[0m rollback transaction