notify_user 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/app/mailers/notify_user/notification_mailer.rb +6 -2
- data/app/models/notify_user/apn_connection.rb +41 -0
- data/app/models/notify_user/apns.rb +18 -27
- data/app/models/notify_user/base_notification.rb +42 -64
- data/app/models/notify_user/houston.rb +98 -0
- data/app/models/notify_user/urban_airship.rb +33 -0
- data/lib/generators/notify_user/install/templates/initializer.rb +13 -0
- data/lib/notify_user.rb +16 -0
- data/lib/notify_user/channels/apns/apns_channel.rb +15 -12
- data/lib/notify_user/version.rb +1 -1
- data/spec/dummy/rails-3.2.17/Gemfile +38 -0
- data/spec/dummy/rails-3.2.17/README.rdoc +261 -0
- data/spec/dummy/rails-3.2.17/Rakefile +7 -0
- data/spec/dummy/rails-3.2.17/app/assets/images/rails.png +0 -0
- data/spec/dummy/rails-3.2.17/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/rails-3.2.17/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/rails-3.2.17/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/rails-3.2.17/app/controllers/notify_user/notifications_controller.rb +9 -0
- data/spec/dummy/rails-3.2.17/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/rails-3.2.17/app/models/user.rb +3 -0
- data/spec/dummy/rails-3.2.17/app/notifications/new_post_notification.rb +11 -0
- data/spec/dummy/rails-3.2.17/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/rails-3.2.17/app/views/notify_user/layouts/action_mailer.html.erb +39 -0
- data/spec/dummy/rails-3.2.17/app/views/notify_user/new_post_notification/action_mailer/notification.html.erb +1 -0
- data/spec/dummy/rails-3.2.17/app/views/notify_user/new_post_notification/mobile_sdk/notification.html.erb +1 -0
- data/spec/dummy/rails-3.2.17/config.ru +4 -0
- data/spec/dummy/rails-3.2.17/config/application.rb +62 -0
- data/spec/dummy/rails-3.2.17/config/boot.rb +6 -0
- data/spec/dummy/rails-3.2.17/config/database.yml +24 -0
- data/spec/dummy/rails-3.2.17/config/environment.rb +5 -0
- data/spec/dummy/rails-3.2.17/config/environments/development.rb +37 -0
- data/spec/dummy/rails-3.2.17/config/environments/production.rb +67 -0
- data/spec/dummy/rails-3.2.17/config/environments/test.rb +37 -0
- data/spec/dummy/rails-3.2.17/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/rails-3.2.17/config/initializers/inflections.rb +15 -0
- data/spec/dummy/rails-3.2.17/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/rails-3.2.17/config/initializers/notify_user.rb +14 -0
- data/spec/dummy/rails-3.2.17/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/rails-3.2.17/config/initializers/session_store.rb +8 -0
- data/spec/dummy/rails-3.2.17/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/rails-3.2.17/config/locales/en.yml +5 -0
- data/spec/dummy/rails-3.2.17/config/routes.rb +58 -0
- data/spec/dummy/rails-3.2.17/db/migrate/20150106040852_create_users.rb +9 -0
- data/spec/dummy/rails-3.2.17/db/migrate/20150106040854857857604000_create_notify_user_notifications.rb +13 -0
- data/spec/dummy/rails-3.2.17/db/migrate/20150106040854860860323000_create_notify_user_unsubscribes.rb +10 -0
- data/spec/dummy/rails-3.2.17/db/migrate/20150106040854862862248000_create_notify_user_user_hashes.rb +12 -0
- data/spec/dummy/rails-3.2.17/db/schema.rb +50 -0
- data/spec/dummy/rails-3.2.17/db/seeds.rb +7 -0
- data/spec/dummy/rails-3.2.17/doc/README_FOR_APP +2 -0
- data/spec/dummy/rails-3.2.17/log/test.log +933 -0
- data/spec/dummy/rails-3.2.17/public/404.html +26 -0
- data/spec/dummy/rails-3.2.17/public/422.html +26 -0
- data/spec/dummy/rails-3.2.17/public/500.html +25 -0
- data/spec/dummy/rails-3.2.17/public/favicon.ico +0 -0
- data/spec/dummy/rails-3.2.17/public/index.html +241 -0
- data/spec/dummy/rails-3.2.17/public/robots.txt +5 -0
- data/spec/dummy/rails-3.2.17/script/rails +6 -0
- data/spec/dummy/rails-3.2.17/test/fixtures/users.yml +7 -0
- data/spec/dummy/rails-3.2.17/test/performance/browsing_test.rb +12 -0
- data/spec/dummy/rails-3.2.17/test/test_helper.rb +13 -0
- data/spec/dummy/rails-3.2.17/test/unit/user_test.rb +7 -0
- data/spec/dummy/rails-4.0.4/log/test.log +38719 -0
- data/spec/models/notify_user/houston_spec.rb +33 -0
- data/spec/models/notify_user/notification_spec.rb +62 -96
- metadata +151 -2
@@ -0,0 +1,13 @@
|
|
1
|
+
class CreateNotifyUserNotifications < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :notify_user_notifications do |t|
|
4
|
+
t.string :type
|
5
|
+
t.integer :target_id
|
6
|
+
t.string :target_type
|
7
|
+
t.json :params
|
8
|
+
t.string :state
|
9
|
+
|
10
|
+
t.timestamps
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/spec/dummy/rails-3.2.17/db/migrate/20150106040854862862248000_create_notify_user_user_hashes.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
class CreateNotifyUserUserHashes < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :notify_user_user_hashes do |t|
|
4
|
+
t.string :type
|
5
|
+
t.integer :target_id
|
6
|
+
t.string :target_type
|
7
|
+
t.string :token
|
8
|
+
t.boolean :active, default: true
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20150106040854862862248000) do
|
15
|
+
|
16
|
+
create_table "notify_user_notifications", :force => true do |t|
|
17
|
+
t.string "type"
|
18
|
+
t.integer "target_id"
|
19
|
+
t.string "target_type"
|
20
|
+
t.json "params"
|
21
|
+
t.string "state"
|
22
|
+
t.datetime "created_at", :null => false
|
23
|
+
t.datetime "updated_at", :null => false
|
24
|
+
end
|
25
|
+
|
26
|
+
create_table "notify_user_unsubscribes", :force => true do |t|
|
27
|
+
t.string "type"
|
28
|
+
t.integer "target_id"
|
29
|
+
t.string "target_type"
|
30
|
+
t.datetime "created_at", :null => false
|
31
|
+
t.datetime "updated_at", :null => false
|
32
|
+
end
|
33
|
+
|
34
|
+
create_table "notify_user_user_hashes", :force => true do |t|
|
35
|
+
t.string "type"
|
36
|
+
t.integer "target_id"
|
37
|
+
t.string "target_type"
|
38
|
+
t.string "token"
|
39
|
+
t.boolean "active", :default => true
|
40
|
+
t.datetime "created_at", :null => false
|
41
|
+
t.datetime "updated_at", :null => false
|
42
|
+
end
|
43
|
+
|
44
|
+
create_table "users", :force => true do |t|
|
45
|
+
t.string "email"
|
46
|
+
t.datetime "created_at", :null => false
|
47
|
+
t.datetime "updated_at", :null => false
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
@@ -0,0 +1,933 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
[1m[36m (15.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
6
|
+
[1m[35m (6.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7
|
+
[1m[36m (0.7ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
8
|
+
Migrating to CreateUsers (20150106040852)
|
9
|
+
[1m[35m (0.3ms)[0m BEGIN
|
10
|
+
[1m[36m (10.0ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
11
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20150106040852')
|
12
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
13
|
+
Migrating to CreateNotifyUserNotifications (20150106040854857857604000)
|
14
|
+
[1m[35m (0.4ms)[0m BEGIN
|
15
|
+
[1m[36m (8.4ms)[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 NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
16
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20150106040854857857604000')
|
17
|
+
[1m[36m (1.2ms)[0m [1mCOMMIT[0m
|
18
|
+
Migrating to CreateNotifyUserUnsubscribes (20150106040854860860323000)
|
19
|
+
[1m[35m (0.7ms)[0m BEGIN
|
20
|
+
[1m[36m (7.1ms)[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 NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
21
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20150106040854860860323000')
|
22
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
23
|
+
Migrating to CreateNotifyUserUserHashes (20150106040854862862248000)
|
24
|
+
[1m[35m (0.4ms)[0m BEGIN
|
25
|
+
[1m[36m (10.0ms)[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 NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
26
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20150106040854862862248000')
|
27
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
28
|
+
[1m[35m (0.5ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
29
|
+
Connecting to database specified by database.yml
|
30
|
+
[1m[36m (0.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
31
|
+
[1m[35m (128.2ms)[0m DROP DATABASE IF EXISTS "notify_user_test"
|
32
|
+
[1m[36m (251.9ms)[0m [1mCREATE DATABASE "notify_user_test" ENCODING = 'unicode'[0m
|
33
|
+
[1m[35m (20.6ms)[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 NOT NULL, "updated_at" timestamp NOT NULL)
|
34
|
+
[1m[36m (11.8ms)[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 NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
35
|
+
[1m[35m (9.8ms)[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 NOT NULL, "updated_at" timestamp NOT NULL)
|
36
|
+
[1m[36m (7.8ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
37
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
38
|
+
[1m[36m (3.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
39
|
+
[1m[35m (0.9ms)[0m SELECT version FROM "schema_migrations"
|
40
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150106040854862862248000')[0m
|
41
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150106040852')
|
42
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150106040854857857604000')[0m
|
43
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150106040854860860323000')
|
44
|
+
Connecting to database specified by database.yml
|
45
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
46
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
47
|
+
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
48
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
49
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
50
|
+
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
|
51
|
+
Completed 200 OK in 16.8ms (Views: 14.1ms | ActiveRecord: 0.0ms)
|
52
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
53
|
+
[1m[35m (0.2ms)[0m BEGIN
|
54
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
55
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
56
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
57
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
58
|
+
[1m[36m (1.3ms)[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
|
59
|
+
[1m[35mSQL (1.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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 2], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
60
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
61
|
+
Processing by NotifyUser::NotificationsController#index as JSON
|
62
|
+
[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'
|
63
|
+
[1m[36mNotifyUser::BaseNotification Load (1.5ms)[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
|
64
|
+
Completed 200 OK in 12.8ms (Views: 6.6ms | ActiveRecord: 2.3ms)
|
65
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
66
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
67
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
68
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
69
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
70
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
71
|
+
[1m[35m (0.4ms)[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'
|
72
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
73
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
74
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
75
|
+
[1m[35m (0.5ms)[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'
|
76
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
77
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
78
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
79
|
+
[1m[35m (0.5ms)[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'
|
80
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
81
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
82
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
83
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[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
|
84
|
+
Completed 200 OK in 17.2ms (Views: 15.8ms | ActiveRecord: 0.6ms)
|
85
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
86
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
87
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
88
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
89
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
90
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
91
|
+
[1m[35m (0.5ms)[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'
|
92
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
93
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
94
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
95
|
+
[1m[35m (0.4ms)[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'
|
96
|
+
[1m[36mSQL (0.7ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
97
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
98
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
99
|
+
[1m[35m (0.4ms)[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'
|
100
|
+
[1m[36mSQL (1.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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
101
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
102
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
103
|
+
Parameters: {"id"=>"5"}
|
104
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[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') LIMIT 1[0m
|
105
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
106
|
+
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1[0m
|
107
|
+
[1m[35m (0.5ms)[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'
|
108
|
+
[1m[36m (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read', "updated_at" = '2015-01-06 04:09:06.193124', "params" = '{"name":"Mr. Blobby"}' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 5[0m
|
109
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
110
|
+
Completed 200 OK in 32.0ms (Views: 2.2ms | ActiveRecord: 3.0ms)
|
111
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 5 LIMIT 1[0m
|
112
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
113
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
114
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
115
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
116
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
117
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
118
|
+
[1m[35m (0.8ms)[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'
|
119
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
120
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
121
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
122
|
+
[1m[35m (0.4ms)[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'
|
123
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
124
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
125
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
126
|
+
[1m[35m (0.4ms)[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'
|
127
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
128
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
129
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
130
|
+
Parameters: {"id"=>"8"}
|
131
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[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') LIMIT 1[0m
|
132
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
133
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1[0m
|
134
|
+
[1m[35m (0.4ms)[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'
|
135
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read', "updated_at" = '2015-01-06 04:09:06.230444', "params" = '{"name":"Mr. Blobby"}' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 8[0m
|
136
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
137
|
+
Completed 200 OK in 8.0ms (Views: 0.4ms | ActiveRecord: 2.5ms)
|
138
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
139
|
+
Parameters: {"id"=>"8"}
|
140
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[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') LIMIT 1[0m
|
141
|
+
Completed 200 OK in 2.2ms (Views: 0.3ms | ActiveRecord: 0.7ms)
|
142
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
143
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
144
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
145
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
146
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
147
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
148
|
+
[1m[35m (0.5ms)[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'
|
149
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 6], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
150
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
151
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
152
|
+
[1m[35m (0.4ms)[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'
|
153
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Adams\"}"], ["state", "pending"], ["target_id", 6], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
154
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
155
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
156
|
+
[1m[35m (0.4ms)[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'
|
157
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mrs. James\"}"], ["state", "pending"], ["target_id", 6], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
158
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
159
|
+
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
160
|
+
[1m[36mSQL (1.1ms)[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
|
161
|
+
Redirected to http://test.host/notify_user/notifications
|
162
|
+
Completed 302 Found in 3.1ms (ActiveRecord: 1.1ms)
|
163
|
+
[1m[35mNotifyUser::BaseNotification Load (0.7ms)[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"]'))
|
164
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
165
|
+
[1m[35m (0.1ms)[0m BEGIN
|
166
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
167
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
168
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
169
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
170
|
+
[1m[36m (0.5ms)[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
|
171
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 7], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
172
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
173
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
174
|
+
Parameters: {"ids"=>["14"]}
|
175
|
+
[1m[35mSQL (0.7ms)[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'))
|
176
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[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
|
177
|
+
Completed 200 OK in 5.7ms (Views: 2.6ms | ActiveRecord: 1.3ms)
|
178
|
+
[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"."id" = $1 LIMIT 1 [["id", 14]]
|
179
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
180
|
+
[1m[35m (0.2ms)[0m BEGIN
|
181
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
182
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
183
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
184
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
185
|
+
[1m[36m (0.7ms)[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
|
186
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 8], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
187
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
188
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
189
|
+
Parameters: {"ids"=>["15"]}
|
190
|
+
[1m[35mSQL (0.5ms)[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'))
|
191
|
+
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[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
|
192
|
+
Completed 200 OK in 4.3ms (Views: 2.3ms | ActiveRecord: 1.0ms)
|
193
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
194
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
195
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
196
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
197
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
198
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
199
|
+
[1m[35m (0.5ms)[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'
|
200
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 9], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
201
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
202
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[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
|
203
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
204
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
205
|
+
[1m[35m (0.7ms)[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'
|
206
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
207
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.7ms)[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
|
208
|
+
[1m[36mSQL (1.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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 9], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
209
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
210
|
+
[1m[36m (0.7ms)[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
|
211
|
+
Completed 200 OK in 28.8ms (Views: 0.4ms | ActiveRecord: 3.7ms)
|
212
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[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'
|
213
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
214
|
+
[1m[35m (0.2ms)[0m BEGIN
|
215
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
216
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
217
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
218
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
219
|
+
[1m[36m (0.6ms)[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
|
220
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 10], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
221
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
222
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[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'
|
223
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
224
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
225
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[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
|
226
|
+
[1m[35m (0.5ms)[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'
|
227
|
+
Completed 200 OK in 3.4ms (Views: 0.4ms | ActiveRecord: 1.0ms)
|
228
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.6ms)[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
|
229
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
230
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
231
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
232
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
233
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
234
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
235
|
+
[1m[35m (0.4ms)[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'
|
236
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 11], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
237
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
238
|
+
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
239
|
+
Parameters: {"type"=>"NewPostNotification"}
|
240
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
241
|
+
[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" = 11) LIMIT 1
|
242
|
+
[1m[36mSQL (0.7ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 11], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
243
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
244
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
245
|
+
[1m[36m (0.4ms)[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
|
246
|
+
Completed 302 Found in 7.1ms (ActiveRecord: 2.1ms)
|
247
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.9ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
|
248
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
249
|
+
[1m[35m (0.2ms)[0m BEGIN
|
250
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
251
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
252
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
254
|
+
[1m[36m (0.6ms)[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
|
255
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 12], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
256
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
257
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
258
|
+
[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" = 12) LIMIT 1[0m
|
259
|
+
[1m[35mSQL (0.5ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 12], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
260
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
261
|
+
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
262
|
+
Parameters: {"type"=>"NewPostNotification"}
|
263
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[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'
|
264
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
265
|
+
[1m[35mSQL (0.7ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 3]]
|
266
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
267
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
268
|
+
Completed 302 Found in 4.5ms (ActiveRecord: 1.5ms)
|
269
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
|
270
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
271
|
+
[1m[35m (0.1ms)[0m BEGIN
|
272
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
273
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
274
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
275
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
276
|
+
[1m[36m (0.9ms)[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
|
277
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 13], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
278
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
279
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[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' LIMIT 1
|
280
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
281
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8r6km98pm_YIP71uH3_hVwuZqUKZElXbAqwJ00ATrhGw' LIMIT 1
|
282
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 13], ["target_type", "User"], ["token", "8r6km98pm_YIP71uH3_hVwuZqUKZElXbAqwJ00ATrhGw"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
283
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
284
|
+
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
285
|
+
Parameters: {"type"=>"NewPostNotification", "token"=>"8r6km98pm_YIP71uH3_hVwuZqUKZElXbAqwJ00ATrhGw"}
|
286
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8r6km98pm_YIP71uH3_hVwuZqUKZElXbAqwJ00ATrhGw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
287
|
+
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8r6km98pm_YIP71uH3_hVwuZqUKZElXbAqwJ00ATrhGw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' LIMIT 1
|
288
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1[0m
|
289
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
290
|
+
[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" = 13) LIMIT 1[0m
|
291
|
+
[1m[35mSQL (0.5ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 13], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
292
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
293
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
294
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = 'f', "updated_at" = '2015-01-06 04:09:06.445842' WHERE "notify_user_user_hashes"."id" = 1[0m
|
295
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
296
|
+
Completed 200 OK in 11.1ms (Views: 0.4ms | ActiveRecord: 3.6ms)
|
297
|
+
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1[0m
|
298
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
299
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
300
|
+
[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' LIMIT 1
|
301
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
302
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
303
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[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' LIMIT 1[0m
|
304
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
305
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
306
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
307
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
308
|
+
[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' LIMIT 1
|
309
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
310
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
311
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[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' LIMIT 1[0m
|
312
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
313
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
314
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
315
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
316
|
+
[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' LIMIT 1
|
317
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
318
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
319
|
+
[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' LIMIT 1[0m
|
320
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
321
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
322
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
323
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
324
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
325
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
326
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
327
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
328
|
+
[1m[35m (0.5ms)[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'
|
329
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 14], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
330
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
331
|
+
[1m[36m (0.5ms)[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
|
332
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
333
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
334
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
335
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
336
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
337
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
338
|
+
[1m[35m (0.4ms)[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'
|
339
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 15], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
340
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
341
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
342
|
+
[1m[35m (0.1ms)[0m BEGIN
|
343
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
344
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
345
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
346
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
347
|
+
[1m[36m (0.4ms)[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
|
348
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 16], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
349
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
350
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
351
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
353
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
354
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
355
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
356
|
+
[1m[35m (0.4ms)[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'
|
357
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 17], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
358
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
359
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
360
|
+
[1m[35m (0.4ms)[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'
|
361
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = '{"listing_id":1}', "updated_at" = '2015-01-06 04:09:06.584584' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 24[0m
|
362
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
363
|
+
[1m[36mNewPostNotification Load (0.5ms)[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
|
364
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
365
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
366
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
367
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
368
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
369
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
370
|
+
[1m[35m (0.5ms)[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'
|
371
|
+
[1m[36mSQL (0.7ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 18], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
372
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
373
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
374
|
+
[1m[35m (0.4ms)[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'
|
375
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = '{"listing_id":1}', "updated_at" = '2015-01-06 04:09:06.598888' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 25[0m
|
376
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
377
|
+
[1m[36mNewPostNotification Load (0.5ms)[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
|
378
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
379
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
380
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
381
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
382
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
383
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
384
|
+
[1m[35m (0.6ms)[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'
|
385
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 19], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
386
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
387
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
388
|
+
[1m[35m (0.4ms)[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'
|
389
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = '{"listing_id":1}', "updated_at" = '2015-01-06 04:09:06.611365' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 26[0m
|
390
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
391
|
+
[1m[36mNewPostNotification Load (0.5ms)[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
|
392
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
393
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
394
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
395
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
396
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
397
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
398
|
+
[1m[35m (0.4ms)[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'
|
399
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 20], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
400
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
401
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
402
|
+
[1m[35m (0.4ms)[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'
|
403
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = '{"listing_id":1}', "updated_at" = '2015-01-06 04:09:06.623490' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 27[0m
|
404
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
405
|
+
[1m[36mNewPostNotification Load (0.4ms)[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
|
406
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
407
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
408
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
409
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
410
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
411
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
412
|
+
[1m[35m (0.4ms)[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'
|
413
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 21], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
414
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
415
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
416
|
+
[1m[35m (0.4ms)[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'
|
417
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = '2015-01-06 04:09:06.636063', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 28[0m
|
418
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
419
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
420
|
+
[1m[35m (0.2ms)[0m BEGIN
|
421
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
422
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
423
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
424
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
425
|
+
[1m[36m (0.7ms)[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
|
426
|
+
[1m[35mSQL (0.7ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 22], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
427
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
428
|
+
[1m[35m (0.4ms)[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" = 'NewPostNotification'
|
429
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
430
|
+
[1m[35m (0.4ms)[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" = 'NewPostNotification'
|
431
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.650535', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 29[0m
|
432
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
433
|
+
[1m[36m (0.6ms)[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
|
434
|
+
[1m[35mNewPostNotification Load (0.6ms)[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", 29]]
|
435
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1[0m
|
436
|
+
[1m[35mNewPostNotification Load (0.6ms)[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" = 22 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
437
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
438
|
+
[1m[35m (0.2ms)[0m BEGIN
|
439
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
440
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
441
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
442
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
443
|
+
[1m[36m (0.4ms)[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" = 'NewPostNotification'[0m
|
444
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 23], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
445
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
446
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
447
|
+
[1m[36m (0.4ms)[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" = 'NewPostNotification'[0m
|
448
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 23], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
449
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
450
|
+
[1m[35m (0.6ms)[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'
|
451
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
452
|
+
[1m[35m (0.5ms)[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'
|
453
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.676601', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 31[0m
|
454
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
455
|
+
[1m[36m (0.6ms)[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" = 23 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 31)[0m
|
456
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
457
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
458
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
459
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
460
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
462
|
+
[1m[35m (0.6ms)[0m SELECT 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'
|
463
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 24], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
464
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
465
|
+
[1m[36m (0.6ms)[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
|
466
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
467
|
+
[1m[36m (0.5ms)[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
|
468
|
+
[1m[35m (0.9ms)[0m UPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.693451', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 32
|
469
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
470
|
+
[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" = 32 LIMIT 1
|
471
|
+
[1m[36mUser Load (0.8ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1[0m
|
472
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 24 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
473
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 24 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
474
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
475
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ALutk4xEuqkbjwqQKhOvUwrKLyk5pwXdhZRB3eGGZ5-Q' LIMIT 1[0m
|
476
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 24], ["target_type", "User"], ["token", "ALutk4xEuqkbjwqQKhOvUwrKLyk5pwXdhZRB3eGGZ5-Q"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
477
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
478
|
+
|
479
|
+
Sent mail to user@example.com (20.0ms)
|
480
|
+
Date: Tue, 06 Jan 2015 15:09:06 +1100
|
481
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
482
|
+
To: user@example.com
|
483
|
+
Message-ID: <54ab5fe2b1995_a2bb3fcf55865bf019645@wp.local.mail>
|
484
|
+
Subject: New Notification
|
485
|
+
Mime-Version: 1.0
|
486
|
+
Content-Type: text/html;
|
487
|
+
charset=UTF-8
|
488
|
+
Content-Transfer-Encoding: quoted-printable
|
489
|
+
|
490
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
491
|
+
tml4/strict.dtd">
|
492
|
+
<html>
|
493
|
+
<head>
|
494
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
495
|
+
"/>
|
496
|
+
<title></title>
|
497
|
+
</head>
|
498
|
+
|
499
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
500
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
501
|
+
ing: optimizeLegibility;">
|
502
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
503
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
504
|
+
Logo
|
505
|
+
</div>
|
506
|
+
</div>
|
507
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
508
|
+
">
|
509
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
510
|
+
New Post Notification happened.
|
511
|
+
|
512
|
+
</div>
|
513
|
+
</div>
|
514
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
515
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
516
|
+
<p style=3D"text-align: center;">
|
517
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
518
|
+
_unsubscribe?token=3DALutk4xEuqkbjwqQKhOvUwrKLyk5pwXdhZRB3eGGZ5-Q&typ=
|
519
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
520
|
+
</p>
|
521
|
+
<p style=3D"text-align: center;">
|
522
|
+
This is the default generated layout. A privacy declaration could g=
|
523
|
+
o here.
|
524
|
+
</p>
|
525
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
526
|
+
=C2=A9 MyCompany Pty Ltd
|
527
|
+
</p>
|
528
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
529
|
+
ABN 123 456 789
|
530
|
+
</p>
|
531
|
+
</div>
|
532
|
+
</div>
|
533
|
+
</body>
|
534
|
+
</html>=
|
535
|
+
|
536
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
537
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
538
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
539
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
540
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
541
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
542
|
+
[1m[35m (0.4ms)[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'
|
543
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 25], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
544
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
545
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
546
|
+
[1m[35m (0.5ms)[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'
|
547
|
+
[1m[36m (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = '2015-01-06 04:09:06.749755', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 33[0m
|
548
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
549
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
550
|
+
[1m[35m (0.1ms)[0m BEGIN
|
551
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
552
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
553
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
554
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
555
|
+
[1m[36m (0.5ms)[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
|
556
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 26], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
557
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
558
|
+
[1m[35m (0.5ms)[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" = 'NewPostNotification'
|
559
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
560
|
+
[1m[35m (0.6ms)[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" = 'NewPostNotification'
|
561
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.764344', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 34[0m
|
562
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
563
|
+
[1m[36mNewPostNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 34 LIMIT 1[0m
|
564
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1
|
565
|
+
[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" = 'action_mailer'[0m
|
566
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "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' LIMIT 1
|
567
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
568
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'SX0CcN9otl8401RTgUb00gUxDdviS6JYFwEAT4aQhfNg' LIMIT 1
|
569
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 26], ["target_type", "User"], ["token", "SX0CcN9otl8401RTgUb00gUxDdviS6JYFwEAT4aQhfNg"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
570
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
571
|
+
|
572
|
+
Sent mail to user@example.com (5.4ms)
|
573
|
+
Date: Tue, 06 Jan 2015 15:09:06 +1100
|
574
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
575
|
+
To: user@example.com
|
576
|
+
Message-ID: <54ab5fe2bf1f2_a2bb3fcf55865bf01975b@wp.local.mail>
|
577
|
+
Subject: New Notification
|
578
|
+
Mime-Version: 1.0
|
579
|
+
Content-Type: text/html;
|
580
|
+
charset=UTF-8
|
581
|
+
Content-Transfer-Encoding: quoted-printable
|
582
|
+
|
583
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
584
|
+
tml4/strict.dtd">
|
585
|
+
<html>
|
586
|
+
<head>
|
587
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
588
|
+
"/>
|
589
|
+
<title></title>
|
590
|
+
</head>
|
591
|
+
|
592
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
593
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
594
|
+
ing: optimizeLegibility;">
|
595
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
596
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
597
|
+
Logo
|
598
|
+
</div>
|
599
|
+
</div>
|
600
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
601
|
+
">
|
602
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
603
|
+
New Post Notification happened.
|
604
|
+
|
605
|
+
</div>
|
606
|
+
</div>
|
607
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
608
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
609
|
+
<p style=3D"text-align: center;">
|
610
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
611
|
+
_unsubscribe?token=3DSX0CcN9otl8401RTgUb00gUxDdviS6JYFwEAT4aQhfNg&typ=
|
612
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
613
|
+
</p>
|
614
|
+
<p style=3D"text-align: center;">
|
615
|
+
This is the default generated layout. A privacy declaration could g=
|
616
|
+
o here.
|
617
|
+
</p>
|
618
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
619
|
+
=C2=A9 MyCompany Pty Ltd
|
620
|
+
</p>
|
621
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
622
|
+
ABN 123 456 789
|
623
|
+
</p>
|
624
|
+
</div>
|
625
|
+
</div>
|
626
|
+
</body>
|
627
|
+
</html>=
|
628
|
+
|
629
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
630
|
+
[1m[35m (0.5ms)[0m BEGIN
|
631
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
632
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
633
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
634
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
635
|
+
[1m[36m (0.6ms)[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
|
636
|
+
[1m[35mSQL (0.7ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 27], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
637
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
638
|
+
[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" = 35 LIMIT 1
|
639
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1[0m
|
640
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 27 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
641
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
642
|
+
[1m[35m (0.2ms)[0m BEGIN
|
643
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
644
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
645
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
646
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
647
|
+
[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" = 'NewPostNotification'[0m
|
648
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 28], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
649
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
650
|
+
[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", 36]]
|
651
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1[0m
|
652
|
+
[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" = 28 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
653
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
654
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1
|
655
|
+
[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" = 'NewPostNotification'[0m
|
656
|
+
[1m[35m (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.817299', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 36
|
657
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
658
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
659
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
660
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
661
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
662
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
663
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
664
|
+
[1m[35m (0.5ms)[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'
|
665
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 29], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
666
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
667
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
668
|
+
[1m[35m (0.4ms)[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'
|
669
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 29], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
670
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
671
|
+
[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", 38]]
|
672
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1
|
673
|
+
[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" = 29 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
674
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
675
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1[0m
|
676
|
+
[1m[35m (0.4ms)[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'
|
677
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.838474', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 37[0m
|
678
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
679
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
680
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1
|
681
|
+
[1m[36m (0.6ms)[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
|
682
|
+
[1m[35m (0.7ms)[0m UPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.844022', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 38
|
683
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
684
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
685
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
686
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
687
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
688
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
689
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
690
|
+
[1m[35m (0.4ms)[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'
|
691
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 30], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
692
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
693
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
694
|
+
[1m[35m (0.6ms)[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'
|
695
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = '2015-01-06 04:09:06.857204', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 39[0m
|
696
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
697
|
+
[1m[36m (0.4ms)[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" = 'NewPostNotification'[0m
|
698
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
699
|
+
[1m[36m (0.5ms)[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" = 'NewPostNotification'[0m
|
700
|
+
[1m[35m (0.4ms)[0m UPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.861888', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 39
|
701
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
702
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 39 LIMIT 1
|
703
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1[0m
|
704
|
+
[1m[35m (0.5ms)[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" = 'action_mailer'
|
705
|
+
[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" = 39 LIMIT 1[0m
|
706
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1
|
707
|
+
[1m[36m (0.4ms)[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" = 'apns'[0m
|
708
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
709
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
710
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
711
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
712
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
713
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
714
|
+
[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" = 31) LIMIT 1
|
715
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 31], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
716
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
717
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
718
|
+
[1m[35m (0.6ms)[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" = 'NewPostNotification'
|
719
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
720
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
721
|
+
[1m[36m (0.5ms)[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
|
722
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
723
|
+
[1m[36m (0.4ms)[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
|
724
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
725
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
726
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
727
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
728
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
729
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
730
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[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" = 32) LIMIT 1
|
731
|
+
[1m[36mSQL (0.5ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 32], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
732
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
733
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
734
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.9ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 6 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 32) LIMIT 1
|
735
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
736
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
737
|
+
[1m[36m (0.5ms)[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
|
738
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 32], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
739
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
740
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
741
|
+
[1m[36m (0.5ms)[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
|
742
|
+
[1m[35m (0.6ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = '2015-01-06 04:09:06.904971', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 40
|
743
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
744
|
+
[1m[35m (0.4ms)[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'
|
745
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
746
|
+
[1m[35m (0.5ms)[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'
|
747
|
+
[1m[36m (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'sent', "updated_at" = '2015-01-06 04:09:06.910025', "params" = 'null' WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 40[0m
|
748
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
749
|
+
[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" = 40 LIMIT 1[0m
|
750
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1
|
751
|
+
[1m[36m (0.5ms)[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" = 'action_mailer'[0m
|
752
|
+
[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" = 40 LIMIT 1
|
753
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1[0m
|
754
|
+
[1m[35m (0.4ms)[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" = 'apns'
|
755
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
756
|
+
[1m[35m (0.1ms)[0m BEGIN
|
757
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
758
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
759
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
760
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
761
|
+
[1m[36m (0.5ms)[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
|
762
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 33], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
763
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
764
|
+
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 33 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
765
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
766
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Da9qkh9qu06UCun4ldLmwArRWU7356hBpWiykUkWz1Qg' LIMIT 1
|
767
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 33], ["target_type", "User"], ["token", "Da9qkh9qu06UCun4ldLmwArRWU7356hBpWiykUkWz1Qg"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
768
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
769
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
770
|
+
[1m[35m (0.2ms)[0m BEGIN
|
771
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
772
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
773
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
774
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
775
|
+
[1m[36m (0.6ms)[0m [1mSELECT 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'[0m
|
776
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 34], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
777
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
778
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m SELECT "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' LIMIT 1
|
779
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
780
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'yoH7FI95IaKEzTP1rCAQBAhRum7_I5PkJ0kSdqc4sFEQ' LIMIT 1
|
781
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 34], ["target_type", "User"], ["token", "yoH7FI95IaKEzTP1rCAQBAhRum7_I5PkJ0kSdqc4sFEQ"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
782
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
783
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[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' LIMIT 1[0m
|
784
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
785
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
786
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
787
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
788
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
789
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
790
|
+
[1m[35m (0.5ms)[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'
|
791
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["params", "null"], ["state", "pending"], ["target_id", 35], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
792
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
793
|
+
[1m[36mNotifyUser::UserHash Load (0.5ms)[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' LIMIT 1[0m
|
794
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
795
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7uuvVT-xpiPPs9QvRf87GgnNUK62Oi_gtjQ-NxNTJLXQ' LIMIT 1[0m
|
796
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 35], ["target_type", "User"], ["token", "7uuvVT-xpiPPs9QvRf87GgnNUK62Oi_gtjQ-NxNTJLXQ"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
797
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
798
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
799
|
+
[1m[36m (0.4ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = 'f', "updated_at" = '2015-01-06 04:09:06.964718' WHERE "notify_user_user_hashes"."id" = 6[0m
|
800
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
801
|
+
[1m[36mNotifyUser::UserHash Load (0.5ms)[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' LIMIT 1[0m
|
802
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
803
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'aHGDmoh-oCE8P5LjgP78LQJEKpCTBy-83fJnhLCLNKaw' LIMIT 1[0m
|
804
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 35], ["target_type", "User"], ["token", "aHGDmoh-oCE8P5LjgP78LQJEKpCTBy-83fJnhLCLNKaw"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
805
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
806
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
807
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
808
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
809
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
810
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
811
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
812
|
+
[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" = 36) LIMIT 1
|
813
|
+
[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 36], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
814
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
815
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
816
|
+
[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"."id" != 7 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 36) LIMIT 1
|
817
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
818
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
819
|
+
[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
|
820
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
821
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
822
|
+
[1m[35m (0.2ms)[0m BEGIN
|
823
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
824
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
825
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
826
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
827
|
+
[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" = 37) LIMIT 1[0m
|
828
|
+
[1m[35mSQL (0.5ms)[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", Tue, 06 Jan 2015 04:09:06 UTC +00:00], ["target_id", 37], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:06 UTC +00:00]]
|
829
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
830
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
831
|
+
[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"."id" != 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 37) LIMIT 1[0m
|
832
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
833
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
834
|
+
[1m[35m (0.6ms)[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'
|
835
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
836
|
+
[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'
|
837
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
838
|
+
[1m[35m (0.1ms)[0m BEGIN
|
839
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
840
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
841
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
842
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
843
|
+
[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" = 38) LIMIT 1[0m
|
844
|
+
[1m[35mSQL (0.5ms)[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", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["target_id", 38], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
845
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
846
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
847
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.6ms)[0m [1mSELECT 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[0m
|
848
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
849
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
850
|
+
[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" = 38) LIMIT 1
|
851
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
852
|
+
[1m[35m (0.5ms)[0m SELECT 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'
|
853
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* 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
|
854
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
855
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 9]]
|
856
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
857
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.6ms)[0m [1mSELECT "notify_user_unsubscribes".* 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
|
858
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
859
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
860
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
861
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
862
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
863
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
864
|
+
[1m[35m (0.4ms)[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'
|
865
|
+
[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", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["params", "{\"name\":\"Mr. Blobby\"}"], ["state", "pending"], ["target_id", 39], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
866
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
867
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
868
|
+
[1m[35m (0.2ms)[0m BEGIN
|
869
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
870
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
871
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
872
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
873
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QnqGE29ZCFpTiKdylEe_xwtA5dWVkIULNDjc1fvNlDig' LIMIT 1[0m
|
874
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["target_id", 40], ["target_type", "User"], ["token", "QnqGE29ZCFpTiKdylEe_xwtA5dWVkIULNDjc1fvNlDig"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
875
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
876
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
877
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
878
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QnqGE29ZCFpTiKdylEe_xwtA5dWVkIULNDjc1fvNlDig' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
879
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
880
|
+
[1m[35m (0.2ms)[0m BEGIN
|
881
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
882
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
883
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
884
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
885
|
+
[1m[36mNotifyUser::UserHash Exists (9.6ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '86MO4k9pdhU0vFQ9LKkdVwrjsWUjx_2Q6jlfePaoTe5Q' LIMIT 1[0m
|
886
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["target_id", 41], ["target_type", "User"], ["token", "86MO4k9pdhU0vFQ9LKkdVwrjsWUjx_2Q6jlfePaoTe5Q"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
887
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
888
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
889
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
890
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
891
|
+
[1m[36m (0.6ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = 'f', "updated_at" = '2015-01-06 04:09:07.055904' WHERE "notify_user_user_hashes"."id" = 9[0m
|
892
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
893
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '86MO4k9pdhU0vFQ9LKkdVwrjsWUjx_2Q6jlfePaoTe5Q' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
894
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
895
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
896
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
897
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
898
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
899
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
900
|
+
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'W3Uj_nFKnllsyANx2wOMTQ1HsN93Cl9BatmQo6rAozjg' LIMIT 1
|
901
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["target_id", 42], ["target_type", "User"], ["token", "W3Uj_nFKnllsyANx2wOMTQ1HsN93Cl9BatmQo6rAozjg"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
902
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
903
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
904
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
905
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
906
|
+
[1m[35m (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = 'f', "updated_at" = '2015-01-06 04:09:07.068096' WHERE "notify_user_user_hashes"."id" = 10
|
907
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
908
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
909
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
910
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
911
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
912
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
913
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
914
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'L50-z0BzqAdpwPMy814XqQ8YK3lmlNP3PO7plmdsZecw' LIMIT 1
|
915
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("active", "created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["active", true], ["created_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00], ["target_id", 43], ["target_type", "User"], ["token", "L50-z0BzqAdpwPMy814XqQ8YK3lmlNP3PO7plmdsZecw"], ["type", "NewPostNotification"], ["updated_at", Tue, 06 Jan 2015 04:09:07 UTC +00:00]]
|
916
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
917
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
918
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
919
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
920
|
+
[1m[35m (0.2ms)[0m BEGIN
|
921
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
922
|
+
[1m[35m (0.2ms)[0m BEGIN
|
923
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
924
|
+
[1m[35m (0.1ms)[0m BEGIN
|
925
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
926
|
+
[1m[35m (0.1ms)[0m BEGIN
|
927
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
928
|
+
[1m[35m (0.1ms)[0m BEGIN
|
929
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
930
|
+
[1m[35m (0.1ms)[0m BEGIN
|
931
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
932
|
+
[1m[35m (0.1ms)[0m BEGIN
|
933
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|