[1m[36m (8.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
[1m[35m (18.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
Migrating to CreateUsers (20141102231432)
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (20.4ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
[1m[35mSQL (6.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141102231432"]]
[1m[36m (6.2ms)[0m [1mCOMMIT[0m
Migrating to CreateNotifyUserNotifications (20141102231434012012157000)
[1m[35m (6.4ms)[0m BEGIN
[1m[36m (5.5ms)[0m [1mCREATE TABLE "notify_user_notifications" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "params" json, "state" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
[1m[35mSQL (0.8ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141102231434012012157000"]]
[1m[36m (1.1ms)[0m [1mCOMMIT[0m
Migrating to CreateNotifyUserUnsubscribes (20141102231434013013078000)
[1m[35m (0.5ms)[0m BEGIN
[1m[36m (5.7ms)[0m [1mCREATE TABLE "notify_user_unsubscribes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141102231434013013078000"]]
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Migrating to CreateNotifyUserUserHashes (20141102231434013013847000)
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (15.1ms)[0m [1mCREATE TABLE "notify_user_user_hashes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "token" character varying(255), "active" boolean DEFAULT 't', "created_at" timestamp, "updated_at" timestamp) [0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141102231434013013847000"]]
[1m[36m (6.5ms)[0m [1mCOMMIT[0m
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
[1m[36m (118.3ms)[0m [1mDROP DATABASE IF EXISTS "notify_user_test"[0m
[1m[35m (238.8ms)[0m CREATE DATABASE "notify_user_test" ENCODING = 'unicode'
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
[1m[35m (5.1ms)[0m CREATE TABLE "notify_user_notifications" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "params" json, "state" character varying(255), "created_at" timestamp, "updated_at" timestamp)
[1m[36m (3.5ms)[0m [1mCREATE TABLE "notify_user_unsubscribes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
[1m[35m (3.1ms)[0m CREATE TABLE "notify_user_user_hashes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "token" character varying(255), "active" boolean DEFAULT 't', "created_at" timestamp, "updated_at" timestamp)
[1m[36m (1.9ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141102231434013013847000')[0m
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141102231432')
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141102231434012012157000')[0m
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141102231434013013078000')
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (6.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.015263"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.015263"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 17ms (Views: 10.9ms | ActiveRecord: 0.0ms)
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.052362"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.052362"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (6.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:14:41.074901"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.074901"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 13ms (Views: 4.2ms | ActiveRecord: 1.5ms)
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.103414"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.103414"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 3 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.107507"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.107507"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 3 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.111045"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.111045"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 3 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.121939"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.121939"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 3 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 327ms (Views: 325.8ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.457580"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.457580"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 4 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.462673"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.462673"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 4 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.466225"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.466225"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 4 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.469624"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.469624"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"5"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 4 AND "notify_user_notifications"."target_type" = 'User' AND (id = '5') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 4]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 4 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 5[0m [["state", "read"], ["updated_at", "2014-11-02 23:14:41.482243"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 13ms (Views: 1.6ms | ActiveRecord: 1.6ms)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 5 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.492063"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.492063"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 5 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.497072"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.497072"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 5 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.502187"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.502187"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 5 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.505555"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.505555"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"8"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 5 AND "notify_user_notifications"."target_type" = 'User' AND (id = '8') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 5]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 5 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 8[0m [["state", "read"], ["updated_at", "2014-11-02 23:14:41.513145"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.5ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"8"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 5 AND "notify_user_notifications"."target_type" = 'User' AND (id = '8') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 1.8ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.520080"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.520080"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 6 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.523687"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 6], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.523687"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 6 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.527068"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 6], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.527068"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 6 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.530748"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 6], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.530748"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 6 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[35mNotifyUser::BaseNotification Load (1.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 6 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.544424"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.544424"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 7 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:14:41.548084"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 7], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.548084"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["14"]}
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 7 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('14'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 7 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('14'))[0m
Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.8ms)
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 14]]
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.559316"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.559316"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:14:41.563051"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 8], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.563051"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["15"]}
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 8 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('15'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 8 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('15'))[0m
Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.572806"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.572806"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.576453"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 9], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.576453"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 9) LIMIT 1
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.598197"], ["target_id", 9], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.598197"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 25ms (Views: 0.3ms | ActiveRecord: 7.8ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.612544"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.612544"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:14:41.616450"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 10], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.616450"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.628045"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.628045"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 11 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.639114"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 11], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.639114"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 11) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.644449"], ["target_id", 11], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.644449"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 11 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.651390"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.651390"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 12 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:14:41.655045"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 12], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.655045"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 12) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:14:41.659751"], ["target_id", 12], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.659751"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 12 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 3]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.668936"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.668936"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 13 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:14:41.672486"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 13], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.672486"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 13 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '97UlBK4t_SYrPvqbms9xPQxqFDWosHobBTpih80m3pWg' LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.682596"], ["target_id", 13], ["target_type", "User"], ["token", "97UlBK4t_SYrPvqbms9xPQxqFDWosHobBTpih80m3pWg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.682596"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"97UlBK4t_SYrPvqbms9xPQxqFDWosHobBTpih80m3pWg"}
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '97UlBK4t_SYrPvqbms9xPQxqFDWosHobBTpih80m3pWg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '97UlBK4t_SYrPvqbms9xPQxqFDWosHobBTpih80m3pWg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 13]]
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 13) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:14:41.692768"], ["target_id", 13], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.692768"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 1[0m [["active", "f"], ["updated_at", "2014-11-02 23:14:41.694725"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 11ms (Views: 1.0ms | ActiveRecord: 2.7ms)
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 20.9ms
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.0ms
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.8ms
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.786975"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.786975"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 14 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.790555"], ["state", "pending"], ["target_id", 14], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.790555"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 14 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.795519"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.795519"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 15 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.799078"], ["state", "pending"], ["target_id", 15], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.799078"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.802718"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.802718"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 16 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:41.805953"], ["state", "pending"], ["target_id", 16], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.805953"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.809341"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.809341"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 17 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.812647"], ["state", "pending"], ["target_id", 17], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.812647"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 17 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 24[0m [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:14:41.815407"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.819916"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.819916"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 18 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.825273"], ["state", "pending"], ["target_id", 18], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.825273"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 18 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 25[0m [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:14:41.829128"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.833867"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.833867"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 19 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.837164"], ["state", "pending"], ["target_id", 19], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.837164"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 19 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 26[0m [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:14:41.840156"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.844875"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.844875"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.848381"], ["state", "pending"], ["target_id", 20], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.848381"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 27[0m [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:14:41.851172"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.855646"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.855646"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 21 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.858850"], ["state", "pending"], ["target_id", 21], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.858850"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.872183"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.872183"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:41.877574"], ["state", "pending"], ["target_id", 22], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.877574"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 22 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 29)[0m
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 29]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 22]]
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 22 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 29 [["state", "sent"], ["updated_at", "2014-11-02 23:14:41.891257"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 29 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 22]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 29 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.901102"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.901102"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.904529"], ["state", "pending"], ["target_id", 23], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.904529"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 23 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 30)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 30]]
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]]
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 23 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 23]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 30[0m [["state", "sent"], ["updated_at", "2014-11-02 23:14:41.919713"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 30 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 30 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 23]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.929703"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.929703"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 24 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:41.932898"], ["state", "pending"], ["target_id", 24], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.932898"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 24 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 24 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 31)[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 24 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:41.940234"], ["state", "pending"], ["target_id", 24], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.940234"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 24 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 32)
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:41.945439"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:41.945439"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 25 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:41.948994"], ["state", "pending"], ["target_id", 25], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.948994"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 25 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:41.952206"], ["state", "pending"], ["target_id", 25], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.952206"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 34]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 25]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 25 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 25 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 33 [["state", "sent"], ["updated_at", "2014-11-02 23:14:41.960749"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 25]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 25 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 34[0m [["state", "sent"], ["updated_at", "2014-11-02 23:14:41.965085"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 25 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 25 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'IYWk6L5Vj7Z0xj04ijVxHA5iGi2Aq6DyhyVl2uN4oVSg' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:41.987436"], ["target_id", 25], ["target_type", "User"], ["token", "IYWk6L5Vj7Z0xj04ijVxHA5iGi2Aq6DyhyVl2uN4oVSg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:41.987436"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#aggregate_notifications_email: processed outbound mail in 22.9ms
Sent mail to user@example.com (9.4ms)
Date: Mon, 03 Nov 2014 10:14:41 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456bae1f2adf_148fe3fe041019be82537@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
=
New Post Notification happened. =
New Post Notification happened. =
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:42.003551"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.003551"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.007253"], ["state", "pending"], ["target_id", 26], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.007253"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 35]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 26]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 26 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 35 [["state", "sent"], ["updated_at", "2014-11-02 23:14:42.015332"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 35 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 26]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 26 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'L_ofWjJhyKFHtvGxAGusuAbhDf7j4RtlJTsqrDWjf29w' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.025761"], ["target_id", 26], ["target_type", "User"], ["token", "L_ofWjJhyKFHtvGxAGusuAbhDf7j4RtlJTsqrDWjf29w"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.025761"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.3ms
Sent mail to user@example.com (5.1ms)
Date: Mon, 03 Nov 2014 10:14:42 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456bae275d9_148fe3fe041019be825445@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:42.038457"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.038457"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 27) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:14:42.044246"], ["target_id", 27], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.044246"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 27 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.056755"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.056755"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.060128"], ["state", "pending"], ["target_id", 28], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.060128"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 36 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]]
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.067172"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.067172"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.070584"], ["state", "pending"], ["target_id", 29], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.070584"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.074048"], ["state", "pending"], ["target_id", 29], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.074048"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 38]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 29 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 29]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 37[0m [["state", "sent"], ["updated_at", "2014-11-02 23:14:42.080350"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 38 [["state", "sent"], ["updated_at", "2014-11-02 23:14:42.083993"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 29 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EP5XUPo7En3X4LMEcDdBSwx1L42K70L84yr9tH2Rj39w' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.095592"], ["target_id", 29], ["target_type", "User"], ["token", "EP5XUPo7En3X4LMEcDdBSwx1L42K70L84yr9tH2Rj39w"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.095592"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#aggregate_notifications_email: processed outbound mail in 12.4ms
Sent mail to user@example.com (5.3ms)
Date: Mon, 03 Nov 2014 10:14:42 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456bae218822_148fe3fe041019be825519@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
=
New Post Notification happened. =
New Post Notification happened. =
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.107552"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.107552"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.111296"], ["state", "pending"], ["target_id", 30], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.111296"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 39]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 30 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 30]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 39[0m [["state", "sent"], ["updated_at", "2014-11-02 23:14:42.124554"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 39 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 30 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'fFrS-FMPUHCwnLgiLdfX1Q1r6Rf9coBpxdM-4eFMfvVQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.135145"], ["target_id", 30], ["target_type", "User"], ["token", "fFrS-FMPUHCwnLgiLdfX1Q1r6Rf9coBpxdM-4eFMfvVQ"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.135145"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.3ms
Sent mail to user@example.com (5.4ms)
Date: Mon, 03 Nov 2014 10:14:42 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456bae222047_148fe3fe041019be82561d@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:42.148602"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.148602"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 31 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.152473"], ["state", "pending"], ["target_id", 31], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.152473"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 31 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 31 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 31 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 40 [["state", "sent"], ["updated_at", "2014-11-02 23:14:42.158038"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 40 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 31]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 31 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 31 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.165449"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.165449"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 32) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.168311"], ["target_id", 32], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.168311"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 32 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 32 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 32 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.176771"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.176771"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 33) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.179692"], ["target_id", 33], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2014-11-02 23:14:42.179692"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 7 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 33) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 33 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.186451"], ["state", "pending"], ["target_id", 33], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.186451"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 33 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 33 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 33 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 41 [["state", "sent"], ["updated_at", "2014-11-02 23:14:42.194642"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 41 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 33]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 33 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 33 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.201688"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.201688"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 34 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.204964"], ["state", "pending"], ["target_id", 34], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.204964"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 34 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ayBre9ztawhrIWsQPjhosQKixBYY4ZTWMkCGQlwI6dCA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.208231"], ["target_id", 34], ["target_type", "User"], ["token", "ayBre9ztawhrIWsQPjhosQKixBYY4ZTWMkCGQlwI6dCA"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.208231"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.212171"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.212171"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 35 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.215397"], ["state", "pending"], ["target_id", 35], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.215397"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 35 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5coDtAQt5RMmvFImOv-FzQvyCwiKvfHAkQQg95TjAT-Q' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.218585"], ["target_id", 35], ["target_type", "User"], ["token", "5coDtAQt5RMmvFImOv-FzQvyCwiKvfHAkQQg95TjAT-Q"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.218585"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 35 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:42.223487"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.223487"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 36 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.227088"], ["state", "pending"], ["target_id", 36], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.227088"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 36 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mmNZ8MeNXoFyMzIW5KkHKAW-EAN66zzthfxgq5j618Aw' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.230345"], ["target_id", 36], ["target_type", "User"], ["token", "mmNZ8MeNXoFyMzIW5KkHKAW-EAN66zzthfxgq5j618Aw"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.230345"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 8 [["active", "f"], ["updated_at", "2014-11-02 23:14:42.232991"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 36 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'CXo1L9AsvnLKWpD5TAxVsQNPswdnBy__1IICDe4tIVEQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.236333"], ["target_id", 36], ["target_type", "User"], ["token", "CXo1L9AsvnLKWpD5TAxVsQNPswdnBy__1IICDe4tIVEQ"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.236333"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:42.242372"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.242372"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 37) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:14:42.245568"], ["target_id", 37], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.245568"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 37) LIMIT 1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 37 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.252919"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.252919"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 38) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.256061"], ["target_id", 38], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.256061"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 38) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 38 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:42.263211"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.263211"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 39) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:14:42.266137"], ["target_id", 39], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.266137"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 39) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 39) LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 39 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 39 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 10]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 39 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.277776"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.277776"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 40 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.283088"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 40], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.283088"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:42.287149"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.287149"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'jw9CG5eHO15cnwDTmxbQHAhGM_DjwRx3-mk458EdiEuA' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.289195"], ["target_id", 41], ["target_type", "User"], ["token", "jw9CG5eHO15cnwDTmxbQHAhGM_DjwRx3-mk458EdiEuA"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.289195"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'jw9CG5eHO15cnwDTmxbQHAhGM_DjwRx3-mk458EdiEuA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:14:42.294858"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.294858"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ksZKAKByvmTFBBQGJmGsDgGdZUbhcVYh9l91YOoizLvg' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:14:42.296966"], ["target_id", 42], ["target_type", "User"], ["token", "ksZKAKByvmTFBBQGJmGsDgGdZUbhcVYh9l91YOoizLvg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.296966"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 11[0m [["active", "f"], ["updated_at", "2014-11-02 23:14:42.300209"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ksZKAKByvmTFBBQGJmGsDgGdZUbhcVYh9l91YOoizLvg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.304296"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.304296"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'YF-XSQNkhDTvyNw_xUc3Lw-MFpM4qtTtVQ1jjT3B4HKw' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.306222"], ["target_id", 43], ["target_type", "User"], ["token", "YF-XSQNkhDTvyNw_xUc3Lw-MFpM4qtTtVQ1jjT3B4HKw"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.306222"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 12 [["active", "f"], ["updated_at", "2014-11-02 23:14:42.309600"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.312717"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:14:42.312717"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'kEVRb0ovEB9VHsDrXz2atwT8bDVXX24FCR-uWk0xXnow' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:14:42.314595"], ["target_id", 44], ["target_type", "User"], ["token", "kEVRb0ovEB9VHsDrXz2atwT8bDVXX24FCR-uWk0xXnow"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:14:42.314595"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.186514"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.186514"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.217779"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.217779"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 134 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:33:26.240692"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 134], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.240692"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 134 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 134 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 18ms (Views: 5.0ms | ActiveRecord: 1.1ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.266301"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.266301"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 135 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.269725"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 135], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.269725"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 135 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.272782"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 135], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.272782"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 135 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.276008"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 135], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.276008"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 135 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 28ms (Views: 27.1ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.310865"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.310865"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.314386"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 136], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.314386"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.317738"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 136], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.317738"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.321716"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 136], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.321716"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"140"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 136 AND "notify_user_notifications"."target_type" = 'User' AND (id = '140') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 136]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 140[0m [["state", "read"], ["updated_at", "2014-11-02 23:33:26.335090"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 14ms (Views: 1.7ms | ActiveRecord: 1.8ms)
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 140 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.344723"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.344723"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.348486"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 137], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.348486"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.351591"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 137], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.351591"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.354673"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 137], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.354673"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"143"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 137 AND "notify_user_notifications"."target_type" = 'User' AND (id = '143') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 137]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 143[0m [["state", "read"], ["updated_at", "2014-11-02 23:33:26.362002"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.4ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"143"}
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 137 AND "notify_user_notifications"."target_type" = 'User' AND (id = '143') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 1.8ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.368550"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.368550"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 138 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.371833"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 138], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.371833"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 138 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.374818"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 138], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.374818"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 138 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.377924"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 138], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.377924"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 138 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 138 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.387443"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.387443"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 139 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:33:26.390802"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 139], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.390802"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["149"]}
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 139 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('149'))
[1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 139 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('149'))[0m
Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 149]]
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.400721"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.400721"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 140 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:33:26.404118"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 140], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.404118"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["150"]}
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 140 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('150'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 140 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('150'))[0m
Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.412594"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.412594"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 141 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.415924"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 141], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.415924"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 141 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 141 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 141) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.432965"], ["target_id", 141], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.432965"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 141 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 1.6ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 141 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.439593"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.439593"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 142 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:33:26.442982"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 142], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.442982"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 142 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 142 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 142 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 142 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.452964"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.452964"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 143 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.456111"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 143], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.456111"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 143) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.461480"], ["target_id", 143], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.461480"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 143 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.467374"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.467374"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 144 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:33:26.470639"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 144], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.470639"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 144) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:33:26.473738"], ["target_id", 144], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.473738"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 144 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 33]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.484297"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.484297"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 145 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:33:26.488649"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 145], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.488649"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 145 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ZyGy19bACaREGXXEhWk3iQ08xKp1N76IJOutTfMh4rRw' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.509073"], ["target_id", 145], ["target_type", "User"], ["token", "ZyGy19bACaREGXXEhWk3iQ08xKp1N76IJOutTfMh4rRw"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.509073"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"ZyGy19bACaREGXXEhWk3iQ08xKp1N76IJOutTfMh4rRw"}
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ZyGy19bACaREGXXEhWk3iQ08xKp1N76IJOutTfMh4rRw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ZyGy19bACaREGXXEhWk3iQ08xKp1N76IJOutTfMh4rRw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 145]]
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 145) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:33:26.518838"], ["target_id", 145], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.518838"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 40[0m [["active", "f"], ["updated_at", "2014-11-02 23:33:26.520439"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 2.3ms)
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 15.5ms
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.5ms
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.1ms
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.596628"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.596628"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 146 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.599993"], ["state", "pending"], ["target_id", 146], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.599993"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 146 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.604441"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.604441"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 147 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.607718"], ["state", "pending"], ["target_id", 147], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.607718"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.611944"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.611944"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 148 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.615220"], ["state", "pending"], ["target_id", 148], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.615220"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.618386"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.618386"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 149 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.621535"], ["state", "pending"], ["target_id", 149], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.621535"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 149 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 159[0m [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:33:26.624379"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.628784"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.628784"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 150 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.632448"], ["state", "pending"], ["target_id", 150], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.632448"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 150 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 160[0m [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:33:26.636363"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.641185"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.641185"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 151 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.644586"], ["state", "pending"], ["target_id", 151], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.644586"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 151 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 161[0m [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:33:26.648272"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.653121"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.653121"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 152 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.656651"], ["state", "pending"], ["target_id", 152], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.656651"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 152 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 162[0m [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:33:26.659379"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.663871"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.663871"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 153 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.667304"], ["state", "pending"], ["target_id", 153], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.667304"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.673019"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.673019"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 154 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.676317"], ["state", "pending"], ["target_id", 154], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.676317"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 154 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 154 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 164)[0m
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 164]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 154]]
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 154 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 154]]
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 154 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 164 [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.689688"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 164 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 154]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 154 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 164 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 154]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 154 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.699843"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.699843"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 155 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.703160"], ["state", "pending"], ["target_id", 155], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.703160"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 155 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 155 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 165)
[1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 165]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 155]]
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 155 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 155]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 155 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 165[0m [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.720386"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 165 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 155]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 155 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 165 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 155]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 155 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.733425"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.733425"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 156 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.736580"], ["state", "pending"], ["target_id", 156], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.736580"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 156 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 156 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 166)[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 156 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.743971"], ["state", "pending"], ["target_id", 156], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.743971"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 156 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 167)
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.749347"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.749347"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 157 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.752775"], ["state", "pending"], ["target_id", 157], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.752775"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 157 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.756270"], ["state", "pending"], ["target_id", 157], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.756270"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 169]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 157]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 157 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 157]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 157 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 168 [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.765106"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 157]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 157 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 169[0m [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.769654"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 157 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 157 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'zhQgeiCjH9-21tGqqoglaQFinN-hWodHIbLjU0238Huw' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.791795"], ["target_id", 157], ["target_type", "User"], ["token", "zhQgeiCjH9-21tGqqoglaQFinN-hWodHIbLjU0238Huw"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.791795"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#aggregate_notifications_email: processed outbound mail in 23.0ms
Sent mail to user@example.com (7.8ms)
Date: Mon, 03 Nov 2014 10:33:26 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456bf46c2c26_21a33fee3ac11bec98662@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
=
New Post Notification happened. =
New Post Notification happened. =
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.806949"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.806949"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 158 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.810588"], ["state", "pending"], ["target_id", 158], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.810588"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 170]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 158]]
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 158 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 158]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 158 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 170 [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.820083"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 170 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 158]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 158 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 158 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ICt3EA5ttlUliWhgEdmlpQFMBqCrrctSwuYeGBb4MOQw' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.830439"], ["target_id", 158], ["target_type", "User"], ["token", "ICt3EA5ttlUliWhgEdmlpQFMBqCrrctSwuYeGBb4MOQw"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.830439"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.9ms
Sent mail to user@example.com (5.3ms)
Date: Mon, 03 Nov 2014 10:33:26 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456bf46cbc2e_21a33fee3ac11bec9876a@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 158 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.843187"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.843187"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 159) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:33:26.846029"], ["target_id", 159], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.846029"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 159 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.852717"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.852717"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 160 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.856037"], ["state", "pending"], ["target_id", 160], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.856037"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 171 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 160]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 160 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.862212"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.862212"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 161 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.865538"], ["state", "pending"], ["target_id", 161], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.865538"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 161 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.869102"], ["state", "pending"], ["target_id", 161], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.869102"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 173]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 161]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 161 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 161]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 161 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 172[0m [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.875533"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 161]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 161 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 173 [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.879751"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 161 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 161 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'LC3GRDwp8i56RRkkFZ72Aga2KdN73L43CMtBfz4yQfWg' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.888931"], ["target_id", 161], ["target_type", "User"], ["token", "LC3GRDwp8i56RRkkFZ72Aga2KdN73L43CMtBfz4yQfWg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.888931"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#aggregate_notifications_email: processed outbound mail in 9.7ms
Sent mail to user@example.com (5.1ms)
Date: Mon, 03 Nov 2014 10:33:26 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456bf46da12d_21a33fee3ac11bec988eb@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
=
New Post Notification happened. =
New Post Notification happened. =
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.899973"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.899973"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 162 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.903371"], ["state", "pending"], ["target_id", 162], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.903371"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 174]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 162]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 162 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 162]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 162 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 174[0m [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.909594"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 174 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 162]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 162 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 162 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '2IJPwutNpyJjra2pWZG5XQvkH36oZqDGAmJl5kzjB2Bg' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.919783"], ["target_id", 162], ["target_type", "User"], ["token", "2IJPwutNpyJjra2pWZG5XQvkH36oZqDGAmJl5kzjB2Bg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.919783"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.2ms
Sent mail to user@example.com (12.3ms)
Date: Mon, 03 Nov 2014 10:33:26 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456bf46e1a1e_21a33fee3ac11bec98912@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:26.938205"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.938205"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.941296"], ["state", "pending"], ["target_id", 163], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.941296"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 175 [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.946296"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 175 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 163]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.953449"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.953449"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 164) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.956257"], ["target_id", 164], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.956257"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 164 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 164 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 164 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.964157"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.964157"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 165) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.966959"], ["target_id", 165], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2014-11-02 23:33:26.966959"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 37 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 165) LIMIT 1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 165 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.972836"], ["state", "pending"], ["target_id", 165], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.972836"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 165 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 165 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 165 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 176 [["state", "sent"], ["updated_at", "2014-11-02 23:33:26.977994"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 176 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 165]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 165 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 165 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.985308"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.985308"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 166 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.988353"], ["state", "pending"], ["target_id", 166], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.988353"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 166 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'U53RJUcNmA8ndWzEaqvjVgOPTBEjfZ8rzUCOGphk7HXw' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:26.991312"], ["target_id", 166], ["target_type", "User"], ["token", "U53RJUcNmA8ndWzEaqvjVgOPTBEjfZ8rzUCOGphk7HXw"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.991312"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.995298"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:26.995298"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 167 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:26.998264"], ["state", "pending"], ["target_id", 167], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:26.998264"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 167 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '6SbBr-nCU8s_SoNSi98MeQw-S85beSiS3k4ROWk_QVDA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:27.001497"], ["target_id", 167], ["target_type", "User"], ["token", "6SbBr-nCU8s_SoNSi98MeQw-S85beSiS3k4ROWk_QVDA"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.001497"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 167 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:27.007035"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.007035"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 168 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:27.010117"], ["state", "pending"], ["target_id", 168], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.010117"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 168 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'KlYscAu5k4jPhtZutrGB-QCsxkzs7D4qIfWXTM1uocDg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.013099"], ["target_id", 168], ["target_type", "User"], ["token", "KlYscAu5k4jPhtZutrGB-QCsxkzs7D4qIfWXTM1uocDg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.013099"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 47 [["active", "f"], ["updated_at", "2014-11-02 23:33:27.015377"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 168 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'jJZOxK1IC1-MQzMJzHWeigE7b6wdz2MFVxTNSOirlJjQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.018445"], ["target_id", 168], ["target_type", "User"], ["token", "jJZOxK1IC1-MQzMJzHWeigE7b6wdz2MFVxTNSOirlJjQ"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.018445"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:27.022610"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.022610"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 169) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:33:27.025375"], ["target_id", 169], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.025375"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 38 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 169) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 169 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.032185"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.032185"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 170) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.034723"], ["target_id", 170], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.034723"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 39 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 170) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 170 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:27.041543"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.041543"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 171) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:33:27.044073"], ["target_id", 171], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.044073"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 40 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 171) LIMIT 1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 171) LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 171 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 171 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 40]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 171 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.054226"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.054226"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 172 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.057540"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 172], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.057540"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:27.060759"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.060759"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Gjd92HbEwlApV0mYzAEBZwI7izIk4sTQo9HXrMYVywKw' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:27.062781"], ["target_id", 173], ["target_type", "User"], ["token", "Gjd92HbEwlApV0mYzAEBZwI7izIk4sTQo9HXrMYVywKw"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.062781"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Gjd92HbEwlApV0mYzAEBZwI7izIk4sTQo9HXrMYVywKw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:33:27.068406"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.068406"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'pXhTncKtO-a85a9tZ_xvDQ7_vosgLTsGed0WeC0wVxzQ' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:33:27.070235"], ["target_id", 174], ["target_type", "User"], ["token", "pXhTncKtO-a85a9tZ_xvDQ7_vosgLTsGed0WeC0wVxzQ"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.070235"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 50[0m [["active", "f"], ["updated_at", "2014-11-02 23:33:27.073295"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'pXhTncKtO-a85a9tZ_xvDQ7_vosgLTsGed0WeC0wVxzQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.077019"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.077019"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '0Rj8jD0c7_jJC4ydyHol7w8811huC50syZMTske2lZBA' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.078771"], ["target_id", 175], ["target_type", "User"], ["token", "0Rj8jD0c7_jJC4ydyHol7w8811huC50syZMTske2lZBA"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.078771"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 51 [["active", "f"], ["updated_at", "2014-11-02 23:33:27.081997"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.084875"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:33:27.084875"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7M_fqKBUiL1CsfbksPLGGg-Lg-blsXkMriJmyz1_LhFg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:33:27.086962"], ["target_id", 176], ["target_type", "User"], ["token", "7M_fqKBUiL1CsfbksPLGGg-Lg-blsXkMriJmyz1_LhFg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:33:27.086962"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.125150"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.125150"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 16ms (Views: 10.5ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.153695"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.153695"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 266 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:44:22.178099"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 266], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.178099"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 266 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 266 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 500 Internal Server Error in 22ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.208107"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.208107"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 267 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.212054"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 267], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.212054"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 267 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.216414"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 267], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.216414"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 267 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.219895"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 267], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.219895"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 267 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 34ms (Views: 32.5ms | ActiveRecord: 0.4ms)
[1m[35m (2.5ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.283050"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.283050"]]
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.290010"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 268], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.290010"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.295965"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 268], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.295965"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.301122"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 268], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.301122"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"275"}
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 268 AND "notify_user_notifications"."target_type" = 'User' AND (id = '275') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 268]]
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 275[0m [["state", "read"], ["updated_at", "2014-11-02 23:44:22.315883"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 16ms (Views: 1.7ms | ActiveRecord: 2.1ms)
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 275 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.328172"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.328172"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.333280"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 269], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.333280"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.338842"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 269], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.338842"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (8.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.354047"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 269], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.354047"]]
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"278"}
[1m[36mNotifyUser::BaseNotification Load (1.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 269 AND "notify_user_notifications"."target_type" = 'User' AND (id = '278') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 269]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 278[0m [["state", "read"], ["updated_at", "2014-11-02 23:44:22.371294"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 2.7ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"278"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 269 AND "notify_user_notifications"."target_type" = 'User' AND (id = '278') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 3.1ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.382202"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.382202"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 270 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.387130"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 270], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.387130"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 270 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.392909"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 270], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.392909"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 270 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.400286"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 270], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.400286"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 270 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 270 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.413222"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.413222"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 271 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:44:22.418567"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 271], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.418567"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["284"]}
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 271 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('284'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 271 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('284'))[0m
Completed 500 Internal Server Error in 4ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.431967"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.431967"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 272 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.435251"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 272], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.435251"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["285"]}
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 272 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('285'))[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 272 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('285'))
Completed 500 Internal Server Error in 3ms
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.444902"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.444902"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 273 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:44:22.448880"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 273], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.448880"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 273 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 273 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 273) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:44:22.467544"], ["target_id", 273], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.467544"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 273 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 1.6ms)
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 273 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.474527"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.474527"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 274 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.478303"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 274], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.478303"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 274 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 274 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 274 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 274 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.490411"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.490411"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 275 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:44:22.497629"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 275], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.497629"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 275) LIMIT 1[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:44:22.505748"], ["target_id", 275], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.505748"]]
[1m[36m (2.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 275 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 302 Found in 12ms (ActiveRecord: 4.5ms)
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.520411"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.520411"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 276 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.524866"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 276], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.524866"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 276) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.529163"], ["target_id", 276], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.529163"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 276 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 63]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.540465"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.540465"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 277 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.544864"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 277], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.544864"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 277 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GJJuvlJDjeUj4KXPnxyXBAgCadEaadjw7qJuIVo05KOA' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.561597"], ["target_id", 277], ["target_type", "User"], ["token", "GJJuvlJDjeUj4KXPnxyXBAgCadEaadjw7qJuIVo05KOA"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.561597"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"GJJuvlJDjeUj4KXPnxyXBAgCadEaadjw7qJuIVo05KOA"}
[1m[35mNotifyUser::UserHash Exists (1.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GJJuvlJDjeUj4KXPnxyXBAgCadEaadjw7qJuIVo05KOA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36mNotifyUser::UserHash Load (1.9ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GJJuvlJDjeUj4KXPnxyXBAgCadEaadjw7qJuIVo05KOA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 277]]
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 277) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.585799"], ["target_id", 277], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.585799"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 79 [["active", "f"], ["updated_at", "2014-11-02 23:44:22.589188"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 20ms (Views: 0.3ms | ActiveRecord: 5.6ms)
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 22.6ms
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 11.2ms
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 11.4ms
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.698613"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.698613"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 278 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.703825"], ["state", "pending"], ["target_id", 278], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.703825"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 278 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.708954"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.708954"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 279 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.713651"], ["state", "pending"], ["target_id", 279], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.713651"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.716923"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.716923"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 280 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.720408"], ["state", "pending"], ["target_id", 280], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.720408"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.724699"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.724699"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 281 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.729359"], ["state", "pending"], ["target_id", 281], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.729359"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 281 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 294 [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:44:22.733161"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.738691"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.738691"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 282 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.743925"], ["state", "pending"], ["target_id", 282], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.743925"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 282 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 295 [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:44:22.749096"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.754281"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.754281"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 283 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.758784"], ["state", "pending"], ["target_id", 283], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.758784"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 283 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 296 [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:44:22.762772"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.767694"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.767694"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 284 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.772240"], ["state", "pending"], ["target_id", 284], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.772240"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 284 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 297 [["params", "{\"listing_id\":1}"], ["updated_at", "2014-11-02 23:44:22.776392"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.781420"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.781420"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 285 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.784853"], ["state", "pending"], ["target_id", 285], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.784853"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.792570"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.792570"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 286 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.796758"], ["state", "pending"], ["target_id", 286], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.796758"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 286 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 286 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 299)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 299]]
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 286]]
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 286 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 286]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 286 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 299[0m [["state", "sent"], ["updated_at", "2014-11-02 23:44:22.813124"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 299 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 286]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 286 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 299 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 286]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 286 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:22.825427"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.825427"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 287 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.829655"], ["state", "pending"], ["target_id", 287], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.829655"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 287 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 287 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 300)[0m
[1m[35mNotifyUser::BaseNotification Load (7.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 300]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 287]]
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 287 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 287]]
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 287 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 300 [["state", "sent"], ["updated_at", "2014-11-02 23:44:22.851519"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 300 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 287]]
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 287 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 300 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 287]]
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 287 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.864473"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.864473"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 288 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.868516"], ["state", "pending"], ["target_id", 288], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.868516"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 288 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 288 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 301)
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 288 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.877474"], ["state", "pending"], ["target_id", 288], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.877474"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 288 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 302)[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.884129"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.884129"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 289 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.888597"], ["state", "pending"], ["target_id", 289], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.888597"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 289 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.893581"], ["state", "pending"], ["target_id", 289], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.893581"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 304]]
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 289]]
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 289 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 289]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 289 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 303[0m [["state", "sent"], ["updated_at", "2014-11-02 23:44:22.904774"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 289]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 289 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 304 [["state", "sent"], ["updated_at", "2014-11-02 23:44:22.908979"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 289 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 289 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '4-4mKNZIujlbVXHlE7B2UA_6r8Y7wc6QkE5HghT0QN2w' LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:22.936607"], ["target_id", 289], ["target_type", "User"], ["token", "4-4mKNZIujlbVXHlE7B2UA_6r8Y7wc6QkE5HghT0QN2w"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.936607"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#aggregate_notifications_email: processed outbound mail in 29.0ms
Sent mail to user@example.com (10.0ms)
Date: Mon, 03 Nov 2014 10:44:22 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456c1d6e693d_8d943fed4902dbec333ce@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
=
New Post Notification happened. =
New Post Notification happened. =
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.955855"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:22.955855"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 290 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.960641"], ["state", "pending"], ["target_id", 290], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.960641"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 305]]
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 290]]
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 290 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 290]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 290 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 305[0m [["state", "sent"], ["updated_at", "2014-11-02 23:44:22.971353"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 305 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 290]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 290 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (1.0ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 290 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'y_Mj9_byAsSeOgxmz0MWgA1aS6tcPpFvyJHQ_8ihGdKg' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:22.989269"], ["target_id", 290], ["target_type", "User"], ["token", "y_Mj9_byAsSeOgxmz0MWgA1aS6tcPpFvyJHQ_8ihGdKg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:22.989269"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 16.2ms
Sent mail to user@example.com (6.9ms)
Date: Mon, 03 Nov 2014 10:44:22 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456c1d6f2b76_8d943fed4902dbec3341d@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 290 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.004083"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.004083"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 291) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.006804"], ["target_id", 291], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.006804"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 291 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.014269"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.014269"]]
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 292 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.020957"], ["state", "pending"], ["target_id", 292], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.020957"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 306 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 292]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 292 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.030081"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.030081"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.034885"], ["state", "pending"], ["target_id", 293], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.034885"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.039384"], ["state", "pending"], ["target_id", 293], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.039384"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 308]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 293]]
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 293 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 293]]
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 307 [["state", "sent"], ["updated_at", "2014-11-02 23:44:23.047833"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 293]]
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 308[0m [["state", "sent"], ["updated_at", "2014-11-02 23:44:23.054981"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 293 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'AuH9KT96DS8oowrwgYnKuwdfGTG-rfYW9Po-tLIFSriA' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.067606"], ["target_id", 293], ["target_type", "User"], ["token", "AuH9KT96DS8oowrwgYnKuwdfGTG-rfYW9Po-tLIFSriA"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.067606"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#aggregate_notifications_email: processed outbound mail in 12.1ms
Sent mail to user@example.com (6.5ms)
Date: Mon, 03 Nov 2014 10:44:23 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456c1d711d29_8d943fed4902dbec3356@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
=
New Post Notification happened. =
New Post Notification happened. =
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.082766"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.082766"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 294 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.086747"], ["state", "pending"], ["target_id", 294], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.086747"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 309]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 294]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 294 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 294]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 294 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 309 [["state", "sent"], ["updated_at", "2014-11-02 23:44:23.094141"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 309 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 294]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 294 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 294 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '9OYj5HdmdUv2_f-mmD6yqArYveeezZrnDvlIoTn0gr_w' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.107613"], ["target_id", 294], ["target_type", "User"], ["token", "9OYj5HdmdUv2_f-mmD6yqArYveeezZrnDvlIoTn0gr_w"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.107613"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 10.4ms
Sent mail to user@example.com (13.2ms)
Date: Mon, 03 Nov 2014 10:44:23 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5456c1d71b676_8d943fed4902dbec336c4@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.127279"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.127279"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.131265"], ["state", "pending"], ["target_id", 295], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.131265"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 310[0m [["state", "sent"], ["updated_at", "2014-11-02 23:44:23.137559"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 310 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 295]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.145192"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.145192"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 296) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:44:23.149175"], ["target_id", 296], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.149175"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 296 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 296 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 296 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.158065"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.158065"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 297) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:44:23.161139"], ["target_id", 297], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2014-11-02 23:44:23.161139"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 297) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 297 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.168022"], ["state", "pending"], ["target_id", 297], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.168022"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 297 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 297 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 297 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 311[0m [["state", "sent"], ["updated_at", "2014-11-02 23:44:23.174063"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 311 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 297]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 297 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 297 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.181909"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.181909"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 298 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.185251"], ["state", "pending"], ["target_id", 298], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.185251"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 298 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'g2mkbXJLOvrVIqHPpINtMA17BovnPZiv93Abq3MQxvgg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.188928"], ["target_id", 298], ["target_type", "User"], ["token", "g2mkbXJLOvrVIqHPpINtMA17BovnPZiv93Abq3MQxvgg"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.188928"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.192872"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.192872"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 299 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.196829"], ["state", "pending"], ["target_id", 299], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.196829"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 299 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'LgayrOK_9JQ_OqS4jUtWdwmdA6olNI_EZ9igru6yQXcA' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.200161"], ["target_id", 299], ["target_type", "User"], ["token", "LgayrOK_9JQ_OqS4jUtWdwmdA6olNI_EZ9igru6yQXcA"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.200161"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 299 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.205901"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.205901"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 300 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.209308"], ["state", "pending"], ["target_id", 300], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.209308"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 300 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'IVPcy0IPsZiP0q0lXN52fwUt6dJN-S3T6Ood7hWDzZ5Q' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.212843"], ["target_id", 300], ["target_type", "User"], ["token", "IVPcy0IPsZiP0q0lXN52fwUt6dJN-S3T6Ood7hWDzZ5Q"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.212843"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 86[0m [["active", "f"], ["updated_at", "2014-11-02 23:44:23.215531"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 300 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'RlRYq2oNQmgGviWH9agYtg-WUDJmQ2V0qXTmug56JYmA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.218574"], ["target_id", 300], ["target_type", "User"], ["token", "RlRYq2oNQmgGviWH9agYtg-WUDJmQ2V0qXTmug56JYmA"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.218574"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.222569"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.222569"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 301) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.225198"], ["target_id", 301], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.225198"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 301) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 301 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.232726"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.232726"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 302) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-02 23:44:23.235827"], ["target_id", 302], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.235827"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 302) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 302 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.243402"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.243402"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 303) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.246577"], ["target_id", 303], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.246577"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 303) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 303) LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 303 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 303 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 70]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 303 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.258639"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.258639"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 304 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-11-02 23:44:23.262375"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 304], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.262375"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.266281"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.266281"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8pAaEH5oeCfghlKMkFhrwAcqpWPE1s3Q-sLRHhF9Rn_w' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.268355"], ["target_id", 305], ["target_type", "User"], ["token", "8pAaEH5oeCfghlKMkFhrwAcqpWPE1s3Q-sLRHhF9Rn_w"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.268355"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8pAaEH5oeCfghlKMkFhrwAcqpWPE1s3Q-sLRHhF9Rn_w' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.274218"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.274218"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'OypvaLWUAdqsZWEdVk1VqwcDXfRN8gcR-eT4gFn0qMvw' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-11-02 23:44:23.276262"], ["target_id", 306], ["target_type", "User"], ["token", "OypvaLWUAdqsZWEdVk1VqwcDXfRN8gcR-eT4gFn0qMvw"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.276262"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 89 [["active", "f"], ["updated_at", "2014-11-02 23:44:23.279871"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'OypvaLWUAdqsZWEdVk1VqwcDXfRN8gcR-eT4gFn0qMvw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.284195"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.284195"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'yb8ClH7_tYIP4Pycx62Slg1kxyo6SVk3XXQiGzUk03PQ' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.286257"], ["target_id", 307], ["target_type", "User"], ["token", "yb8ClH7_tYIP4Pycx62Slg1kxyo6SVk3XXQiGzUk03PQ"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.286257"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 90[0m [["active", "f"], ["updated_at", "2014-11-02 23:44:23.290048"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-02 23:44:23.293259"], ["email", "user@example.com"], ["updated_at", "2014-11-02 23:44:23.293259"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'v2lFzeyoteW1Rt3PcQo7uAv7xUOkS4RG_ktVSVZCPE3A' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-11-02 23:44:23.295107"], ["target_id", 308], ["target_type", "User"], ["token", "v2lFzeyoteW1Rt3PcQo7uAv7xUOkS4RG_ktVSVZCPE3A"], ["type", "NewPostNotification"], ["updated_at", "2014-11-02 23:44:23.295107"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.239250"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.239250"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 17ms (Views: 12.3ms | ActiveRecord: 0.0ms)
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.269996"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.269996"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 442 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-19 00:10:27.297009"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 442], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.297009"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (1.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 442 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 442 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 500 Internal Server Error in 24ms
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.328838"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.328838"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 443 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.332727"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 443], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.332727"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 443 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.335920"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 443], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.335920"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 443 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.341407"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 443], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.341407"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 443 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 32ms (Views: 30.6ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.386630"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.386630"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 444 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.389978"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 444], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.389978"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 444 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.393017"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 444], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.393017"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 444 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.396587"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 444], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.396587"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"455"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 444 AND "notify_user_notifications"."target_type" = 'User' AND (id = '455') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 444]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 444 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 455[0m [["state", "read"], ["updated_at", "2014-12-19 00:10:27.408363"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 13ms (Views: 2.1ms | ActiveRecord: 1.7ms)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 455 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.418345"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.418345"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 445 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.422179"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 445], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.422179"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 445 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.425287"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 445], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.425287"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 445 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.428677"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 445], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.428677"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"458"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 445 AND "notify_user_notifications"."target_type" = 'User' AND (id = '458') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 445]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 445 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 458[0m [["state", "read"], ["updated_at", "2014-12-19 00:10:27.437007"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.5ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"458"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 445 AND "notify_user_notifications"."target_type" = 'User' AND (id = '458') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 1.9ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.443772"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.443772"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 446 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.447087"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 446], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.447087"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 446 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.450482"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 446], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.450482"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 446 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.453645"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 446], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.453645"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 446 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 446 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.462334"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.462334"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 447 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-19 00:10:27.465881"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 447], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.465881"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["464"]}
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 447 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('464'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 447 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('464'))[0m
Completed 500 Internal Server Error in 3ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.474934"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.474934"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 448 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.478805"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 448], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.478805"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["465"]}
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 448 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('465'))[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 448 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('465'))
Completed 500 Internal Server Error in 3ms
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.488066"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.488066"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 449 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-19 00:10:27.491517"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 449], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.491517"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 449 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 449 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 449) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-19 00:10:27.508812"], ["target_id", 449], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.508812"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 449 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 16ms (Views: 0.2ms | ActiveRecord: 1.4ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 449 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.515341"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.515341"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 450 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.518590"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 450], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.518590"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 450 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 450 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 450 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 450 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.529769"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.529769"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 451 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-19 00:10:27.534670"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 451], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.534670"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 451) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-19 00:10:27.540679"], ["target_id", 451], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.540679"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 451 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.546596"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.546596"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 452 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.550627"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 452], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.550627"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 452) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.553753"], ["target_id", 452], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.553753"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 452 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 103]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.564035"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.564035"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 453 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.567500"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 453], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.567500"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 453 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'erQcIJSSy00vK7hTEpOKhwA6D7zGboOUKdeuszA4EDmQ' LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.585242"], ["target_id", 453], ["target_type", "User"], ["token", "erQcIJSSy00vK7hTEpOKhwA6D7zGboOUKdeuszA4EDmQ"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.585242"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"erQcIJSSy00vK7hTEpOKhwA6D7zGboOUKdeuszA4EDmQ"}
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'erQcIJSSy00vK7hTEpOKhwA6D7zGboOUKdeuszA4EDmQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'erQcIJSSy00vK7hTEpOKhwA6D7zGboOUKdeuszA4EDmQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 453]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 453) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.595138"], ["target_id", 453], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.595138"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 131 [["active", "f"], ["updated_at", "2014-12-19 00:10:27.596714"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 2.3ms)
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 16.9ms
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.3ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.9ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.681008"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.681008"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 454 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.684305"], ["state", "pending"], ["target_id", 454], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.684305"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 454 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.688880"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.688880"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 455 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.692167"], ["state", "pending"], ["target_id", 455], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.692167"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.695380"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.695380"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 456 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.698648"], ["state", "pending"], ["target_id", 456], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.698648"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.702034"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.702034"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 457 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.705200"], ["state", "pending"], ["target_id", 457], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.705200"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 457 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 474 [["params", "{\"listing_id\":1}"], ["updated_at", "2014-12-19 00:10:27.707934"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.712394"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.712394"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 458 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.715903"], ["state", "pending"], ["target_id", 458], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.715903"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 458 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 475 [["params", "{\"listing_id\":1}"], ["updated_at", "2014-12-19 00:10:27.719133"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.724548"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.724548"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 459 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.727638"], ["state", "pending"], ["target_id", 459], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.727638"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 459 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 476 [["params", "{\"listing_id\":1}"], ["updated_at", "2014-12-19 00:10:27.730461"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.735293"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.735293"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 460 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.738569"], ["state", "pending"], ["target_id", 460], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.738569"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 460 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 477 [["params", "{\"listing_id\":1}"], ["updated_at", "2014-12-19 00:10:27.741330"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.745877"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.745877"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 461 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.749397"], ["state", "pending"], ["target_id", 461], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.749397"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.756373"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.756373"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 462 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.761057"], ["state", "pending"], ["target_id", 462], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.761057"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 462 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 462 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 479)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 479]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 462]]
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 462 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 462]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 462 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 479[0m [["state", "sent"], ["updated_at", "2014-12-19 00:10:27.774971"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 479 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 462]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 462 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 479 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 462]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 462 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.787130"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.787130"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 463 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.796714"], ["state", "pending"], ["target_id", 463], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.796714"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 463 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 463 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 480)[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 480]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 463]]
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 463 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 463]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 463 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 480 [["state", "sent"], ["updated_at", "2014-12-19 00:10:27.808153"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 480 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 463]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 463 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 480 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 463]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 463 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.817850"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.817850"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 464 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.821196"], ["state", "pending"], ["target_id", 464], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.821196"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 464 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 464 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 481)
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 464 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.830082"], ["state", "pending"], ["target_id", 464], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.830082"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 464 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 482)[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.835946"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.835946"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 465 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.839833"], ["state", "pending"], ["target_id", 465], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.839833"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 465 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.843757"], ["state", "pending"], ["target_id", 465], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.843757"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 484]]
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 465]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 465 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 465]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 465 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 483[0m [["state", "sent"], ["updated_at", "2014-12-19 00:10:27.855608"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 465]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 465 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 484 [["state", "sent"], ["updated_at", "2014-12-19 00:10:27.859436"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 465 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 465 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'RHhb7YvyEebQJWqZuEZtqgVfJrv_DELC6AFPTBTNzn5g' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.882062"], ["target_id", 465], ["target_type", "User"], ["token", "RHhb7YvyEebQJWqZuEZtqgVfJrv_DELC6AFPTBTNzn5g"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.882062"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#aggregate_notifications_email: processed outbound mail in 23.1ms
Sent mail to user@example.com (9.8ms)
Date: Fri, 19 Dec 2014 11:10:27 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <54936cf3d8fd0_1bad3fc9c942dbdc36264@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
=
New Post Notification happened. =
New Post Notification happened. =
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.898379"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.898379"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 466 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.901629"], ["state", "pending"], ["target_id", 466], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.901629"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 485]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 466]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 466 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 466]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 466 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 485[0m [["state", "sent"], ["updated_at", "2014-12-19 00:10:27.910162"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 485 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 466]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 466 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 466 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'lVtz86ftvRJygUNFdiyAww-LEjV7pJIK4Bw1YVrLubEg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.920727"], ["target_id", 466], ["target_type", "User"], ["token", "lVtz86ftvRJygUNFdiyAww-LEjV7pJIK4Bw1YVrLubEg"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.920727"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.3ms
Sent mail to user@example.com (5.0ms)
Date: Fri, 19 Dec 2014 11:10:27 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <54936cf3e1c3a_1bad3fc9c942dbdc363dc@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 466 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.933097"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.933097"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 467) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.936093"], ["target_id", 467], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.936093"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 467 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.943818"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.943818"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 468 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.947060"], ["state", "pending"], ["target_id", 468], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.947060"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 486 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 468]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 468 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.953249"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.953249"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 469 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.956628"], ["state", "pending"], ["target_id", 469], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.956628"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 469 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.959771"], ["state", "pending"], ["target_id", 469], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.959771"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 488]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 469]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 469 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 469]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 469 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 487 [["state", "sent"], ["updated_at", "2014-12-19 00:10:27.966958"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 469]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 469 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 488[0m [["state", "sent"], ["updated_at", "2014-12-19 00:10:27.970600"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 469 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 469 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8wDaZgzhUULddJIpXTKfJALYDZfdhlApzO2GgMIM4XWg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:27.980734"], ["target_id", 469], ["target_type", "User"], ["token", "8wDaZgzhUULddJIpXTKfJALYDZfdhlApzO2GgMIM4XWg"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.980734"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#aggregate_notifications_email: processed outbound mail in 10.8ms
Sent mail to user@example.com (6.7ms)
Date: Fri, 19 Dec 2014 11:10:27 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <54936cf3f0815_1bad3fc9c942dbdc36480@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have new Newpostnotification notifications.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
=
New Post Notification happened. =
New Post Notification happened. =
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:27.993823"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:27.993823"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 470 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:27.997303"], ["state", "pending"], ["target_id", 470], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:27.997303"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 489]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 470]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 470 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 470]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 470 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 489 [["state", "sent"], ["updated_at", "2014-12-19 00:10:28.004047"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 489 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 470]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 470 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 470 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'f65IzI97887YLA6A6fur6Q5eUGyoQBBF-jisraooKQlw' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:28.023246"], ["target_id", 470], ["target_type", "User"], ["token", "f65IzI97887YLA6A6fur6Q5eUGyoQBBF-jisraooKQlw"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.023246"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 16.3ms
Sent mail to user@example.com (6.0ms)
Date: Fri, 19 Dec 2014 11:10:28 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <54936cf46b45_1bad3fc9c942dbdc36596@Antons-MacBook-Pro.local.mail>
Subject: Rails410: You have a new Newpostnotification notification.
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.036221"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.036221"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 471 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.040134"], ["state", "pending"], ["target_id", 471], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.040134"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 471 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 471 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 471 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 490[0m [["state", "sent"], ["updated_at", "2014-12-19 00:10:28.047161"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 490 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 471]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 471 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 471 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:28.056434"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.056434"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 472) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-19 00:10:28.059612"], ["target_id", 472], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.059612"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 472 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 472 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 472 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:28.070065"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.070065"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 473) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-19 00:10:28.073161"], ["target_id", 473], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2014-12-19 00:10:28.073161"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 473) LIMIT 1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 473 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.078690"], ["state", "pending"], ["target_id", 473], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.078690"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 473 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 473 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 473 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 491[0m [["state", "sent"], ["updated_at", "2014-12-19 00:10:28.085180"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 491 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 473]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 473 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 473 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:28.093344"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.093344"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 474 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:28.096508"], ["state", "pending"], ["target_id", 474], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.096508"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 474 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'sfus8AhffZ_zw6wmUhM6yQZQByXklF_gAHsGr45eYGFA' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.099559"], ["target_id", 474], ["target_type", "User"], ["token", "sfus8AhffZ_zw6wmUhM6yQZQByXklF_gAHsGr45eYGFA"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.099559"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:28.103417"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.103417"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 475 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:28.106836"], ["state", "pending"], ["target_id", 475], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.106836"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 475 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'NbZpdIwf6zN_4OqdtHvBTQUX3qexS6tqO0yruu8V3_dQ' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.109813"], ["target_id", 475], ["target_type", "User"], ["token", "NbZpdIwf6zN_4OqdtHvBTQUX3qexS6tqO0yruu8V3_dQ"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.109813"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 475 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.115135"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.115135"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 476 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.118509"], ["state", "pending"], ["target_id", 476], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.118509"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 476 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'DSNPaS-xRgEQJ-3viw2P-Qwns_eL7_5tmqSeAi1_aghA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:28.122166"], ["target_id", 476], ["target_type", "User"], ["token", "DSNPaS-xRgEQJ-3viw2P-Qwns_eL7_5tmqSeAi1_aghA"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.122166"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 138[0m [["active", "f"], ["updated_at", "2014-12-19 00:10:28.124537"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 476 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'HnIh1gKWX4Kj8QRA9BMNHgOSOXojQuw_CRuRzrvZX9Mw' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:28.127839"], ["target_id", 476], ["target_type", "User"], ["token", "HnIh1gKWX4Kj8QRA9BMNHgOSOXojQuw_CRuRzrvZX9Mw"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.127839"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.132517"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.132517"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 477) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.135350"], ["target_id", 477], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.135350"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 477) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 477 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:28.142557"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.142557"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 478) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-19 00:10:28.145202"], ["target_id", 478], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.145202"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 478) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 478 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.152202"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.152202"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 479) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.154746"], ["target_id", 479], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.154746"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 479) LIMIT 1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 479) LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 479 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 479 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 110]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 479 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:28.165543"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.165543"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 480 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2014-12-19 00:10:28.168967"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 480], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.168967"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.172466"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.172466"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'CsUMFpV8Dm-43Mb1UaUuTwITAt_Q47VXuJWBbFhYdJ_w' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.174737"], ["target_id", 481], ["target_type", "User"], ["token", "CsUMFpV8Dm-43Mb1UaUuTwITAt_Q47VXuJWBbFhYdJ_w"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.174737"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'CsUMFpV8Dm-43Mb1UaUuTwITAt_Q47VXuJWBbFhYdJ_w' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.179993"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.179993"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5-ki8satr6nY-UJpzPZbyAkjTlH61-zCukoogoKmAuXw' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2014-12-19 00:10:28.181745"], ["target_id", 482], ["target_type", "User"], ["token", "5-ki8satr6nY-UJpzPZbyAkjTlH61-zCukoogoKmAuXw"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.181745"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 141 [["active", "f"], ["updated_at", "2014-12-19 00:10:28.185290"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5-ki8satr6nY-UJpzPZbyAkjTlH61-zCukoogoKmAuXw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:28.189113"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.189113"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ra1wlo63Qm6ILOqgA6puPQn5hkPHKwH2q34Fpu9Ph75w' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:28.191018"], ["target_id", 483], ["target_type", "User"], ["token", "ra1wlo63Qm6ILOqgA6puPQn5hkPHKwH2q34Fpu9Ph75w"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.191018"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 142[0m [["active", "f"], ["updated_at", "2014-12-19 00:10:28.194024"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-19 00:10:28.196738"], ["email", "user@example.com"], ["updated_at", "2014-12-19 00:10:28.196738"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'pf-Y2VT8Nksz5pwstcTNJQYCdVeFlwN6ceAbcT2Nfe2g' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2014-12-19 00:10:28.198754"], ["target_id", 484], ["target_type", "User"], ["token", "pf-Y2VT8Nksz5pwstcTNJQYCdVeFlwN6ceAbcT2Nfe2g"], ["type", "NewPostNotification"], ["updated_at", "2014-12-19 00:10:28.198754"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.5ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.4ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.3ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.5ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (1.5ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.5ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.5ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "notify_user_notifications" does not exist
LINE 5: WHERE a.attrelid = '"notify_user_notification...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"notify_user_notifications"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.4ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.4ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.3ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "notify_user_notifications" does not exist
LINE 5: WHERE a.attrelid = '"notify_user_notification...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"notify_user_notifications"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.3ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.4ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.5ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.4ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.3ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.4ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT COUNT(*)
FROM pg_class c
LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind in ('v','r')
AND c.relname = 'notify_user_notifications'
AND n.nspname = ANY (current_schemas(false))
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "notify_user_notifications" does not exist
LINE 5: WHERE a.attrelid = '"notify_user_notification...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"notify_user_notifications"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.3ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
PG::UndefinedTable: ERROR: relation "users" does not exist
LINE 5: WHERE a.attrelid = '"users"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"users"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.5ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.125463"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.125463"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:28.151897"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.151897"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-02-09 04:06:28.178563"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.178563"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 86 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 86 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 500 Internal Server Error in 12ms
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.197473"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.197473"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.200957"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.200957"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.204201"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.204201"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.210535"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.210535"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 87 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 525ms (Views: 523.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.744605"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.744605"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 88 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.749625"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 88], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.749625"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 88 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.753194"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 88], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.753194"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 88 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.756618"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 88], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.756618"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"93"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 88 AND "notify_user_notifications"."target_type" = 'User' AND (id = '93') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 88]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 88 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 93[0m [["state", "read"], ["updated_at", "2015-02-09 04:06:28.769520"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 14ms (Views: 1.9ms | ActiveRecord: 1.8ms)
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 93 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.779946"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.779946"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 89 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.783509"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 89], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.783509"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 89 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.786813"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 89], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.786813"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 89 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.791669"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 89], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.791669"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"96"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 89 AND "notify_user_notifications"."target_type" = 'User' AND (id = '96') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 89]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 89 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 96[0m [["state", "read"], ["updated_at", "2015-02-09 04:06:28.801468"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.5ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"96"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 89 AND "notify_user_notifications"."target_type" = 'User' AND (id = '96') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 1.9ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.808873"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.808873"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.812535"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.812535"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.815618"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.815618"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.818900"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.818900"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 90 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 90 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:28.828729"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.828729"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-02-09 04:06:28.834085"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 91], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.834085"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["102"]}
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 91 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('102'))
[1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 91 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('102'))[0m
Completed 500 Internal Server Error in 3ms
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.848690"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.848690"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 92 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.854792"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 92], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.854792"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["103"]}
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 92 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('103'))[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 92 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('103'))
Completed 500 Internal Server Error in 3ms
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:28.864271"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.864271"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-02-09 04:06:28.867531"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 93], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.867531"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 93) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:06:28.883927"], ["target_id", 93], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.883927"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 15ms (Views: 0.2ms | ActiveRecord: 1.4ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.890882"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.890882"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 94 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.894891"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 94], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.894891"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 94 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 94 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 94 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 94 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:28.906090"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.906090"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 95 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-02-09 04:06:28.911179"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 95], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.911179"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 95) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:06:28.919732"], ["target_id", 95], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.919732"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 95 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 302 Found in 8ms (ActiveRecord: 1.6ms)
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.928995"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.928995"]]
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 96 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.936027"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 96], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.936027"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 96) LIMIT 1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.940068"], ["target_id", 96], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.940068"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 96 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 19]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.950886"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:28.950886"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 97 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.954216"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 97], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.954216"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 97 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'frVF-h1jEJ0tMM7Kli1n1gRup5G30N_pDCP3NzqPvxPg' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:28.964585"], ["target_id", 97], ["target_type", "User"], ["token", "frVF-h1jEJ0tMM7Kli1n1gRup5G30N_pDCP3NzqPvxPg"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.964585"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"frVF-h1jEJ0tMM7Kli1n1gRup5G30N_pDCP3NzqPvxPg"}
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'frVF-h1jEJ0tMM7Kli1n1gRup5G30N_pDCP3NzqPvxPg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'frVF-h1jEJ0tMM7Kli1n1gRup5G30N_pDCP3NzqPvxPg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 97]]
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 97) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:28.975870"], ["target_id", 97], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:28.975870"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 23 [["active", "f"], ["updated_at", "2015-02-09 04:06:28.977524"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 2.3ms)
[1m[35mNotifyUser::UserHash Load (0.2ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 30.4ms
[1m[35mNotifyUser::UserHash Load (0.9ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.5ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 19.4ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.087101"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.087101"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 98 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.090397"], ["state", "pending"], ["target_id", 98], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.090397"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 98 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.095129"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.095129"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 99 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.098955"], ["state", "pending"], ["target_id", 99], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.098955"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.102309"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.102309"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.106823"], ["state", "pending"], ["target_id", 100], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.106823"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.111668"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.111668"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.116511"], ["state", "pending"], ["target_id", 101], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.116511"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 112 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-02-09 04:06:29.121485"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.127775"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.127775"]]
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.134423"], ["state", "pending"], ["target_id", 102], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.134423"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 113 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-02-09 04:06:29.137920"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.143692"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.143692"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.147389"], ["state", "pending"], ["target_id", 103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.147389"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 114 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-02-09 04:06:29.150020"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.153919"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.153919"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.157604"], ["state", "pending"], ["target_id", 104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.157604"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 115 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-02-09 04:06:29.160763"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.165151"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.165151"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.167973"], ["state", "pending"], ["target_id", 105], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.167973"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.172819"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.172819"]]
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.177873"], ["state", "pending"], ["target_id", 106], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.177873"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 117[0m [["state", "sent"], ["updated_at", "2015-02-09 04:06:29.181542"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 106 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 117)[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 117]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 106]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 106 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.190769"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.190769"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.193811"], ["state", "pending"], ["target_id", 107], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.193811"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.196988"], ["state", "pending"], ["target_id", 107], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.196988"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 119[0m [["state", "sent"], ["updated_at", "2015-02-09 04:06:29.200648"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 107 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 119)[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.205701"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.205701"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.208742"], ["state", "pending"], ["target_id", 108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.208742"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 120 [["state", "sent"], ["updated_at", "2015-02-09 04:06:29.212975"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 120]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 108]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.8ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 108 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Mz4jKnJ4Y4jOOqAPEvVVBgUERCKU7HgaeKwTIJfKfRXQ' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.225508"], ["target_id", 108], ["target_type", "User"], ["token", "Mz4jKnJ4Y4jOOqAPEvVVBgUERCKU7HgaeKwTIJfKfRXQ"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.225508"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 10.6ms
Sent mail to user@example.com (9.6ms)
Date: Mon, 09 Feb 2015 15:06:29 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <54d83245387bb_335f3fe834865be42643d@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.240986"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.240986"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.244566"], ["state", "pending"], ["target_id", 109], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.244566"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 121[0m [["state", "pending_no_aggregation"], ["updated_at", "2015-02-09 04:06:29.247328"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.250979"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.250979"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.254279"], ["state", "pending"], ["target_id", 110], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.254279"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 110) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:06:29.257292"], ["target_id", 110], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2015-02-09 04:06:29.257292"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 122]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 110]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.263649"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.263649"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.266602"], ["state", "pending"], ["target_id", 111], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.266602"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 123]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 111]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.272745"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.272745"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.276498"], ["state", "pending"], ["target_id", 112], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.276498"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 124[0m [["state", "sent"], ["updated_at", "2015-02-09 04:06:29.282590"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 124]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 112]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 112 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'cs8uAWJVy6DaEt9R4jnfMQHEdkoN6PM9YyTfRzGKjHmg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.292508"], ["target_id", 112], ["target_type", "User"], ["token", "cs8uAWJVy6DaEt9R4jnfMQHEdkoN6PM9YyTfRzGKjHmg"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.292508"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.8ms
Sent mail to user@example.com (4.8ms)
Date: Mon, 09 Feb 2015 15:06:29 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <54d83245486bc_335f3fe834865be426527@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.302987"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.302987"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 113 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.306341"], ["state", "pending"], ["target_id", 113], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.306341"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 125]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 113]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 113 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.312516"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.312516"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 114 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.315560"], ["state", "pending"], ["target_id", 114], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.315560"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 126]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 114]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 114 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 114]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 114 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 126 [["state", "sent"], ["updated_at", "2015-02-09 04:06:29.321874"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.325026"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.325026"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.328304"], ["state", "pending"], ["target_id", 115], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.328304"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.331560"], ["state", "pending"], ["target_id", 115], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.331560"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 128]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 115]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 115 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 115]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (1.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 127[0m [["state", "sent"], ["updated_at", "2015-02-09 04:06:29.339111"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 115]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 128 [["state", "sent"], ["updated_at", "2015-02-09 04:06:29.344593"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.348188"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.348188"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 116 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.351643"], ["state", "pending"], ["target_id", 116], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.351643"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 116 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '79WUIZ-8shbAOqj2mCnrfAHiXiHuabGtvrkSNCVgU9tQ' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.354684"], ["target_id", 116], ["target_type", "User"], ["token", "79WUIZ-8shbAOqj2mCnrfAHiXiHuabGtvrkSNCVgU9tQ"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.354684"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.358723"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.358723"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 117 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.362271"], ["state", "pending"], ["target_id", 117], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.362271"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 117 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'IiQ7ZU_sylXPIKi9wn0pTwcrg5nsbVztIW9FZqn5-Ccw' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.365453"], ["target_id", 117], ["target_type", "User"], ["token", "IiQ7ZU_sylXPIKi9wn0pTwcrg5nsbVztIW9FZqn5-Ccw"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.365453"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 117 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.370335"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.370335"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.373745"], ["state", "pending"], ["target_id", 118], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.373745"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 118 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '-jrziuu7D2gDRDRjCDGMrwokm3LCv8ptjMH6UDQp1M1Q' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.376900"], ["target_id", 118], ["target_type", "User"], ["token", "-jrziuu7D2gDRDRjCDGMrwokm3LCv8ptjMH6UDQp1M1Q"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.376900"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 28 [["active", "f"], ["updated_at", "2015-02-09 04:06:29.379427"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 118 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '1fXhXpZNW85S6TAQi0q9iAz-iHkzxuRaTsH60lskTkNg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.382792"], ["target_id", 118], ["target_type", "User"], ["token", "1fXhXpZNW85S6TAQi0q9iAz-iHkzxuRaTsH60lskTkNg"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.382792"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.386533"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.386533"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 119) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:06:29.390820"], ["target_id", 119], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.390820"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 119) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 119 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.398679"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.398679"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 120) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.401493"], ["target_id", 120], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.401493"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 120) LIMIT 1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 120 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.408554"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.408554"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 121) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:06:29.411460"], ["target_id", 121], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.411460"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 24 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 121) LIMIT 1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 121) LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 121 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 121 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 24]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 121 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.422506"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.422506"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 122 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.425867"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 122], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.425867"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.429984"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.429984"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'cy_dpHyG0O0uJUDvl0oUVwmKhXA4WzmTnm07c6KTcxcA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.433128"], ["target_id", 123], ["target_type", "User"], ["token", "cy_dpHyG0O0uJUDvl0oUVwmKhXA4WzmTnm07c6KTcxcA"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.433128"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'cy_dpHyG0O0uJUDvl0oUVwmKhXA4WzmTnm07c6KTcxcA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:06:29.438513"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.438513"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '4NovepSUai8pC6YfDrfEUwmIiFrRiY73KAM5T_1WAvEQ' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:06:29.440255"], ["target_id", 124], ["target_type", "User"], ["token", "4NovepSUai8pC6YfDrfEUwmIiFrRiY73KAM5T_1WAvEQ"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.440255"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 31[0m [["active", "f"], ["updated_at", "2015-02-09 04:06:29.443470"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '4NovepSUai8pC6YfDrfEUwmIiFrRiY73KAM5T_1WAvEQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.447134"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.447134"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '9635uIA4-ZbdrlqObWaWgAUzk-Ct59dn_JsTt03nzF-A' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.448990"], ["target_id", 125], ["target_type", "User"], ["token", "9635uIA4-ZbdrlqObWaWgAUzk-Ct59dn_JsTt03nzF-A"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.448990"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 32 [["active", "f"], ["updated_at", "2015-02-09 04:06:29.458421"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.461523"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:06:29.461523"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'f0zBl6ChGzQ2EeovAu5B5wNymF72e5Z8wNywfc7kLexA' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:06:29.463340"], ["target_id", 126], ["target_type", "User"], ["token", "f0zBl6ChGzQ2EeovAu5B5wNymF72e5Z8wNywfc7kLexA"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:06:29.463340"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.4ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.251667"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.251667"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 0.0ms)
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.275972"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.275972"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 170 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-02-09 04:31:27.302216"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 170], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.302216"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 170 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (1.0ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 170 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 500 Internal Server Error in 14ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.323838"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.323838"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 171 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.327227"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 171], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.327227"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 171 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.330392"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 171], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.330392"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 171 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.334836"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 171], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.334836"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 171 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 47ms (Views: 45.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.397327"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.397327"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 172 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.401171"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 172], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.401171"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 172 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.404383"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 172], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.404383"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 172 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.407584"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 172], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.407584"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"181"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 172 AND "notify_user_notifications"."target_type" = 'User' AND (id = '181') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 172]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 172 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 181[0m [["state", "read"], ["updated_at", "2015-02-09 04:31:27.421541"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 14ms (Views: 1.8ms | ActiveRecord: 1.6ms)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 181 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.431055"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.431055"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 173 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.434683"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 173], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.434683"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 173 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.439522"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 173], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.439522"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 173 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.442668"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 173], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.442668"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"184"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 173 AND "notify_user_notifications"."target_type" = 'User' AND (id = '184') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 173]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 173 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 184[0m [["state", "read"], ["updated_at", "2015-02-09 04:31:27.449977"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.4ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"184"}
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 173 AND "notify_user_notifications"."target_type" = 'User' AND (id = '184') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 1.8ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.456962"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.456962"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 174 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.461016"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 174], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.461016"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 174 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.464212"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 174], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.464212"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 174 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.467586"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 174], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.467586"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 174 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 174 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.476514"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.476514"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 175 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-02-09 04:31:27.480028"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 175], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.480028"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["190"]}
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 175 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('190'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 175 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('190'))[0m
Completed 500 Internal Server Error in 3ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.488677"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.488677"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 176 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.492792"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 176], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.492792"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["191"]}
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 176 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('191'))[0m
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 176 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('191'))
Completed 500 Internal Server Error in 3ms
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.3ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.503795"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.503795"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 177 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-02-09 04:31:27.507147"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 177], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.507147"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 177 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 177 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 177) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:31:27.523606"], ["target_id", 177], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.523606"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 177 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 15ms (Views: 0.2ms | ActiveRecord: 1.5ms)
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 177 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.530582"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.530582"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 178 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.534097"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 178], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.534097"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 178 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 178 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 178 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 178 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.544702"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.544702"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 179 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-02-09 04:31:27.548198"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 179], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.548198"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35m (1.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 179) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:31:27.563988"], ["target_id", 179], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.563988"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 179 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 302 Found in 15ms (ActiveRecord: 2.8ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.572893"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.572893"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 180 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.577094"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 180], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.577094"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 180) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.580154"], ["target_id", 180], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.580154"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 180 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 35]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.593087"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.593087"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 181 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.597520"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 181], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.597520"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 181 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'BFQOj1N_zN1p-ba3xKjHbgRFaBvrrNrizMOYQEvTLfxg' LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.609374"], ["target_id", 181], ["target_type", "User"], ["token", "BFQOj1N_zN1p-ba3xKjHbgRFaBvrrNrizMOYQEvTLfxg"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.609374"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"BFQOj1N_zN1p-ba3xKjHbgRFaBvrrNrizMOYQEvTLfxg"}
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'BFQOj1N_zN1p-ba3xKjHbgRFaBvrrNrizMOYQEvTLfxg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'BFQOj1N_zN1p-ba3xKjHbgRFaBvrrNrizMOYQEvTLfxg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 181]]
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 181) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.629675"], ["target_id", 181], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.629675"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 45 [["active", "f"], ["updated_at", "2015-02-09 04:31:27.631496"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 2.9ms)
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 18.2ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 7.2ms
[1m[35mNotifyUser::UserHash Load (1.0ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.3ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.712342"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.712342"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 182 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.715872"], ["state", "pending"], ["target_id", 182], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.715872"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 182 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.720662"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.720662"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 183 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.724394"], ["state", "pending"], ["target_id", 183], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.724394"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.727222"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.727222"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 184 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.730441"], ["state", "pending"], ["target_id", 184], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.730441"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.734266"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.734266"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 185 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.738513"], ["state", "pending"], ["target_id", 185], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.738513"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 185 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 200 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-02-09 04:31:27.741679"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.746668"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.746668"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 186 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.749689"], ["state", "pending"], ["target_id", 186], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.749689"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 186 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 201 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-02-09 04:31:27.752542"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.756977"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.756977"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 187 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.760601"], ["state", "pending"], ["target_id", 187], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.760601"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 187 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 202 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-02-09 04:31:27.763432"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.768201"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.768201"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 188 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.773312"], ["state", "pending"], ["target_id", 188], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.773312"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 188 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 203 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-02-09 04:31:27.776959"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.782672"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.782672"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 189 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.787463"], ["state", "pending"], ["target_id", 189], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.787463"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 189 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.792834"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.792834"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 190 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.795925"], ["state", "pending"], ["target_id", 190], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.795925"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 190 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 190 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 205[0m [["state", "sent"], ["updated_at", "2015-02-09 04:31:27.800100"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 190 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 205)[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 205]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 190]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 190 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.809723"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.809723"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.813209"], ["state", "pending"], ["target_id", 191], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.813209"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.816361"], ["state", "pending"], ["target_id", 191], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.816361"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 207[0m [["state", "sent"], ["updated_at", "2015-02-09 04:31:27.822790"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 191 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 207)[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.830607"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.830607"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 192 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.835570"], ["state", "pending"], ["target_id", 192], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.835570"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 192 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 192 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 208 [["state", "sent"], ["updated_at", "2015-02-09 04:31:27.839836"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 208]]
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 192]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 192 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 192 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '-UvcobiGqicvZWXSz7lKRwYgHEhOYkKh7022cl-Laj4A' LIMIT 1[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.854729"], ["target_id", 192], ["target_type", "User"], ["token", "-UvcobiGqicvZWXSz7lKRwYgHEhOYkKh7022cl-Laj4A"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.854729"]]
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 18.8ms
Sent mail to user@example.com (7.9ms)
Date: Mon, 09 Feb 2015 15:31:27 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <54d8381fd38f5_80b53fdf90c63be49442a@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.874866"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.874866"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 193 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.878025"], ["state", "pending"], ["target_id", 193], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.878025"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 193 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 209[0m [["state", "pending_no_aggregation"], ["updated_at", "2015-02-09 04:31:27.880834"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.884816"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.884816"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 194 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.888012"], ["state", "pending"], ["target_id", 194], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.888012"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 194) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:31:27.890601"], ["target_id", 194], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2015-02-09 04:31:27.890601"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 210]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 194]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 194 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.897862"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.897862"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 195 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.903924"], ["state", "pending"], ["target_id", 195], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.903924"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 211]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 195]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 195 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.911829"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.911829"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 196 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.915067"], ["state", "pending"], ["target_id", 196], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.915067"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 196 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 196 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 212[0m [["state", "sent"], ["updated_at", "2015-02-09 04:31:27.921202"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 212]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 196]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 196 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 196 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'rMk12D1FSTNPbKBb4Cm34gOKFvS4HAWKtczyhj5KkfCg' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.938789"], ["target_id", 196], ["target_type", "User"], ["token", "rMk12D1FSTNPbKBb4Cm34gOKFvS4HAWKtczyhj5KkfCg"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.938789"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 16.6ms
Sent mail to user@example.com (4.9ms)
Date: Mon, 09 Feb 2015 15:31:27 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <54d8381fe658a_80b53fdf90c63be4945fc@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.949983"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.949983"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 197 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.956080"], ["state", "pending"], ["target_id", 197], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.956080"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 213]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 197]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 197 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:27.964129"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.964129"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 198 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:27.967753"], ["state", "pending"], ["target_id", 198], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.967753"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 214]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 198]]
[1m[35mNewPostNotification Load (0.8ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 198 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 198]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 198 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 214 [["state", "sent"], ["updated_at", "2015-02-09 04:31:27.976197"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.979959"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:27.979959"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 199 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.983545"], ["state", "pending"], ["target_id", 199], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.983545"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 199 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:27.987817"], ["state", "pending"], ["target_id", 199], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:27.987817"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 216]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 199]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 199 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 199]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 199 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 215[0m [["state", "sent"], ["updated_at", "2015-02-09 04:31:27.996057"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 199]]
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 199 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 216 [["state", "sent"], ["updated_at", "2015-02-09 04:31:28.001076"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.005224"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.005224"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 200 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.008694"], ["state", "pending"], ["target_id", 200], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.008694"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 200 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'f5mNR72fahmRYzU2aibJigqBkA9wjDgBHLTcBZVDlZ-w' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:28.011839"], ["target_id", 200], ["target_type", "User"], ["token", "f5mNR72fahmRYzU2aibJigqBkA9wjDgBHLTcBZVDlZ-w"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.011839"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.015703"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.015703"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 201 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.019216"], ["state", "pending"], ["target_id", 201], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.019216"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 201 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'XsNfW2n7Qb3OEfNYtvLu6gimMnuwwoz5dNl2tZniU21Q' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:28.022048"], ["target_id", 201], ["target_type", "User"], ["token", "XsNfW2n7Qb3OEfNYtvLu6gimMnuwwoz5dNl2tZniU21Q"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.022048"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 201 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:28.027093"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.027093"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 202 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:28.030449"], ["state", "pending"], ["target_id", 202], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.030449"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 202 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'L-VKTD4umbPibGIkhMETlANL56ZJraghXkezoQOk_A6Q' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.033538"], ["target_id", 202], ["target_type", "User"], ["token", "L-VKTD4umbPibGIkhMETlANL56ZJraghXkezoQOk_A6Q"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.033538"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 50 [["active", "f"], ["updated_at", "2015-02-09 04:31:28.036158"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 202 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'M19f9GLxm6TV3y44ZSV_aA2jlQ2QdmF_or5iRKTacPcw' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.039344"], ["target_id", 202], ["target_type", "User"], ["token", "M19f9GLxm6TV3y44ZSV_aA2jlQ2QdmF_or5iRKTacPcw"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.039344"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:28.043323"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.043323"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 203) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:31:28.046353"], ["target_id", 203], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.046353"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 38 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 203) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 203 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.055681"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.055681"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 204) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.058489"], ["target_id", 204], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.058489"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 39 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 204) LIMIT 1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 204 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:28.065448"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.065448"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 205) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-02-09 04:31:28.068488"], ["target_id", 205], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.068488"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 40 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 205) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 205) LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 205 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 205 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 40]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 205 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.080015"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.080015"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 206 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.082851"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 206], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.082851"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:28.086458"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.086458"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'FkHa2fsH8v4RUqxOXQBZdw8faU7unB8rk8l3IYfcYeSQ' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:28.088685"], ["target_id", 207], ["target_type", "User"], ["token", "FkHa2fsH8v4RUqxOXQBZdw8faU7unB8rk8l3IYfcYeSQ"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.088685"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'FkHa2fsH8v4RUqxOXQBZdw8faU7unB8rk8l3IYfcYeSQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-02-09 04:31:28.094098"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.094098"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '6atjz3r-d4pB5CeudNQlfQlfl4jlVcDcjUq4ifFN2HNA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-02-09 04:31:28.095801"], ["target_id", 208], ["target_type", "User"], ["token", "6atjz3r-d4pB5CeudNQlfQlfl4jlVcDcjUq4ifFN2HNA"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.095801"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 53[0m [["active", "f"], ["updated_at", "2015-02-09 04:31:28.099108"]]
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '6atjz3r-d4pB5CeudNQlfQlfl4jlVcDcjUq4ifFN2HNA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.104412"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.104412"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EjjUqKPayIjqtSqjlPoV_wd4GN5sCnDw5yk4g2fklcqg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.106171"], ["target_id", 209], ["target_type", "User"], ["token", "EjjUqKPayIjqtSqjlPoV_wd4GN5sCnDw5yk4g2fklcqg"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.106171"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 54 [["active", "f"], ["updated_at", "2015-02-09 04:31:28.109310"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.112101"], ["email", "user@example.com"], ["updated_at", "2015-02-09 04:31:28.112101"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'zY7lSW-EMXnHqzcUS7GvvQCCAmOmA-vy0-OTgzFIdc-w' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-02-09 04:31:28.114086"], ["target_id", 210], ["target_type", "User"], ["token", "zY7lSW-EMXnHqzcUS7GvvQCCAmOmA-vy0-OTgzFIdc-w"], ["type", "NewPostNotification"], ["updated_at", "2015-02-09 04:31:28.114086"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.632871"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.632871"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 16ms (Views: 10.5ms | ActiveRecord: 0.0ms)
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:57.661692"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.661692"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1952 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:54:57.684944"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1952], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.684944"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1952 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1952 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 500 Internal Server Error in 13ms
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.706573"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.706573"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1953 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.710860"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1953], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.710860"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1953 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.714168"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 1953], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.714168"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1953 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.717951"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 1953], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.717951"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1953 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 40ms (Views: 38.5ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.774395"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.774395"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1954 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.778527"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1954], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.778527"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1954 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.781894"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 1954], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.781894"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1954 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.785385"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 1954], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.785385"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2047"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1954 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2047') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1954]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1954 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2047[0m [["state", "read"], ["updated_at", "2015-03-11 23:54:57.798005"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 14ms (Views: 1.6ms | ActiveRecord: 2.1ms)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 2047 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.809057"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.809057"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1955 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.812711"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1955], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.812711"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1955 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.816881"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 1955], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.816881"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1955 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.820732"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 1955], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.820732"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2050"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1955 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2050') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1955]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1955 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2050[0m [["state", "read"], ["updated_at", "2015-03-11 23:54:57.830241"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.6ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2050"}
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1955 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2050') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 1.9ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.837848"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.837848"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1956 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.841354"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1956], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.841354"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1956 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.844576"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 1956], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.844576"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1956 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.847894"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 1956], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.847894"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1956 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1956 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:57.856940"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.856940"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1957 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:54:57.860529"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1957], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.860529"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["2056"]}
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1957 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2056'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1957 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2056'))[0m
Completed 500 Internal Server Error in 4ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.870045"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.870045"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1958 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.874183"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1958], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.874183"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["2057"]}
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1958 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2057'))[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1958 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2057'))
Completed 500 Internal Server Error in 3ms
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:57.883605"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.883605"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1959 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:54:57.887257"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1959], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.887257"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1959 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1959 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1959) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:54:57.915068"], ["target_id", 1959], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.915068"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1959 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 26ms (Views: 0.3ms | ActiveRecord: 1.8ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1959 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.922638"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.922638"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1960 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.926719"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1960], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.926719"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1960 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1960 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1960 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1960 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:57.937878"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.937878"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1961 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:54:57.942012"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1961], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.942012"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1961) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:54:57.947591"], ["target_id", 1961], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.947591"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1961 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.953962"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.953962"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1962 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.957472"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1962], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.957472"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1962) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.960235"], ["target_id", 1962], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.960235"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1962 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 371]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.969324"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:57.969324"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1963 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.973176"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1963], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.973176"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1963 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Ju8DCfryYv9AiOI93YMlHQxqfqBuS8jmqzkhnI6jfHZg' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:57.982815"], ["target_id", 1963], ["target_type", "User"], ["token", "Ju8DCfryYv9AiOI93YMlHQxqfqBuS8jmqzkhnI6jfHZg"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.982815"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"Ju8DCfryYv9AiOI93YMlHQxqfqBuS8jmqzkhnI6jfHZg"}
[1m[35mNotifyUser::UserHash Exists (0.6ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Ju8DCfryYv9AiOI93YMlHQxqfqBuS8jmqzkhnI6jfHZg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Ju8DCfryYv9AiOI93YMlHQxqfqBuS8jmqzkhnI6jfHZg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1963]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1963) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:57.992783"], ["target_id", 1963], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:57.992783"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 507 [["active", "f"], ["updated_at", "2015-03-11 23:54:57.994436"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 2.5ms)
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 20.4ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 7.9ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.6ms
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.080674"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.080674"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1964 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.084281"], ["state", "pending"], ["target_id", 1964], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.084281"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1964 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.090821"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.090821"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1965 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.094278"], ["state", "pending"], ["target_id", 1965], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.094278"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1965 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.099095"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.099095"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1966 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.102605"], ["state", "pending"], ["target_id", 1966], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.102605"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1966 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.107088"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.107088"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1967 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.110097"], ["state", "pending"], ["target_id", 1967], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.110097"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.113170"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.113170"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1968 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.116376"], ["state", "pending"], ["target_id", 1968], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.116376"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.119681"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.119681"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1969 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.123399"], ["state", "pending"], ["target_id", 1969], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.123399"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1969 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2068 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:54:58.126394"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.130923"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.130923"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1970 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.134176"], ["state", "pending"], ["target_id", 1970], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.134176"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1970 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2069 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:54:58.137071"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.142338"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.142338"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1971 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.145587"], ["state", "pending"], ["target_id", 1971], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.145587"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1971 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2070 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:54:58.148242"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.152871"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.152871"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1972 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.156320"], ["state", "pending"], ["target_id", 1972], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.156320"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1972 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2071 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:54:58.159141"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.163633"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.163633"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1973 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.167088"], ["state", "pending"], ["target_id", 1973], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.167088"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1973 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.172256"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.172256"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1974 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.175824"], ["state", "pending"], ["target_id", 1974], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.175824"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1974 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1974 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2073[0m [["state", "sent"], ["updated_at", "2015-03-11 23:54:58.179676"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1974 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2073)[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2073]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1974]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1974 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.189877"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.189877"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1975 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.193404"], ["state", "pending"], ["target_id", 1975], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.193404"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1975 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.196871"], ["state", "pending"], ["target_id", 1975], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.196871"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1975 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1975 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2075[0m [["state", "sent"], ["updated_at", "2015-03-11 23:54:58.201086"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1975 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2075)[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.206729"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.206729"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1976 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.210207"], ["state", "pending"], ["target_id", 1976], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.210207"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1976 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1976 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2076 [["state", "sent"], ["updated_at", "2015-03-11 23:54:58.214011"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2076]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1976]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1976 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1976 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WYeTZJgli2DFs-nH-Nf_sgxJ69kVQKMPNeFoWlfRE1zw' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.234260"], ["target_id", 1976], ["target_type", "User"], ["token", "WYeTZJgli2DFs-nH-Nf_sgxJ69kVQKMPNeFoWlfRE1zw"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.234260"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 18.2ms
Sent mail to user@example.com (9.5ms)
Date: Thu, 12 Mar 2015 10:54:58 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5500d5d23aeeb_35f23fd410c61be064af@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.250263"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.250263"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1977 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.253707"], ["state", "pending"], ["target_id", 1977], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.253707"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1977 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2077[0m [["state", "pending_no_aggregation"], ["updated_at", "2015-03-11 23:54:58.257859"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.261771"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.261771"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1978 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.265324"], ["state", "pending"], ["target_id", 1978], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.265324"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1978) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:54:58.268288"], ["target_id", 1978], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2015-03-11 23:54:58.268288"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2078]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1978]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1978 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.275035"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.275035"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1979 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.278570"], ["state", "pending"], ["target_id", 1979], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.278570"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2079]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1979]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1979 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.285502"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.285502"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1980 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.289951"], ["state", "pending"], ["target_id", 1980], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.289951"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1980 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1980 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2080[0m [["state", "sent"], ["updated_at", "2015-03-11 23:54:58.294908"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 2080]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1980]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1980 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1980 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7ZqAFRWcFMburIwoN3ebeQPDTxGTqkWdKbk6EX3UaJzQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.305900"], ["target_id", 1980], ["target_type", "User"], ["token", "7ZqAFRWcFMburIwoN3ebeQPDTxGTqkWdKbk6EX3UaJzQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.305900"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.7ms
Sent mail to user@example.com (4.9ms)
Date: Thu, 12 Mar 2015 10:54:58 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5500d5d24bbf2_35f23fd410c61be06563@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.316952"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.316952"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1981 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.320309"], ["state", "pending"], ["target_id", 1981], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.320309"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2081]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1981]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1981 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.327063"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.327063"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1982 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.330494"], ["state", "pending"], ["target_id", 1982], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.330494"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2082]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1982]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1982 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1982]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1982 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2082 [["state", "sent"], ["updated_at", "2015-03-11 23:54:58.337507"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.341960"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.341960"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1983 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.345311"], ["state", "pending"], ["target_id", 1983], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.345311"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1983 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.348951"], ["state", "pending"], ["target_id", 1983], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.348951"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 2084]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1983]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1983 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1983]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1983 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2083[0m [["state", "sent"], ["updated_at", "2015-03-11 23:54:58.356385"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1983]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1983 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2084 [["state", "sent"], ["updated_at", "2015-03-11 23:54:58.360060"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.363452"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.363452"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1984 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.366903"], ["state", "pending"], ["target_id", 1984], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.366903"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1984 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'SV67Oe1n7S8J15_BVSGGnAtan03wxnup1eaXlJAbmRnQ' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.370178"], ["target_id", 1984], ["target_type", "User"], ["token", "SV67Oe1n7S8J15_BVSGGnAtan03wxnup1eaXlJAbmRnQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.370178"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.374350"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.374350"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1985 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.377692"], ["state", "pending"], ["target_id", 1985], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.377692"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1985 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'DcmxqIIRWKvEkw3jD3ZLywxjHl8z8QZBdi9Mxc5sJfCA' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.380737"], ["target_id", 1985], ["target_type", "User"], ["token", "DcmxqIIRWKvEkw3jD3ZLywxjHl8z8QZBdi9Mxc5sJfCA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.380737"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1985 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.385769"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.385769"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1986 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.389498"], ["state", "pending"], ["target_id", 1986], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.389498"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1986 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'TnUqlO6VRwyUScVDX-J1AAl4qFlr51KdhtVpYvIfbSqg' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.392647"], ["target_id", 1986], ["target_type", "User"], ["token", "TnUqlO6VRwyUScVDX-J1AAl4qFlr51KdhtVpYvIfbSqg"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.392647"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 512 [["active", "f"], ["updated_at", "2015-03-11 23:54:58.394900"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1986 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'G6A1fF65Ig8mLMl7y2qHAArnelejVS0JQJ0kE9vWMIJA' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.397973"], ["target_id", 1986], ["target_type", "User"], ["token", "G6A1fF65Ig8mLMl7y2qHAArnelejVS0JQJ0kE9vWMIJA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.397973"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.402249"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.402249"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1987) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:54:58.405157"], ["target_id", 1987], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.405157"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 374 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1987) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1987 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.412444"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.412444"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1988) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.415062"], ["target_id", 1988], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.415062"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 375 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1988) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1988 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.421982"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.421982"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1989) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:54:58.425012"], ["target_id", 1989], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.425012"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 376 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1989) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1989) LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1989 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1989 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 376]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1989 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.435818"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.435818"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1990 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.439579"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1990], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.439579"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.442803"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.442803"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'etxwaIUiesW-liaWBQil_wIhuarpPW3pRkOG5T73e5HA' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.444795"], ["target_id", 1991], ["target_type", "User"], ["token", "etxwaIUiesW-liaWBQil_wIhuarpPW3pRkOG5T73e5HA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.444795"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'etxwaIUiesW-liaWBQil_wIhuarpPW3pRkOG5T73e5HA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:54:58.450342"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.450342"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ynPsPuMhdVFXxxfJYbwHbAUqtKeYQFK0XDgLgyLG9Kmg' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:54:58.452235"], ["target_id", 1992], ["target_type", "User"], ["token", "ynPsPuMhdVFXxxfJYbwHbAUqtKeYQFK0XDgLgyLG9Kmg"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.452235"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 515[0m [["active", "f"], ["updated_at", "2015-03-11 23:54:58.455390"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ynPsPuMhdVFXxxfJYbwHbAUqtKeYQFK0XDgLgyLG9Kmg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.458981"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.458981"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'H4L2AnlqhN9XuCJstU2TcQy7mSvrWDMEYJ5hZqWouhTQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.460695"], ["target_id", 1993], ["target_type", "User"], ["token", "H4L2AnlqhN9XuCJstU2TcQy7mSvrWDMEYJ5hZqWouhTQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.460695"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 516 [["active", "f"], ["updated_at", "2015-03-11 23:54:58.463841"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.466724"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:54:58.466724"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'nzriUQfvb07taCpmkEjYCg5PFdvNfBEPKpZMLGJeFR5A' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:54:58.468544"], ["target_id", 1994], ["target_type", "User"], ["token", "nzriUQfvb07taCpmkEjYCg5PFdvNfBEPKpZMLGJeFR5A"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:54:58.468544"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.407979"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.407979"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.0ms)
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.433601"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.433601"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1996 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:55:39.454346"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1996], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.454346"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1996 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1996 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 500 Internal Server Error in 11ms
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.474839"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.474839"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1997 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.479062"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1997], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.479062"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1997 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.482517"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 1997], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.482517"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1997 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.486128"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 1997], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.486128"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1997 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 26ms (Views: 24.4ms | ActiveRecord: 0.6ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.519041"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.519041"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1998 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.524919"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1998], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.524919"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1998 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.529243"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 1998], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.529243"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1998 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.532963"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 1998], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.532963"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2093"}
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1998 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2093') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1998]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1998 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2093[0m [["state", "read"], ["updated_at", "2015-03-11 23:55:39.543967"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 11ms (Views: 1.1ms | ActiveRecord: 1.8ms)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 2093 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.552503"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.552503"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1999 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.556084"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 1999], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.556084"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1999 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.559822"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 1999], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.559822"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1999 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.563147"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 1999], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.563147"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2096"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1999 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2096') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1999]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1999 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2096[0m [["state", "read"], ["updated_at", "2015-03-11 23:55:39.571408"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 1.7ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2096"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1999 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2096') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 2.2ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.580212"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.580212"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2000 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.583983"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2000], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.583983"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2000 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.587352"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2000], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.587352"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2000 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.591470"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2000], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.591470"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2000 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2000 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.601493"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.601493"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2001 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:55:39.605589"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2001], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.605589"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["2102"]}
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2001 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2102'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2001 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2102'))[0m
Completed 500 Internal Server Error in 3ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.614797"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.614797"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2002 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.618676"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2002], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.618676"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["2103"]}
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2002 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2103'))[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2002 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2103'))
Completed 500 Internal Server Error in 3ms
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.628607"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.628607"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2003 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:55:39.632409"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2003], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.632409"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.2ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2003 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2003 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2003) LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:55:39.656733"], ["target_id", 2003], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.656733"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2003 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 23ms (Views: 0.2ms | ActiveRecord: 1.7ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2003 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.663608"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.663608"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2004 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.667153"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2004], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.667153"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2004 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2004 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2004 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2004 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.679037"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.679037"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2005 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:55:39.683026"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2005], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.683026"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2005) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:55:39.688963"], ["target_id", 2005], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.688963"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2005 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.695099"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.695099"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2006 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.698646"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2006], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.698646"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2006) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.701660"], ["target_id", 2006], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.701660"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2006 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 379]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.711072"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.711072"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2007 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.715015"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2007], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.715015"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2007 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QfDxFhk35WyTR62hFAVO-wEWbR7Fa5eUEzw0BqR7DSJA' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.725397"], ["target_id", 2007], ["target_type", "User"], ["token", "QfDxFhk35WyTR62hFAVO-wEWbR7Fa5eUEzw0BqR7DSJA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.725397"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"QfDxFhk35WyTR62hFAVO-wEWbR7Fa5eUEzw0BqR7DSJA"}
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QfDxFhk35WyTR62hFAVO-wEWbR7Fa5eUEzw0BqR7DSJA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QfDxFhk35WyTR62hFAVO-wEWbR7Fa5eUEzw0BqR7DSJA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2007]]
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2007) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.735012"], ["target_id", 2007], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.735012"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 518 [["active", "f"], ["updated_at", "2015-03-11 23:55:39.736690"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 2.2ms)
[1m[35mNotifyUser::UserHash Load (0.2ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 15.5ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.1ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 11.4ms
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.819282"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.819282"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2008 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.823049"], ["state", "pending"], ["target_id", 2008], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.823049"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2008 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.827910"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.827910"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2009 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.831640"], ["state", "pending"], ["target_id", 2009], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.831640"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.835084"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.835084"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2010 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.838403"], ["state", "pending"], ["target_id", 2010], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.838403"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.842873"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.842873"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2011 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.846399"], ["state", "pending"], ["target_id", 2011], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.846399"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2011 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2112 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:55:39.849220"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.853588"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.853588"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2012 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.856966"], ["state", "pending"], ["target_id", 2012], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.856966"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2012 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2113 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:55:39.859681"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.863985"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.863985"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2013 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.867425"], ["state", "pending"], ["target_id", 2013], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.867425"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2013 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2114 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:55:39.870091"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.874535"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.874535"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2014 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.878284"], ["state", "pending"], ["target_id", 2014], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.878284"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2014 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2115 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:55:39.881162"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.885758"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.885758"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2015 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.890023"], ["state", "pending"], ["target_id", 2015], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.890023"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2015 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.895937"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.895937"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2016 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.899621"], ["state", "pending"], ["target_id", 2016], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.899621"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2016 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2016 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2117[0m [["state", "sent"], ["updated_at", "2015-03-11 23:55:39.903424"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2016 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2117)[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2117]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2016]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2016 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.912931"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.912931"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2017 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.916623"], ["state", "pending"], ["target_id", 2017], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.916623"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2017 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.920195"], ["state", "pending"], ["target_id", 2017], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.920195"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2017 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2017 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2119[0m [["state", "sent"], ["updated_at", "2015-03-11 23:55:39.924667"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2017 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2119)[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.930766"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.930766"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2018 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.934450"], ["state", "pending"], ["target_id", 2018], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.934450"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2018 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2018 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2120 [["state", "sent"], ["updated_at", "2015-03-11 23:55:39.938319"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.9ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2120]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2018]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2018 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2018 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'VS0jOoqQVbqrXxyNuJi_YgLyTjUMAHUlM1B9z16rdg8A' LIMIT 1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.955206"], ["target_id", 2018], ["target_type", "User"], ["token", "VS0jOoqQVbqrXxyNuJi_YgLyTjUMAHUlM1B9z16rdg8A"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.955206"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 12.2ms
Sent mail to user@example.com (13.8ms)
Date: Thu, 12 Mar 2015 10:55:39 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5500d5fbeafa8_38153ff7bd865bec1053e@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.977037"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.977037"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2019 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:39.980950"], ["state", "pending"], ["target_id", 2019], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.980950"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2019 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2121[0m [["state", "pending_no_aggregation"], ["updated_at", "2015-03-11 23:55:39.984226"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:39.987780"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:39.987780"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2020 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:39.992685"], ["state", "pending"], ["target_id", 2020], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:39.992685"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2020) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:55:39.995730"], ["target_id", 2020], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2015-03-11 23:55:39.995730"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2122]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2020]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2020 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.002686"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.002686"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2021 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.006115"], ["state", "pending"], ["target_id", 2021], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.006115"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2123]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2021]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2021 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.012353"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.012353"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2022 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.015633"], ["state", "pending"], ["target_id", 2022], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.015633"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2022 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2022 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2124[0m [["state", "sent"], ["updated_at", "2015-03-11 23:55:40.019949"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 2124]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2022]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2022 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2022 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'lmuNMChluig-YpbHCEsWSAhBS9pBcoEfRyYynC48NCQw' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.032199"], ["target_id", 2022], ["target_type", "User"], ["token", "lmuNMChluig-YpbHCEsWSAhBS9pBcoEfRyYynC48NCQw"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.032199"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 11.4ms
Sent mail to user@example.com (5.0ms)
Date: Thu, 12 Mar 2015 10:55:40 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5500d5fc906b_38153ff7bd865bec106e7@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.043742"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.043742"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2023 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.047464"], ["state", "pending"], ["target_id", 2023], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.047464"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2125]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2023]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2023 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.054211"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.054211"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2024 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.057483"], ["state", "pending"], ["target_id", 2024], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.057483"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2126]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2024]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2024 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2024]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2024 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2126 [["state", "sent"], ["updated_at", "2015-03-11 23:55:40.064168"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.067836"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.067836"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2025 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.071284"], ["state", "pending"], ["target_id", 2025], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.071284"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2025 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.074716"], ["state", "pending"], ["target_id", 2025], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.074716"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 2128]]
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2025]]
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2025 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2025]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2025 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2127[0m [["state", "sent"], ["updated_at", "2015-03-11 23:55:40.082705"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2025]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2025 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2128 [["state", "sent"], ["updated_at", "2015-03-11 23:55:40.086516"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.3ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.090712"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.090712"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2026 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.094481"], ["state", "pending"], ["target_id", 2026], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.094481"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2026 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'BMGQG_ZC0PBjX9n7jeyrKwsucV4K-jyTjovHlPCanE8w' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.097941"], ["target_id", 2026], ["target_type", "User"], ["token", "BMGQG_ZC0PBjX9n7jeyrKwsucV4K-jyTjovHlPCanE8w"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.097941"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.102317"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.102317"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2027 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.105651"], ["state", "pending"], ["target_id", 2027], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.105651"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2027 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ULXxg_sAmBpkS0B_uf3Zpw-MTjb9m8mxjORUIXgCu8YQ' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.108664"], ["target_id", 2027], ["target_type", "User"], ["token", "ULXxg_sAmBpkS0B_uf3Zpw-MTjb9m8mxjORUIXgCu8YQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.108664"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2027 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.113695"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.113695"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2028 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.117160"], ["state", "pending"], ["target_id", 2028], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.117160"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2028 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'jAqcc2yIVmIUOv-zeQwwbA0LafQHr42m6N_l3qu7wp1Q' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.120374"], ["target_id", 2028], ["target_type", "User"], ["token", "jAqcc2yIVmIUOv-zeQwwbA0LafQHr42m6N_l3qu7wp1Q"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.120374"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 523 [["active", "f"], ["updated_at", "2015-03-11 23:55:40.122917"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2028 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'K40DRvJb5zwRJNT8QFDyhwc52-plrRzOmn767bYuuqFA' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.126343"], ["target_id", 2028], ["target_type", "User"], ["token", "K40DRvJb5zwRJNT8QFDyhwc52-plrRzOmn767bYuuqFA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.126343"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.130197"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.130197"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2029) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:55:40.133214"], ["target_id", 2029], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.133214"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 382 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2029) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2029 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.141751"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.141751"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2030) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.144839"], ["target_id", 2030], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.144839"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 383 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2030) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2030 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.152031"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.152031"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2031) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:55:40.154733"], ["target_id", 2031], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.154733"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 384 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2031) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2031) LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2031 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2031 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 384]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2031 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.166251"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.166251"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2032 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.169651"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2032], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.169651"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.172916"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.172916"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'olcWT0-byGG_Azzu6asG1AePBrNH3DpidBJ7LGbYQpbw' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.175069"], ["target_id", 2033], ["target_type", "User"], ["token", "olcWT0-byGG_Azzu6asG1AePBrNH3DpidBJ7LGbYQpbw"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.175069"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'olcWT0-byGG_Azzu6asG1AePBrNH3DpidBJ7LGbYQpbw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:55:40.180835"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.180835"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 't4zB4OXkTK0Cb8dNOYvvqgjd0kasGdWOlfco6WA0iUTA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:55:40.182900"], ["target_id", 2034], ["target_type", "User"], ["token", "t4zB4OXkTK0Cb8dNOYvvqgjd0kasGdWOlfco6WA0iUTA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.182900"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 526[0m [["active", "f"], ["updated_at", "2015-03-11 23:55:40.186334"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 't4zB4OXkTK0Cb8dNOYvvqgjd0kasGdWOlfco6WA0iUTA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.190710"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.190710"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EeMooOuRufHDZOXP2f0qWQlztHB5o0tYIz0M9rK-5w5A' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.193136"], ["target_id", 2035], ["target_type", "User"], ["token", "EeMooOuRufHDZOXP2f0qWQlztHB5o0tYIz0M9rK-5w5A"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.193136"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 527 [["active", "f"], ["updated_at", "2015-03-11 23:55:40.196419"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.199409"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:55:40.199409"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'nxWpIJ_bXcBSzgffwnOR8w-ToDpG3AITihObTKIYjUjQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:55:40.201307"], ["target_id", 2036], ["target_type", "User"], ["token", "nxWpIJ_bXcBSzgffwnOR8w-ToDpG3AITihObTKIYjUjQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:55:40.201307"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:18.933710"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:18.933710"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.0ms)
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:18.955360"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:18.955360"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2038 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:56:18.975267"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2038], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:18.975267"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2038 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2038 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 500 Internal Server Error in 12ms
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:18.994700"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:18.994700"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2039 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:18.999817"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2039], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:18.999817"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2039 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.003350"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2039], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.003350"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2039 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.006753"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2039], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.006753"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2039 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.037530"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.037530"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2040 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.042366"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2040], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.042366"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2040 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.045839"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2040], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.045839"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2040 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.049607"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2040], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.049607"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2137"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2040 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2137') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2040]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2040 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2137[0m [["state", "read"], ["updated_at", "2015-03-11 23:56:19.060950"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 1.7ms)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 2137 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.069418"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.069418"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2041 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.073351"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2041], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.073351"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2041 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.077132"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2041], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.077132"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2041 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.081541"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2041], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.081541"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2140"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2041 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2140') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2041]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2041 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2140[0m [["state", "read"], ["updated_at", "2015-03-11 23:56:19.089622"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.5ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2140"}
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2041 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2140') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 1.8ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.096306"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.096306"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2042 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.100004"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2042], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.100004"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2042 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.103222"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2042], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.103222"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2042 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.106301"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2042], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.106301"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2042 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2042 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.115611"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.115611"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2043 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:56:19.119351"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2043], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.119351"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["2146"]}
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2043 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2146'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2043 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2146'))[0m
Completed 500 Internal Server Error in 3ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.128785"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.128785"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2044 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.132871"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2044], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.132871"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["2147"]}
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2044 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2147'))[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2044 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2147'))
Completed 500 Internal Server Error in 4ms
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.143802"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.143802"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2045 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:56:19.147403"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2045], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.147403"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2045 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2045 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2045) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:19.161842"], ["target_id", 2045], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.161842"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2045 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 13ms (Views: 0.3ms | ActiveRecord: 1.5ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2045 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.168958"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.168958"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2046 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.172574"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2046], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.172574"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2046 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2046 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2046 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 0.7ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2046 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.192519"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.192519"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2047 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:56:19.196051"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2047], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.196051"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2047) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:19.201636"], ["target_id", 2047], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.201636"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2047 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.208753"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.208753"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2048 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.212192"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2048], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.212192"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2048) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.215114"], ["target_id", 2048], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.215114"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2048 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 387]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.224393"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.224393"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2049 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.228892"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2049], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.228892"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2049 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EonD8Rr0xh4bI7felNJ_DQSnBwkvQzAnXmk-ONjWxRvA' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.238778"], ["target_id", 2049], ["target_type", "User"], ["token", "EonD8Rr0xh4bI7felNJ_DQSnBwkvQzAnXmk-ONjWxRvA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.238778"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"EonD8Rr0xh4bI7felNJ_DQSnBwkvQzAnXmk-ONjWxRvA"}
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EonD8Rr0xh4bI7felNJ_DQSnBwkvQzAnXmk-ONjWxRvA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EonD8Rr0xh4bI7felNJ_DQSnBwkvQzAnXmk-ONjWxRvA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2049]]
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2049) LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.247570"], ["target_id", 2049], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.247570"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 529 [["active", "f"], ["updated_at", "2015-03-11 23:56:19.249496"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 2.2ms)
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 16.1ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.0ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.5ms
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.330642"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.330642"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2050 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.334534"], ["state", "pending"], ["target_id", 2050], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.334534"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2050 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.339393"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.339393"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2051 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.342908"], ["state", "pending"], ["target_id", 2051], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.342908"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.347084"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.347084"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2052 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.350900"], ["state", "pending"], ["target_id", 2052], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.350900"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.354432"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.354432"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2053 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.357679"], ["state", "pending"], ["target_id", 2053], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.357679"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2053 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2156 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:56:19.360435"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.365137"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.365137"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2054 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.368361"], ["state", "pending"], ["target_id", 2054], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.368361"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2054 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2157 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:56:19.371108"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.375428"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.375428"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2055 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.378468"], ["state", "pending"], ["target_id", 2055], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.378468"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2055 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2158 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:56:19.381652"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.386226"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.386226"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2056 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.390489"], ["state", "pending"], ["target_id", 2056], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.390489"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2056 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2159 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:56:19.393555"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.398060"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.398060"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2057 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.401484"], ["state", "pending"], ["target_id", 2057], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.401484"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2057 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.406639"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.406639"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2058 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.409843"], ["state", "pending"], ["target_id", 2058], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.409843"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2058 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2058 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2161[0m [["state", "sent"], ["updated_at", "2015-03-11 23:56:19.413438"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2058 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2161)[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2161]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2058]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2058 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.423104"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.423104"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2059 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.427038"], ["state", "pending"], ["target_id", 2059], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.427038"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2059 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.431502"], ["state", "pending"], ["target_id", 2059], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.431502"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2059 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2059 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2163[0m [["state", "sent"], ["updated_at", "2015-03-11 23:56:19.435717"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2059 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2163)[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.4ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.445352"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.445352"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2060 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.449690"], ["state", "pending"], ["target_id", 2060], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.449690"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2060 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2060 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2164 [["state", "sent"], ["updated_at", "2015-03-11 23:56:19.454304"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2164]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2060]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2060 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2060 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '1DHAaGPGCgIm2dGDJVzPPQ3Z5tzoJ5eZobxxeD87PSXA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.467812"], ["target_id", 2060], ["target_type", "User"], ["token", "1DHAaGPGCgIm2dGDJVzPPQ3Z5tzoJ5eZobxxeD87PSXA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.467812"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 10.3ms
Sent mail to user@example.com (6.9ms)
Date: Thu, 12 Mar 2015 10:56:19 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5500d623738cf_3b033fe91d465be07574c@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.481168"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.481168"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2061 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.485074"], ["state", "pending"], ["target_id", 2061], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.485074"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2061 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2165[0m [["state", "pending_no_aggregation"], ["updated_at", "2015-03-11 23:56:19.489466"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.493476"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.493476"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2062 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.496888"], ["state", "pending"], ["target_id", 2062], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.496888"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2062) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:19.500089"], ["target_id", 2062], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2015-03-11 23:56:19.500089"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2166]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2062]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2062 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.513270"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.513270"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2063 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.516624"], ["state", "pending"], ["target_id", 2063], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.516624"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2167]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2063]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2063 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.522837"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.522837"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2064 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.526361"], ["state", "pending"], ["target_id", 2064], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.526361"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2064 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2064 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2168[0m [["state", "sent"], ["updated_at", "2015-03-11 23:56:19.532200"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 2168]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2064]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2064 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2064 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'TqVCylaYb65ur2dCkM_HpQSuZH0jKIh3ViVyQVGQYZjQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.543668"], ["target_id", 2064], ["target_type", "User"], ["token", "TqVCylaYb65ur2dCkM_HpQSuZH0jKIh3ViVyQVGQYZjQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.543668"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 10.0ms
Sent mail to user@example.com (5.5ms)
Date: Thu, 12 Mar 2015 10:56:19 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5500d62385d5a_3b033fe91d465be0758c6@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.555405"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.555405"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2065 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.558812"], ["state", "pending"], ["target_id", 2065], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.558812"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2169]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2065]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2065 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.565115"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.565115"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2066 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.568367"], ["state", "pending"], ["target_id", 2066], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.568367"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2170]]
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2066]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2066 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2066]]
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2066 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2170 [["state", "sent"], ["updated_at", "2015-03-11 23:56:19.574740"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.578017"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.578017"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2067 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.581162"], ["state", "pending"], ["target_id", 2067], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.581162"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2067 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.584563"], ["state", "pending"], ["target_id", 2067], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.584563"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 2172]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2067]]
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2067 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2067]]
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2067 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2171[0m [["state", "sent"], ["updated_at", "2015-03-11 23:56:19.591876"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2067]]
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2067 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2172 [["state", "sent"], ["updated_at", "2015-03-11 23:56:19.596547"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.600424"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.600424"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2068 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.603676"], ["state", "pending"], ["target_id", 2068], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.603676"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2068 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'lwAwVTz54modVl0UXkKlQAU7vYa2sF_zBoyR5Lb27EEw' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.606747"], ["target_id", 2068], ["target_type", "User"], ["token", "lwAwVTz54modVl0UXkKlQAU7vYa2sF_zBoyR5Lb27EEw"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.606747"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.610341"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.610341"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2069 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.613433"], ["state", "pending"], ["target_id", 2069], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.613433"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2069 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8uFf9Y_xnkYiyW4WePBbRAWdctMm2sqP8t3sQXWHEknQ' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.616538"], ["target_id", 2069], ["target_type", "User"], ["token", "8uFf9Y_xnkYiyW4WePBbRAWdctMm2sqP8t3sQXWHEknQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.616538"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2069 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.621458"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.621458"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2070 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.624723"], ["state", "pending"], ["target_id", 2070], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.624723"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2070 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'v8ULXQ4PPdq73uD7ZvrnwgKtu3e9CKAO1y_I-WsYxFdQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.627700"], ["target_id", 2070], ["target_type", "User"], ["token", "v8ULXQ4PPdq73uD7ZvrnwgKtu3e9CKAO1y_I-WsYxFdQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.627700"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 534 [["active", "f"], ["updated_at", "2015-03-11 23:56:19.629958"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2070 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WnYB3InWFTmf-BkYLiJzxQu3WB15VP7c6GN-FFLpgZKQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.633022"], ["target_id", 2070], ["target_type", "User"], ["token", "WnYB3InWFTmf-BkYLiJzxQu3WB15VP7c6GN-FFLpgZKQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.633022"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.637088"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.637088"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2071) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:19.640950"], ["target_id", 2071], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.640950"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 390 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2071) LIMIT 1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2071 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.648213"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.648213"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2072) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.650824"], ["target_id", 2072], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.650824"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 391 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2072) LIMIT 1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2072 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.657246"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.657246"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2073) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:19.659854"], ["target_id", 2073], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.659854"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 392 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2073) LIMIT 1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2073) LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2073 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2073 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 392]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2073 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.670225"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.670225"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2074 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.673581"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2074], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.673581"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.677379"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.677379"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'KN5Fgt1W03QGnOOPyp598AHic1k065OptL7RN04DRoQg' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.680197"], ["target_id", 2075], ["target_type", "User"], ["token", "KN5Fgt1W03QGnOOPyp598AHic1k065OptL7RN04DRoQg"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.680197"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'KN5Fgt1W03QGnOOPyp598AHic1k065OptL7RN04DRoQg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:19.685684"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.685684"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'NyHc4qm40D73IwHcx1YHVAks_fPzbhZL1dQNRwn8BP-w' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:19.687522"], ["target_id", 2076], ["target_type", "User"], ["token", "NyHc4qm40D73IwHcx1YHVAks_fPzbhZL1dQNRwn8BP-w"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.687522"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 537[0m [["active", "f"], ["updated_at", "2015-03-11 23:56:19.690492"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'NyHc4qm40D73IwHcx1YHVAks_fPzbhZL1dQNRwn8BP-w' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.693830"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.693830"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'hA0iJWR8lQzWwnZBAdxHdQrLTHW75VIAuJXmNXWh3xlw' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.695564"], ["target_id", 2077], ["target_type", "User"], ["token", "hA0iJWR8lQzWwnZBAdxHdQrLTHW75VIAuJXmNXWh3xlw"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.695564"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 538 [["active", "f"], ["updated_at", "2015-03-11 23:56:19.698700"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.701401"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:19.701401"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'P70bTfkE5jmyCOra0f2qoQcVTMEcVu61wO2XceAuCd_g' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:19.703267"], ["target_id", 2078], ["target_type", "User"], ["token", "P70bTfkE5jmyCOra0f2qoQcVTMEcVu61wO2XceAuCd_g"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:19.703267"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:36.966071"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:36.966071"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
Rendered /Users/anton/workspace/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 0.0ms)
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:36.988381"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:36.988381"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2080 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:56:37.007882"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2080], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.007882"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#index as JSON
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2080 AND "notify_user_notifications"."target_type" = 'User'
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2080 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 500 Internal Server Error in 10ms
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.024972"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.024972"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2081 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.028426"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2081], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.028426"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2081 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.031620"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2081], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.031620"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2081 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.035130"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2081], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.035130"]]
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#index as HTML
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2081 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.4ms)
[1m[35m (0.3ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.072941"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.072941"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2082 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.077921"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2082], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.077921"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2082 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.082238"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2082], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.082238"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2082 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.087700"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2082], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.087700"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2181"}
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2082 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2181') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2082]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2082 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2181[0m [["state", "read"], ["updated_at", "2015-03-11 23:56:37.100477"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 13ms (Views: 1.3ms | ActiveRecord: 1.9ms)
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 2181 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.109875"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.109875"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2083 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.113458"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2083], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.113458"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2083 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.117129"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2083], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.117129"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2083 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.120340"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2083], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.120340"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2184"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2083 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2184') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2083]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2083 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2184[0m [["state", "read"], ["updated_at", "2015-03-11 23:56:37.128673"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 1.5ms)
Processing by NotifyUser::NotificationsController#read as HTML
Parameters: {"id"=>"2184"}
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2083 AND "notify_user_notifications"."target_type" = 'User' AND (id = '2184') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 1.9ms)
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.135873"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.135873"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2084 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.140601"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2084], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.140601"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2084 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.144315"], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 2084], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.144315"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2084 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.148255"], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 2084], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.148255"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_all as HTML
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2084 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
Redirected to http://test.host/notify_user/notifications
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2084 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.159507"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.159507"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2085 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:56:37.163170"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2085], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.163170"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["2190"]}
[1m[35mSQL (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2085 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2190'))
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2085 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2190'))[0m
Completed 500 Internal Server Error in 4ms
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.173381"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.173381"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2086 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.176985"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2086], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.176985"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#mark_read as HTML
Parameters: {"ids"=>["2191"]}
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 2086 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2191'))[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2086 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('2191'))
Completed 500 Internal Server Error in 3ms
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.186552"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.186552"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2087 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:56:37.190413"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2087], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.190413"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2087 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2087 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2087) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:37.206809"], ["target_id", 2087], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.206809"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2087 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 1.7ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2087 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.214755"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.214755"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2088 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.226694"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2088], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.226694"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2088 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Processing by NotifyUser::NotificationsController#subscriptions as HTML
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2088 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2088 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2088 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.237156"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.237156"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2089 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", "2015-03-11 23:56:37.240542"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2089], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.240542"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2089) LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:37.245902"], ["target_id", 2089], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.245902"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/notify_user/notifications/unsubscribe
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2089 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.252655"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.252655"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2090 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.257063"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2090], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.257063"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2090) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.260152"], ["target_id", 2090], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.260152"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Processing by NotifyUser::NotificationsController#subscribe as HTML
Parameters: {"type"=>"NewPostNotification"}
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2090 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 395]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/notify_user/notifications/unsubscribe
Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.269702"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.269702"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2091 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.273261"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2091], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.273261"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2091 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'MMkk8TcNXk8xoJhQWxZC8g097UsdewwgacvhyrjYtwzw' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.282535"], ["target_id", 2091], ["target_type", "User"], ["token", "MMkk8TcNXk8xoJhQWxZC8g097UsdewwgacvhyrjYtwzw"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.282535"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
Parameters: {"type"=>"NewPostNotification", "token"=>"MMkk8TcNXk8xoJhQWxZC8g097UsdewwgacvhyrjYtwzw"}
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'MMkk8TcNXk8xoJhQWxZC8g097UsdewwgacvhyrjYtwzw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'MMkk8TcNXk8xoJhQWxZC8g097UsdewwgacvhyrjYtwzw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2091]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2091) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.292098"], ["target_id", 2091], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.292098"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 540 [["active", "f"], ["updated_at", "2015-03-11 23:56:37.293729"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Completed 200 OK in 8ms (Views: 0.3ms | ActiveRecord: 2.2ms)
[1m[35mNotifyUser::UserHash Load (0.2ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 16.4ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 8.1ms
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 9.2ms
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.371952"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.371952"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2092 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.375499"], ["state", "pending"], ["target_id", 2092], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.375499"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2092 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.380118"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.380118"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2093 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.383512"], ["state", "pending"], ["target_id", 2093], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.383512"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.386693"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.386693"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2094 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.390420"], ["state", "pending"], ["target_id", 2094], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.390420"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.393857"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.393857"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2095 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.396944"], ["state", "pending"], ["target_id", 2095], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.396944"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2095 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2200 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:56:37.399898"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.405264"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.405264"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2096 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.408721"], ["state", "pending"], ["target_id", 2096], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.408721"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2096 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2201 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:56:37.411633"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.416000"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.416000"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2097 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.419424"], ["state", "pending"], ["target_id", 2097], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.419424"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2097 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2202 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:56:37.422317"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.426897"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.426897"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2098 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.430146"], ["state", "pending"], ["target_id", 2098], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.430146"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2098 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2203 [["params", "{\"listing_id\":1}"], ["updated_at", "2015-03-11 23:56:37.433045"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.437584"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.437584"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2099 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.441103"], ["state", "pending"], ["target_id", 2099], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.441103"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2099 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.446233"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.446233"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.449749"], ["state", "pending"], ["target_id", 2100], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.449749"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2205[0m [["state", "sent"], ["updated_at", "2015-03-11 23:56:37.454553"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2100 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2205)[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2205]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2100]]
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2100 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.464491"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.464491"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.467977"], ["state", "pending"], ["target_id", 2101], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.467977"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.471371"], ["state", "pending"], ["target_id", 2101], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.471371"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2207[0m [["state", "sent"], ["updated_at", "2015-03-11 23:56:37.475810"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2101 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2207)[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.481595"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.481595"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.485029"], ["state", "pending"], ["target_id", 2102], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.485029"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2208 [["state", "sent"], ["updated_at", "2015-03-11 23:56:37.489441"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2208]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2102]]
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2102 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'RUCMW8f_FB3a57Lr-EH02ganz0hoN8BuA-dpMpaTHR1w' LIMIT 1[0m
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.503835"], ["target_id", 2102], ["target_type", "User"], ["token", "RUCMW8f_FB3a57Lr-EH02ganz0hoN8BuA-dpMpaTHR1w"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.503835"]]
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 13.9ms
Sent mail to user@example.com (7.9ms)
Date: Thu, 12 Mar 2015 10:56:37 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5500d6357d297_3d503fd23a065be8757e6@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.522810"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.522810"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.526660"], ["state", "pending"], ["target_id", 2103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.526660"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2209[0m [["state", "pending_no_aggregation"], ["updated_at", "2015-03-11 23:56:37.537286"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.541630"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.541630"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.545131"], ["state", "pending"], ["target_id", 2104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.545131"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2104) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:37.548297"], ["target_id", 2104], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", "2015-03-11 23:56:37.548297"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2210]]
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2104]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.555078"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.555078"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.558632"], ["state", "pending"], ["target_id", 2105], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.558632"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2211]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2105]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.565192"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.565192"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.568767"], ["state", "pending"], ["target_id", 2106], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.568767"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2212[0m [["state", "sent"], ["updated_at", "2015-03-11 23:56:37.575016"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 2212]]
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2106]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2106 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'AxrY3qcTI6H3p4k8PgEZcgabr5DZf4SXX2nDkMvJiL_w' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.586079"], ["target_id", 2106], ["target_type", "User"], ["token", "AxrY3qcTI6H3p4k8PgEZcgabr5DZf4SXX2nDkMvJiL_w"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.586079"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
NotifyUser::NotificationMailer#notification_email: processed outbound mail in 10.0ms
Sent mail to user@example.com (4.9ms)
Date: Thu, 12 Mar 2015 10:56:37 +1100
From: please-change-me-at-config-initializers-notify-user@example.com
To: user@example.com
Message-ID: <5500d6359039b_3d503fd23a065be87581d@Antons-MacBook-Pro.local.mail>
Subject: New Notification
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable
New Post Notification happened.
Unsubscribe
This is the default generated layout. A privacy declaration could g=
o here.
=C2=A9 MyCompany Pty Ltd
ABN 123 456 789
=
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.597504"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.597504"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.601212"], ["state", "pending"], ["target_id", 2107], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.601212"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2213]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2107]]
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.607812"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.607812"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.611185"], ["state", "pending"], ["target_id", 2108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.611185"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 2214]]
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2108]]
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2108 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2108]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2214 [["state", "sent"], ["updated_at", "2015-03-11 23:56:37.618380"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.622639"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.622639"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.626113"], ["state", "pending"], ["target_id", 2109], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.626113"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.629527"], ["state", "pending"], ["target_id", 2109], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.629527"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 2216]]
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2109]]
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 2109 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 2109]]
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2215[0m [["state", "sent"], ["updated_at", "2015-03-11 23:56:37.642002"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2109]]
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2216 [["state", "sent"], ["updated_at", "2015-03-11 23:56:37.646475"]]
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.650590"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.650590"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.654225"], ["state", "pending"], ["target_id", 2110], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.654225"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2110 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'z1VuP2DAEX53p5uzlaM2Bg5iTElZZJ9TO0LIDsPQWXtw' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.658115"], ["target_id", 2110], ["target_type", "User"], ["token", "z1VuP2DAEX53p5uzlaM2Bg5iTElZZJ9TO0LIDsPQWXtw"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.658115"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.2ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.662109"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.662109"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.665540"], ["state", "pending"], ["target_id", 2111], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.665540"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Load (0.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2111 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'E8ZHmPFKUG_ykXYgBO1t4wfuquXHp5Dz0nsXsX7ZxUjQ' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.668973"], ["target_id", 2111], ["target_type", "User"], ["token", "E8ZHmPFKUG_ykXYgBO1t4wfuquXHp5Dz0nsXsX7ZxUjQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.668973"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2111 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.675371"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.675371"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.678626"], ["state", "pending"], ["target_id", 2112], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.678626"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2112 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'XCZw1oIlsfLRXxrjReo4Qwq19LjdBprq9jFQkwUmz92w' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.681896"], ["target_id", 2112], ["target_type", "User"], ["token", "XCZw1oIlsfLRXxrjReo4Qwq19LjdBprq9jFQkwUmz92w"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.681896"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 545 [["active", "f"], ["updated_at", "2015-03-11 23:56:37.684497"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 2112 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'pIsGRHwy_dCjUuBz87c2DwATOZarM3vG9bCOSn3kWaxA' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.687591"], ["target_id", 2112], ["target_type", "User"], ["token", "pIsGRHwy_dCjUuBz87c2DwATOZarM3vG9bCOSn3kWaxA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.687591"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.691253"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.691253"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2113) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:37.694142"], ["target_id", 2113], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.694142"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 398 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2113) LIMIT 1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2113 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.701691"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.701691"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2114) LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.704446"], ["target_id", 2114], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.704446"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 399 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2114) LIMIT 1
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2114 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.711616"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.711616"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2115) LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-03-11 23:56:37.714590"], ["target_id", 2115], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.714590"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 400 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2115) LIMIT 1[0m
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::Unsubscribe Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 2115) LIMIT 1
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 400]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.727458"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.727458"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2116 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.730515"], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2116], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.730515"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.734038"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.734038"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '_5RpTk_LMOVr95Jy8RrwLwLdcxef3po63rbg4kWtDBwA' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.736008"], ["target_id", 2117], ["target_type", "User"], ["token", "_5RpTk_LMOVr95Jy8RrwLwLdcxef3po63rbg4kWtDBwA"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.736008"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '_5RpTk_LMOVr95Jy8RrwLwLdcxef3po63rbg4kWtDBwA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-03-11 23:56:37.741576"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.741576"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WOmkKdfo8e3V4CA2iXxv4AdaaPJ_U7q5q2DT81JpHzXg' LIMIT 1[0m
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2015-03-11 23:56:37.743340"], ["target_id", 2118], ["target_type", "User"], ["token", "WOmkKdfo8e3V4CA2iXxv4AdaaPJ_U7q5q2DT81JpHzXg"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.743340"]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 548[0m [["active", "f"], ["updated_at", "2015-03-11 23:56:37.746551"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36mNotifyUser::UserHash Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WOmkKdfo8e3V4CA2iXxv4AdaaPJ_U7q5q2DT81JpHzXg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
[1m[35m (0.2ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.750456"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.750456"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.2ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '190pxliDsE8Jci4LDryOWAitUqZoJbtAWEE-dOXhdI9g' LIMIT 1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.752509"], ["target_id", 2119], ["target_type", "User"], ["token", "190pxliDsE8Jci4LDryOWAitUqZoJbtAWEE-dOXhdI9g"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.752509"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 549 [["active", "f"], ["updated_at", "2015-03-11 23:56:37.755938"]]
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35m (0.1ms)[0m ROLLBACK
[1m[36m (0.1ms)[0m [1mBEGIN[0m
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.758941"], ["email", "user@example.com"], ["updated_at", "2015-03-11 23:56:37.758941"]]
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'OCM0gnWrjcQMMXICBCNO5AFkHV1zCE_B-pg-n8yKfFnQ' LIMIT 1
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2015-03-11 23:56:37.761516"], ["target_id", 2120], ["target_type", "User"], ["token", "OCM0gnWrjcQMMXICBCNO5AFkHV1zCE_B-pg-n8yKfFnQ"], ["type", "NewPostNotification"], ["updated_at", "2015-03-11 23:56:37.761516"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.2ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.1ms)[0m BEGIN
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
[1m[35m (0.4ms)[0m BEGIN
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.4ms)[0m [1mROLLBACK[0m