notify_user 0.0.16 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/notify_user/base_notification.rb +7 -1
- data/lib/notify_user/version.rb +1 -1
- data/spec/dummy/rails-4.0.4/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/{rails-4.0.2/db/migrate/20140428015529_create_users.rb → rails-4.0.4/db/migrate/20140624075850_create_users.rb} +0 -0
- data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531189189694000_create_notify_user_notifications.rb → rails-4.0.4/db/migrate/20140624075852587587217000_create_notify_user_notifications.rb} +0 -0
- data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531190190743000_create_notify_user_unsubscribes.rb → rails-4.0.4/db/migrate/20140624075852588588765000_create_notify_user_unsubscribes.rb} +0 -0
- data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531191191953000_create_notify_user_user_hashes.rb → rails-4.0.4/db/migrate/20140624075852590590153000_create_notify_user_user_hashes.rb} +0 -0
- data/spec/dummy/rails-4.0.4/db/schema.rb +1 -1
- data/spec/dummy/rails-4.0.4/log/test.log +8421 -19580
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{461686bcf3d7c88e0499f60b83be1fbd → 80e5f8379c6b79f7685b1a2124c2c032} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{8347cdde4e97e62f293aab2e5e6fcc2a → 8b79deab756579c0e92b62a86f6a5fef} +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/models/notify_user/notification_spec.rb +7 -0
- metadata +52 -190
- data/spec/dummy/rails-4.0.2/Gemfile +0 -45
- data/spec/dummy/rails-4.0.2/README.rdoc +0 -28
- data/spec/dummy/rails-4.0.2/Rakefile +0 -6
- data/spec/dummy/rails-4.0.2/app/assets/javascripts/application.js +0 -16
- data/spec/dummy/rails-4.0.2/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/rails-4.0.2/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/rails-4.0.2/app/controllers/notify_user/notifications_controller.rb +0 -9
- data/spec/dummy/rails-4.0.2/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/rails-4.0.2/app/models/user.rb +0 -2
- data/spec/dummy/rails-4.0.2/app/notifications/new_post_notification.rb +0 -11
- data/spec/dummy/rails-4.0.2/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/rails-4.0.2/app/views/notify_user/layouts/action_mailer.html.erb +0 -39
- data/spec/dummy/rails-4.0.2/app/views/notify_user/new_post_notification/action_mailer/notification.html.erb +0 -1
- data/spec/dummy/rails-4.0.2/app/views/notify_user/new_post_notification/mobile_sdk/notification.html.erb +0 -1
- data/spec/dummy/rails-4.0.2/bin/bundle +0 -3
- data/spec/dummy/rails-4.0.2/bin/rails +0 -4
- data/spec/dummy/rails-4.0.2/bin/rake +0 -4
- data/spec/dummy/rails-4.0.2/config/application.rb +0 -23
- data/spec/dummy/rails-4.0.2/config/boot.rb +0 -4
- data/spec/dummy/rails-4.0.2/config/database.yml +0 -54
- data/spec/dummy/rails-4.0.2/config/database2.yml +0 -57
- data/spec/dummy/rails-4.0.2/config/environment.rb +0 -5
- data/spec/dummy/rails-4.0.2/config/environments/development.rb +0 -29
- data/spec/dummy/rails-4.0.2/config/environments/production.rb +0 -80
- data/spec/dummy/rails-4.0.2/config/environments/test.rb +0 -36
- data/spec/dummy/rails-4.0.2/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/rails-4.0.2/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/rails-4.0.2/config/initializers/inflections.rb +0 -16
- data/spec/dummy/rails-4.0.2/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/rails-4.0.2/config/initializers/notify_user.rb +0 -14
- data/spec/dummy/rails-4.0.2/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/rails-4.0.2/config/initializers/session_store.rb +0 -3
- data/spec/dummy/rails-4.0.2/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/rails-4.0.2/config/locales/en.yml +0 -23
- data/spec/dummy/rails-4.0.2/config/routes.rb +0 -56
- data/spec/dummy/rails-4.0.2/config.ru +0 -4
- data/spec/dummy/rails-4.0.2/db/schema.rb +0 -53
- data/spec/dummy/rails-4.0.2/db/seeds.rb +0 -7
- data/spec/dummy/rails-4.0.2/log/test.log +0 -3146
- data/spec/dummy/rails-4.0.2/public/404.html +0 -58
- data/spec/dummy/rails-4.0.2/public/422.html +0 -58
- data/spec/dummy/rails-4.0.2/public/500.html +0 -57
- data/spec/dummy/rails-4.0.2/public/favicon.ico +0 -0
- data/spec/dummy/rails-4.0.2/public/robots.txt +0 -5
- data/spec/dummy/rails-4.0.2/test/fixtures/users.yml +0 -7
- data/spec/dummy/rails-4.0.2/test/models/user_test.rb +0 -7
- data/spec/dummy/rails-4.0.2/test/test_helper.rb +0 -15
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/13195a56ea8581e42f709ea01ea4604f +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/148f39f7dc2ea6cb194598111dbd4598 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/1d6bc1877ba2bbb89f393e10e8303d39 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/311d2b645a860b78f79ff156f12092ce +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/39651f0f2ac78423732234ebf092c632 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/5c85b1b5ac27b699c5f800c4e7ec82fb +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/68752c7ddc300bee3e9823db8befc306 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/6961013077b8573ed19d1e33abb8ebc5 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/7a316b3629b980c6d3a28924cb5fbbd8 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/8698d6fed0ef2f173a377160752b959f +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/8bab520aad78da438df1c428288cf229 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/fa138a16887e031c0ae1b4caccfb4c05 +0 -0
- data/spec/dummy/rails-4.0.4/db/migrate/20140519075749_create_users.rb +0 -9
- data/spec/dummy/rails-4.0.4/db/migrate/20140519075751424424898000_create_notify_user_notifications.rb +0 -13
- data/spec/dummy/rails-4.0.4/db/migrate/20140519075751426426728000_create_notify_user_unsubscribes.rb +0 -10
- data/spec/dummy/rails-4.0.4/db/migrate/20140519075751428428230000_create_notify_user_user_hashes.rb +0 -12
@@ -1,36 +0,0 @@
|
|
1
|
-
Rails402::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
-
# just for the purpose of running a single test. If you are using a tool that
|
12
|
-
# preloads Rails for running tests, you may have to set it to true.
|
13
|
-
config.eager_load = false
|
14
|
-
|
15
|
-
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
-
config.serve_static_assets = true
|
17
|
-
config.static_cache_control = "public, max-age=3600"
|
18
|
-
|
19
|
-
# Show full error reports and disable caching.
|
20
|
-
config.consider_all_requests_local = true
|
21
|
-
config.action_controller.perform_caching = false
|
22
|
-
|
23
|
-
# Raise exceptions instead of rendering exception templates.
|
24
|
-
config.action_dispatch.show_exceptions = false
|
25
|
-
|
26
|
-
# Disable request forgery protection in test environment.
|
27
|
-
config.action_controller.allow_forgery_protection = false
|
28
|
-
|
29
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
-
# The :test delivery method accumulates sent emails in the
|
31
|
-
# ActionMailer::Base.deliveries array.
|
32
|
-
config.action_mailer.delivery_method = :test
|
33
|
-
|
34
|
-
# Print deprecation notices to the stderr.
|
35
|
-
config.active_support.deprecation = :stderr
|
36
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
-
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format. Inflections
|
4
|
-
# are locale specific, and you may define rules for as many different
|
5
|
-
# locales as you wish. All of these examples are active by default:
|
6
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
-
# inflect.singular /^(ox)en/i, '\1'
|
9
|
-
# inflect.irregular 'person', 'people'
|
10
|
-
# inflect.uncountable %w( fish sheep )
|
11
|
-
# end
|
12
|
-
|
13
|
-
# These inflection rules are supported but not enabled by default:
|
14
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
-
# inflect.acronym 'RESTful'
|
16
|
-
# end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
NotifyUser.setup do |config|
|
2
|
-
|
3
|
-
# Override the email address from which notifications appear to be sent.
|
4
|
-
config.mailer_sender = "please-change-me-at-config-initializers-notify-user@example.com"
|
5
|
-
|
6
|
-
# NotifyUser will call this within NotificationsController to ensure the user is authenticated.
|
7
|
-
config.authentication_method = :authenticate_user!
|
8
|
-
|
9
|
-
# NotifyUser will call this within NotificationsController to return the current logged in user.
|
10
|
-
config.current_user_method = :current_user
|
11
|
-
|
12
|
-
# Override the default notification type
|
13
|
-
config.unsubscribable_notifications = ['NewPostNotification']
|
14
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
|
6
|
-
# Make sure the secret is at least 30 characters and all random,
|
7
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
-
# You can use `rake secret` to generate a secure secret key.
|
9
|
-
|
10
|
-
# Make sure your secret_key_base is kept private
|
11
|
-
# if you're sharing your code publicly.
|
12
|
-
Rails402::Application.config.secret_key_base = '465f947d799056a01ee40200c89105d0564deb9563d487a774b2ff7dfc6cf4fde48bbcb7043f6dfa15e22f238ccd68d06e52b36ea233d9e22885f5f6d6811f2e'
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
-
# is enabled by default.
|
5
|
-
|
6
|
-
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
-
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
-
end
|
10
|
-
|
11
|
-
# To enable root element in JSON for ActiveRecord objects.
|
12
|
-
# ActiveSupport.on_load(:active_record) do
|
13
|
-
# self.include_root_in_json = true
|
14
|
-
# end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
2
|
-
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
-
# than English, add the necessary files in this directory.
|
4
|
-
#
|
5
|
-
# To use the locales, use `I18n.t`:
|
6
|
-
#
|
7
|
-
# I18n.t 'hello'
|
8
|
-
#
|
9
|
-
# In views, this is aliased to just `t`:
|
10
|
-
#
|
11
|
-
# <%= t('hello') %>
|
12
|
-
#
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
14
|
-
#
|
15
|
-
# I18n.locale = :es
|
16
|
-
#
|
17
|
-
# This would use the information in config/locales/es.yml.
|
18
|
-
#
|
19
|
-
# To learn more, please read the Rails Internationalization guide
|
20
|
-
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
-
|
22
|
-
en:
|
23
|
-
hello: "Hello world"
|
@@ -1,56 +0,0 @@
|
|
1
|
-
Rails402::Application.routes.draw do
|
2
|
-
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
-
# See how all your routes lay out with "rake routes".
|
4
|
-
|
5
|
-
# You can have the root of your site routed with "root"
|
6
|
-
# root 'welcome#index'
|
7
|
-
|
8
|
-
# Example of regular route:
|
9
|
-
# get 'products/:id' => 'catalog#view'
|
10
|
-
|
11
|
-
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
-
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
-
|
14
|
-
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
-
# resources :products
|
16
|
-
|
17
|
-
# Example resource route with options:
|
18
|
-
# resources :products do
|
19
|
-
# member do
|
20
|
-
# get 'short'
|
21
|
-
# post 'toggle'
|
22
|
-
# end
|
23
|
-
#
|
24
|
-
# collection do
|
25
|
-
# get 'sold'
|
26
|
-
# end
|
27
|
-
# end
|
28
|
-
|
29
|
-
# Example resource route with sub-resources:
|
30
|
-
# resources :products do
|
31
|
-
# resources :comments, :sales
|
32
|
-
# resource :seller
|
33
|
-
# end
|
34
|
-
|
35
|
-
# Example resource route with more complex sub-resources:
|
36
|
-
# resources :products do
|
37
|
-
# resources :comments
|
38
|
-
# resources :sales do
|
39
|
-
# get 'recent', on: :collection
|
40
|
-
# end
|
41
|
-
# end
|
42
|
-
|
43
|
-
# Example resource route with concerns:
|
44
|
-
# concern :toggleable do
|
45
|
-
# post 'toggle'
|
46
|
-
# end
|
47
|
-
# resources :posts, concerns: :toggleable
|
48
|
-
# resources :photos, concerns: :toggleable
|
49
|
-
|
50
|
-
# Example resource route within a namespace:
|
51
|
-
# namespace :admin do
|
52
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
-
# # (app/controllers/admin/products_controller.rb)
|
54
|
-
# resources :products
|
55
|
-
# end
|
56
|
-
end
|
@@ -1,53 +0,0 @@
|
|
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 that you check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(version: 20140428015531191191953000) do
|
15
|
-
|
16
|
-
# These are extensions that must be enabled in order to support this database
|
17
|
-
enable_extension "plpgsql"
|
18
|
-
|
19
|
-
create_table "notify_user_notifications", force: true do |t|
|
20
|
-
t.string "type"
|
21
|
-
t.integer "target_id"
|
22
|
-
t.string "target_type"
|
23
|
-
t.json "params"
|
24
|
-
t.string "state"
|
25
|
-
t.datetime "created_at"
|
26
|
-
t.datetime "updated_at"
|
27
|
-
end
|
28
|
-
|
29
|
-
create_table "notify_user_unsubscribes", force: true do |t|
|
30
|
-
t.string "type"
|
31
|
-
t.integer "target_id"
|
32
|
-
t.string "target_type"
|
33
|
-
t.datetime "created_at"
|
34
|
-
t.datetime "updated_at"
|
35
|
-
end
|
36
|
-
|
37
|
-
create_table "notify_user_user_hashes", force: true do |t|
|
38
|
-
t.string "type"
|
39
|
-
t.integer "target_id"
|
40
|
-
t.string "target_type"
|
41
|
-
t.string "token"
|
42
|
-
t.boolean "active", default: true
|
43
|
-
t.datetime "created_at"
|
44
|
-
t.datetime "updated_at"
|
45
|
-
end
|
46
|
-
|
47
|
-
create_table "users", force: true do |t|
|
48
|
-
t.string "email"
|
49
|
-
t.datetime "created_at"
|
50
|
-
t.datetime "updated_at"
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
@@ -1,7 +0,0 @@
|
|
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)
|
@@ -1,3146 +0,0 @@
|
|
1
|
-
[1m[36m (3.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2
|
-
[1m[35m (2.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
-
Migrating to CreateUsers (20140428015529)
|
5
|
-
[1m[35m (0.2ms)[0m BEGIN
|
6
|
-
[1m[36m (5.8ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
7
|
-
[1m[35mSQL (1.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140428015529"]]
|
8
|
-
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
9
|
-
Migrating to CreateNotifyUserNotifications (20140428015531189189694000)
|
10
|
-
[1m[35m (0.4ms)[0m BEGIN
|
11
|
-
[1m[36m (4.9ms)[0m [1mCREATE TABLE "notify_user_notifications" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "params" json, "state" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
12
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140428015531189189694000"]]
|
13
|
-
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
14
|
-
Migrating to CreateNotifyUserUnsubscribes (20140428015531190190743000)
|
15
|
-
[1m[35m (0.4ms)[0m BEGIN
|
16
|
-
[1m[36m (7.0ms)[0m [1mCREATE TABLE "notify_user_unsubscribes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
17
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140428015531190190743000"]]
|
18
|
-
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
19
|
-
Migrating to CreateNotifyUserUserHashes (20140428015531191191953000)
|
20
|
-
[1m[35m (0.3ms)[0m BEGIN
|
21
|
-
[1m[36m (5.9ms)[0m [1mCREATE TABLE "notify_user_user_hashes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "token" character varying(255), "active" boolean DEFAULT 't', "created_at" timestamp, "updated_at" timestamp) [0m
|
22
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140428015531191191953000"]]
|
23
|
-
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
24
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
25
|
-
[1m[36m (124.4ms)[0m [1mDROP DATABASE IF EXISTS "rails-4_0_2_test"[0m
|
26
|
-
[1m[35m (258.4ms)[0m CREATE DATABASE "rails-4_0_2_test" ENCODING = 'unicode'
|
27
|
-
[1m[36mSQL (2.1ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
28
|
-
[1m[35m (10.7ms)[0m CREATE TABLE "notify_user_notifications" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "params" json, "state" character varying(255), "created_at" timestamp, "updated_at" timestamp)
|
29
|
-
[1m[36m (6.0ms)[0m [1mCREATE TABLE "notify_user_unsubscribes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
30
|
-
[1m[35m (6.2ms)[0m CREATE TABLE "notify_user_user_hashes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "token" character varying(255), "active" boolean DEFAULT 't', "created_at" timestamp, "updated_at" timestamp)
|
31
|
-
[1m[36m (4.4ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "created_at" timestamp, "updated_at" timestamp) [0m
|
32
|
-
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
33
|
-
[1m[36m (1.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
34
|
-
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
35
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140428015531191191953000')[0m
|
36
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140428015529')
|
37
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140428015531189189694000')[0m
|
38
|
-
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140428015531190190743000')
|
39
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
40
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
41
|
-
[1m[36mSQL (6.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:41 UTC +00:00]]
|
42
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
43
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
44
|
-
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
|
45
|
-
Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.0ms)
|
46
|
-
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
47
|
-
[1m[35m (0.1ms)[0m BEGIN
|
48
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
49
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:41 UTC +00:00]]
|
50
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
51
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
52
|
-
[1m[36m (1.0ms)[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
|
53
|
-
[1m[35mSQL (1.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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 2], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
54
|
-
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55
|
-
Processing by NotifyUser::NotificationsController#index as JSON
|
56
|
-
[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'
|
57
|
-
[1m[36mNotifyUser::BaseNotification Load (1.2ms)[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
|
58
|
-
Completed 200 OK in 19ms (Views: 10.7ms | ActiveRecord: 2.0ms)
|
59
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
60
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
61
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
62
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
63
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
64
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
65
|
-
[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'
|
66
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
67
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
68
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
69
|
-
[1m[35m (0.6ms)[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'
|
70
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
71
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
72
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
73
|
-
[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'
|
74
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
75
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
76
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
77
|
-
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[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
|
78
|
-
Completed 200 OK in 721ms (Views: 719.5ms | ActiveRecord: 0.8ms)
|
79
|
-
[1m[35m (0.4ms)[0m ROLLBACK
|
80
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
81
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
82
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
83
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
84
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
85
|
-
[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'
|
86
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
87
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
88
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
89
|
-
[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'
|
90
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
91
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
92
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
93
|
-
[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'
|
94
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
95
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
96
|
-
Processing by NotifyUser::NotificationsController#read as HTML
|
97
|
-
Parameters: {"id"=>"5"}
|
98
|
-
[1m[36mNotifyUser::BaseNotification Load (1.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 4 AND "notify_user_notifications"."target_type" = 'User' AND (id = '5') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
99
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
100
|
-
[1m[36mUser Load (1.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 4]]
|
101
|
-
[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'
|
102
|
-
[1m[36mSQL (2.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 5[0m [["state", "read"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
103
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
104
|
-
Completed 200 OK in 28ms (Views: 2.2ms | ActiveRecord: 5.6ms)
|
105
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 5 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
106
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
107
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
108
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
109
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
110
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
111
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
112
|
-
[1m[35m (0.5ms)[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'
|
113
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
114
|
-
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
115
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
116
|
-
[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'
|
117
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
118
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
119
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
-
[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'
|
121
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
122
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
123
|
-
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
124
|
-
[1m[36mSQL (1.0ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 5 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
|
125
|
-
Redirected to http://test.host/notify_user/notifications
|
126
|
-
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
127
|
-
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 5 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
|
128
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
129
|
-
[1m[35m (0.2ms)[0m BEGIN
|
130
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
131
|
-
[1m[35mSQL (0.8ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
132
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
133
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
134
|
-
[1m[36m (0.5ms)[0m [1mSELECT 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'[0m
|
135
|
-
[1m[35mSQL (1.0ms)[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 6], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
136
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
137
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
138
|
-
Parameters: {"ids"=>["11"]}
|
139
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 6 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('11'))
|
140
|
-
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 6 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('11'))[0m
|
141
|
-
Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 1.3ms)
|
142
|
-
[1m[35mNewPostNotification Load (1.0ms)[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", 11]]
|
143
|
-
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
144
|
-
[1m[35m (0.2ms)[0m BEGIN
|
145
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
146
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
147
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
148
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
149
|
-
[1m[36m (0.4ms)[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
|
150
|
-
[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 7], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
151
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
152
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
153
|
-
Parameters: {"ids"=>["12"]}
|
154
|
-
[1m[35mSQL (0.6ms)[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 ('12'))
|
155
|
-
[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 ('12'))[0m
|
156
|
-
Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 1.2ms)
|
157
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
158
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
159
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
160
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
161
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
162
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
163
|
-
[1m[35m (0.4ms)[0m SELECT 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'
|
164
|
-
[1m[36mSQL (0.8ms)[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 8], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
165
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
166
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* 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
|
167
|
-
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
168
|
-
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
169
|
-
[1m[35m (0.5ms)[0m SELECT 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'
|
170
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
171
|
-
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[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" = 8) LIMIT 1
|
172
|
-
[1m[36mSQL (1.8ms)[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["target_id", 8], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
173
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
174
|
-
[1m[36m (0.5ms)[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" = 'action_mailer'[0m
|
175
|
-
[1m[35m (0.4ms)[0m SELECT 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'
|
176
|
-
Completed 200 OK in 33ms (Views: 0.3ms | ActiveRecord: 4.1ms)
|
177
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* 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
|
178
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
179
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
180
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
181
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
182
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
183
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
184
|
-
[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'
|
185
|
-
[1m[36mSQL (0.8ms)[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", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 9], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
186
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
187
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[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
|
188
|
-
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
189
|
-
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
190
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[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'
|
191
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
192
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
193
|
-
Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)
|
194
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
195
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
196
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
197
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
198
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
|
199
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
200
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
201
|
-
[1m[35m (0.4ms)[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'
|
202
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 10], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
203
|
-
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
204
|
-
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
205
|
-
Parameters: {"type"=>"NewPostNotification"}
|
206
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
207
|
-
[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" = 10) LIMIT 1
|
208
|
-
[1m[36mSQL (0.6ms)[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 10], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
209
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
210
|
-
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
211
|
-
Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
|
212
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
213
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
214
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
215
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
216
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
217
|
-
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
218
|
-
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
219
|
-
[1m[35m (0.5ms)[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'
|
220
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 11], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
221
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
222
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
223
|
-
[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" = 11) LIMIT 1
|
224
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 11], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
225
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
226
|
-
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
227
|
-
Parameters: {"type"=>"NewPostNotification"}
|
228
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* 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
|
229
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
230
|
-
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 3]]
|
231
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
232
|
-
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
233
|
-
Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
|
234
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
|
235
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
236
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
237
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
238
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
239
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
240
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241
|
-
[1m[35m (0.4ms)[0m SELECT 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'
|
242
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 12], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
243
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
244
|
-
[1m[36mNotifyUser::UserHash Load (0.8ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 12 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
245
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
246
|
-
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA' LIMIT 1[0m
|
247
|
-
[1m[35mSQL (0.9ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 12], ["target_type", "User"], ["token", "M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
248
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
249
|
-
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
250
|
-
Parameters: {"type"=>"NewPostNotification", "token"=>"M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA"}
|
251
|
-
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
252
|
-
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
253
|
-
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 12]]
|
254
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
255
|
-
[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" = 12) LIMIT 1
|
256
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 12], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
257
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
258
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
259
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 1 [["active", false], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
260
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
261
|
-
Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 3.7ms)
|
262
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
|
263
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
264
|
-
[1m[35m (0.2ms)[0m BEGIN
|
265
|
-
[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' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
266
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
267
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
268
|
-
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
269
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
270
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
271
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
272
|
-
[1m[35m (0.1ms)[0m BEGIN
|
273
|
-
[1m[36mNotifyUser::UserHash Load (0.8ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
274
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
275
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
276
|
-
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
277
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
278
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
279
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
280
|
-
[1m[35m (0.1ms)[0m BEGIN
|
281
|
-
[1m[36mNotifyUser::UserHash Load (0.8ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
282
|
-
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
283
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
284
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
285
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
286
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
287
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
288
|
-
[1m[35m (0.2ms)[0m BEGIN
|
289
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
290
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
291
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
292
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
293
|
-
[1m[36m (0.4ms)[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
|
294
|
-
[1m[35mSQL (1.0ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 13], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
295
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
296
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
297
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
298
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
299
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
300
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
301
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
302
|
-
[1m[35m (0.4ms)[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'
|
303
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 14], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
304
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
305
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
306
|
-
[1m[35m (0.1ms)[0m BEGIN
|
307
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
308
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
309
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
310
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
311
|
-
[1m[36m (0.4ms)[0m [1mSELECT 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'[0m
|
312
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 15], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
313
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
314
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
315
|
-
[1m[36m (0.4ms)[0m [1mSELECT 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'[0m
|
316
|
-
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 20 [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
317
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
318
|
-
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
319
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
320
|
-
[1m[35m (0.1ms)[0m BEGIN
|
321
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
322
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
323
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
325
|
-
[1m[36m (0.6ms)[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
|
326
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 16], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
327
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
328
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
329
|
-
[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
|
330
|
-
[1m[35mSQL (1.2ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 21 [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
331
|
-
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
332
|
-
[1m[35mNewPostNotification Load (0.7ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
333
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
334
|
-
[1m[35m (0.1ms)[0m BEGIN
|
335
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
336
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
337
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
338
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
339
|
-
[1m[36m (0.4ms)[0m [1mSELECT 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'[0m
|
340
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 17], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
341
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
342
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
343
|
-
[1m[36m (0.4ms)[0m [1mSELECT 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'[0m
|
344
|
-
[1m[35mSQL (0.9ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 22 [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
345
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
346
|
-
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
347
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
348
|
-
[1m[35m (0.1ms)[0m BEGIN
|
349
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
350
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
351
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
352
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
353
|
-
[1m[36m (0.5ms)[0m [1mSELECT 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'[0m
|
354
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 18], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
355
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
356
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
357
|
-
[1m[36m (0.5ms)[0m [1mSELECT 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'[0m
|
358
|
-
[1m[35mSQL (1.1ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 23 [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
359
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
360
|
-
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
361
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
362
|
-
[1m[35m (0.2ms)[0m BEGIN
|
363
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
364
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
365
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
366
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
367
|
-
[1m[36m (0.4ms)[0m [1mSELECT 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'[0m
|
368
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 19], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
369
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
370
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
371
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
372
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
373
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
374
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
375
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
376
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
377
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
378
|
-
[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'
|
379
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 20], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
380
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
381
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
382
|
-
[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'
|
383
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
384
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 20 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 25)
|
385
|
-
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 25]]
|
386
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 20]]
|
387
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 20 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
388
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
389
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 20]]
|
390
|
-
[1m[35m (0.5ms)[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'
|
391
|
-
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 25[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
392
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
393
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
394
|
-
[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'
|
395
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
396
|
-
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 25 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
397
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 20]]
|
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" = 'action_mailer'
|
399
|
-
[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" = 25 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
400
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 20]]
|
401
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
402
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
403
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
404
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
405
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
406
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
407
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
408
|
-
[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'
|
409
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 21], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
410
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
411
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
412
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 21 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
413
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
414
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 21 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 26)
|
415
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
416
|
-
[1m[35m (0.6ms)[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[36mSQL (0.7ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 21], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
418
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
419
|
-
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 21 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 27)[0m
|
420
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
421
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
422
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
423
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
424
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
425
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
426
|
-
[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'
|
427
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 22], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
428
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
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[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 22], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
432
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
433
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 29]]
|
434
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 22]]
|
435
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 22 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
436
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
437
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 22]]
|
438
|
-
[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'
|
439
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 28[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
440
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
441
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
442
|
-
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 22]]
|
443
|
-
[1m[36m (0.5ms)[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
|
444
|
-
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 29 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
445
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
446
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
447
|
-
[1m[36m (0.4ms)[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
|
448
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
449
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
450
|
-
[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'
|
451
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
452
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
453
|
-
[1m[36mNotifyUser::UserHash Load (0.8ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 22 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
454
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
455
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '9tnENa7G-HQVTO3EhTWl7ADiNNKeAMIo5jndQVygrlKQ' LIMIT 1[0m
|
456
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 22], ["target_type", "User"], ["token", "9tnENa7G-HQVTO3EhTWl7ADiNNKeAMIo5jndQVygrlKQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
457
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
458
|
-
|
459
|
-
Sent mail to user@example.com (10.7ms)
|
460
|
-
Date: Mon, 28 Apr 2014 11:55:43 +1000
|
461
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
462
|
-
To: user@example.com
|
463
|
-
Message-ID: <535db51f6c70a_7503fdda542dbec85a1@wp.local.mail>
|
464
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
465
|
-
Mime-Version: 1.0
|
466
|
-
Content-Type: text/html;
|
467
|
-
charset=UTF-8
|
468
|
-
Content-Transfer-Encoding: quoted-printable
|
469
|
-
|
470
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
471
|
-
tml4/strict.dtd">
|
472
|
-
<html>
|
473
|
-
<head>
|
474
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
475
|
-
"/>
|
476
|
-
<title></title>
|
477
|
-
</head>
|
478
|
-
|
479
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
480
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
481
|
-
ing: optimizeLegibility;">
|
482
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
483
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
484
|
-
Logo
|
485
|
-
</div>
|
486
|
-
</div>
|
487
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
488
|
-
">
|
489
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
490
|
-
=
|
491
|
-
|
492
|
-
<div>
|
493
|
-
New Post Notification happened. =
|
494
|
-
|
495
|
-
</div>
|
496
|
-
<div>
|
497
|
-
New Post Notification happened. =
|
498
|
-
|
499
|
-
</div>
|
500
|
-
|
501
|
-
</div>
|
502
|
-
</div>
|
503
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
504
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
505
|
-
<p style=3D"text-align: center;">
|
506
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
507
|
-
_unsubscribe?token=3D9tnENa7G-HQVTO3EhTWl7ADiNNKeAMIo5jndQVygrlKQ&typ=
|
508
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
509
|
-
</p>
|
510
|
-
<p style=3D"text-align: center;">
|
511
|
-
This is the default generated layout. A privacy declaration could g=
|
512
|
-
o here.
|
513
|
-
</p>
|
514
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
515
|
-
=C2=A9 MyCompany Pty Ltd
|
516
|
-
</p>
|
517
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
518
|
-
ABN 123 456 789
|
519
|
-
</p>
|
520
|
-
</div>
|
521
|
-
</div>
|
522
|
-
</body>
|
523
|
-
</html>=
|
524
|
-
|
525
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
526
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
527
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
528
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
529
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
530
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
531
|
-
[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'
|
532
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 23], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
533
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
534
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 30]]
|
535
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 23]]
|
536
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 23 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
537
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
538
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 23]]
|
539
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
540
|
-
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 30[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
541
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
542
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
543
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
544
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
545
|
-
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 30 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
546
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 23]]
|
547
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
548
|
-
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 23 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
549
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
550
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'zzd6w9ekLF3Wla4MYXDEBgOf4pSB6hIi8Tu7NFXrpxaA' LIMIT 1[0m
|
551
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 23], ["target_type", "User"], ["token", "zzd6w9ekLF3Wla4MYXDEBgOf4pSB6hIi8Tu7NFXrpxaA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
552
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
553
|
-
|
554
|
-
Sent mail to user@example.com (8.7ms)
|
555
|
-
Date: Mon, 28 Apr 2014 11:55:43 +1000
|
556
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
557
|
-
To: user@example.com
|
558
|
-
Message-ID: <535db51f8774f_7503fdda542dbec8663@wp.local.mail>
|
559
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
560
|
-
Mime-Version: 1.0
|
561
|
-
Content-Type: text/html;
|
562
|
-
charset=UTF-8
|
563
|
-
Content-Transfer-Encoding: quoted-printable
|
564
|
-
|
565
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
566
|
-
tml4/strict.dtd">
|
567
|
-
<html>
|
568
|
-
<head>
|
569
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
570
|
-
"/>
|
571
|
-
<title></title>
|
572
|
-
</head>
|
573
|
-
|
574
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
575
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
576
|
-
ing: optimizeLegibility;">
|
577
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
578
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
579
|
-
Logo
|
580
|
-
</div>
|
581
|
-
</div>
|
582
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
583
|
-
">
|
584
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
585
|
-
New Post Notification happened.
|
586
|
-
|
587
|
-
</div>
|
588
|
-
</div>
|
589
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
590
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
591
|
-
<p style=3D"text-align: center;">
|
592
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
593
|
-
_unsubscribe?token=3Dzzd6w9ekLF3Wla4MYXDEBgOf4pSB6hIi8Tu7NFXrpxaA&typ=
|
594
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
595
|
-
</p>
|
596
|
-
<p style=3D"text-align: center;">
|
597
|
-
This is the default generated layout. A privacy declaration could g=
|
598
|
-
o here.
|
599
|
-
</p>
|
600
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
601
|
-
=C2=A9 MyCompany Pty Ltd
|
602
|
-
</p>
|
603
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
604
|
-
ABN 123 456 789
|
605
|
-
</p>
|
606
|
-
</div>
|
607
|
-
</div>
|
608
|
-
</body>
|
609
|
-
</html>=
|
610
|
-
|
611
|
-
[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" = 'apns'
|
612
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
613
|
-
[1m[35m (0.1ms)[0m BEGIN
|
614
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
615
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
616
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
617
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
618
|
-
[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" = 24) LIMIT 1[0m
|
619
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 24], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
620
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
621
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
622
|
-
[1m[36m (0.4ms)[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
|
623
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
624
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
625
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
626
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
627
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
628
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
629
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
630
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
631
|
-
[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'
|
632
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 25], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
633
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
634
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 31 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
635
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 25]]
|
636
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 25 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
637
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
638
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
639
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
640
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
641
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
642
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
643
|
-
[1m[35m (0.4ms)[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'
|
644
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 26], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
645
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
646
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
647
|
-
[1m[35m (0.4ms)[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'
|
648
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 26], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
649
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
650
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 33]]
|
651
|
-
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 26]]
|
652
|
-
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 26 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
653
|
-
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
654
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 26]]
|
655
|
-
[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'
|
656
|
-
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 32[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
657
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
658
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
659
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 26]]
|
660
|
-
[1m[36m (0.6ms)[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
|
661
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 33 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
662
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
663
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
664
|
-
[1m[36m (0.6ms)[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
|
665
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
666
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
667
|
-
[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'
|
668
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
669
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
670
|
-
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 26 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
671
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
672
|
-
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3pCdVjcojoGfTyuLR6ivYghvUBtCLadek_AsvRbU1ufA' LIMIT 1[0m
|
673
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 26], ["target_type", "User"], ["token", "3pCdVjcojoGfTyuLR6ivYghvUBtCLadek_AsvRbU1ufA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
674
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
675
|
-
|
676
|
-
Sent mail to user@example.com (8.5ms)
|
677
|
-
Date: Mon, 28 Apr 2014 11:55:43 +1000
|
678
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
679
|
-
To: user@example.com
|
680
|
-
Message-ID: <535db51f9e9e7_7503fdda542dbec872a@wp.local.mail>
|
681
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
682
|
-
Mime-Version: 1.0
|
683
|
-
Content-Type: text/html;
|
684
|
-
charset=UTF-8
|
685
|
-
Content-Transfer-Encoding: quoted-printable
|
686
|
-
|
687
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
688
|
-
tml4/strict.dtd">
|
689
|
-
<html>
|
690
|
-
<head>
|
691
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
692
|
-
"/>
|
693
|
-
<title></title>
|
694
|
-
</head>
|
695
|
-
|
696
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
697
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
698
|
-
ing: optimizeLegibility;">
|
699
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
700
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
701
|
-
Logo
|
702
|
-
</div>
|
703
|
-
</div>
|
704
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
705
|
-
">
|
706
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
707
|
-
=
|
708
|
-
|
709
|
-
<div>
|
710
|
-
New Post Notification happened. =
|
711
|
-
|
712
|
-
</div>
|
713
|
-
<div>
|
714
|
-
New Post Notification happened. =
|
715
|
-
|
716
|
-
</div>
|
717
|
-
|
718
|
-
</div>
|
719
|
-
</div>
|
720
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
721
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
722
|
-
<p style=3D"text-align: center;">
|
723
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
724
|
-
_unsubscribe?token=3D3pCdVjcojoGfTyuLR6ivYghvUBtCLadek_AsvRbU1ufA&typ=
|
725
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
726
|
-
</p>
|
727
|
-
<p style=3D"text-align: center;">
|
728
|
-
This is the default generated layout. A privacy declaration could g=
|
729
|
-
o here.
|
730
|
-
</p>
|
731
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
732
|
-
=C2=A9 MyCompany Pty Ltd
|
733
|
-
</p>
|
734
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
735
|
-
ABN 123 456 789
|
736
|
-
</p>
|
737
|
-
</div>
|
738
|
-
</div>
|
739
|
-
</body>
|
740
|
-
</html>=
|
741
|
-
|
742
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
743
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
744
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
745
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
746
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
747
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
748
|
-
[1m[35m (0.5ms)[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" = 'NewPostNotification'
|
749
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 27], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
750
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
751
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 34]]
|
752
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]]
|
753
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 27 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
754
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
755
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 27]]
|
756
|
-
[1m[35m (0.5ms)[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" = 'NewPostNotification'
|
757
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 34[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
758
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
759
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
760
|
-
[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" = 'NewPostNotification'
|
761
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
762
|
-
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 34 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
763
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 27]]
|
764
|
-
[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'
|
765
|
-
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 27 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
766
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
767
|
-
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'dz1Hax8nhBMc9oOPl1tYYg5RiQM7RcMjDJZouSPEy0Rg' LIMIT 1[0m
|
768
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 27], ["target_type", "User"], ["token", "dz1Hax8nhBMc9oOPl1tYYg5RiQM7RcMjDJZouSPEy0Rg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
769
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
770
|
-
|
771
|
-
Sent mail to user@example.com (9.5ms)
|
772
|
-
Date: Mon, 28 Apr 2014 11:55:43 +1000
|
773
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
774
|
-
To: user@example.com
|
775
|
-
Message-ID: <535db51faa8cd_7503fdda542dbec884b@wp.local.mail>
|
776
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
777
|
-
Mime-Version: 1.0
|
778
|
-
Content-Type: text/html;
|
779
|
-
charset=UTF-8
|
780
|
-
Content-Transfer-Encoding: quoted-printable
|
781
|
-
|
782
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
783
|
-
tml4/strict.dtd">
|
784
|
-
<html>
|
785
|
-
<head>
|
786
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
787
|
-
"/>
|
788
|
-
<title></title>
|
789
|
-
</head>
|
790
|
-
|
791
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
792
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
793
|
-
ing: optimizeLegibility;">
|
794
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
795
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
796
|
-
Logo
|
797
|
-
</div>
|
798
|
-
</div>
|
799
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
800
|
-
">
|
801
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
802
|
-
New Post Notification happened.
|
803
|
-
|
804
|
-
</div>
|
805
|
-
</div>
|
806
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
807
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
808
|
-
<p style=3D"text-align: center;">
|
809
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
810
|
-
_unsubscribe?token=3Ddz1Hax8nhBMc9oOPl1tYYg5RiQM7RcMjDJZouSPEy0Rg&typ=
|
811
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
812
|
-
</p>
|
813
|
-
<p style=3D"text-align: center;">
|
814
|
-
This is the default generated layout. A privacy declaration could g=
|
815
|
-
o here.
|
816
|
-
</p>
|
817
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
818
|
-
=C2=A9 MyCompany Pty Ltd
|
819
|
-
</p>
|
820
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
821
|
-
ABN 123 456 789
|
822
|
-
</p>
|
823
|
-
</div>
|
824
|
-
</div>
|
825
|
-
</body>
|
826
|
-
</html>=
|
827
|
-
|
828
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
829
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
830
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
831
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
832
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
833
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
834
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
835
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 28], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
836
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
837
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
838
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
839
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
840
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
841
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
842
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
843
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 35[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
844
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
845
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
846
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
847
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
848
|
-
[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" = 35 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
849
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 28]]
|
850
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
851
|
-
[1m[36m (0.3ms)[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" = 'apns'[0m
|
852
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
853
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
854
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
855
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
856
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
857
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
858
|
-
[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" = 29) LIMIT 1
|
859
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 29], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
860
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
861
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
862
|
-
[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'
|
863
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
864
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
865
|
-
[1m[36m (0.4ms)[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
|
866
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
867
|
-
[1m[36m (0.3ms)[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
|
868
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
869
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
870
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
871
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
872
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
873
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
874
|
-
[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" = 30) LIMIT 1
|
875
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 30], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
876
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
877
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
878
|
-
[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'
|
879
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 30], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
880
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
881
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
882
|
-
[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'
|
883
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
884
|
-
[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'
|
885
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
886
|
-
[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'
|
887
|
-
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 36[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
888
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
889
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
890
|
-
[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'
|
891
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
892
|
-
[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" = 36 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
893
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 30]]
|
894
|
-
[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" = 'action_mailer'
|
895
|
-
[1m[36m (0.3ms)[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
|
896
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
897
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
898
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
899
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
900
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
901
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
902
|
-
[1m[35m (0.4ms)[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'
|
903
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 31], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
904
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
905
|
-
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 31 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
906
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
907
|
-
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '49hY-f9bkFaOYZCM3bqlJQ0CjRiRGdJKen05y1a6k6qw' LIMIT 1[0m
|
908
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 31], ["target_type", "User"], ["token", "49hY-f9bkFaOYZCM3bqlJQ0CjRiRGdJKen05y1a6k6qw"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
909
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
910
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
911
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
912
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
913
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
914
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
915
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
916
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 32 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
917
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 32], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
918
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
919
|
-
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 32 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
920
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
921
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3VI6EOEYwBtFzmJ7Dtq3igo8DYJqrzOFCc4ZW31XBy-g' LIMIT 1[0m
|
922
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 32], ["target_type", "User"], ["token", "3VI6EOEYwBtFzmJ7Dtq3igo8DYJqrzOFCc4ZW31XBy-g"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
923
|
-
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
924
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 32 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
925
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
926
|
-
[1m[35m (0.1ms)[0m BEGIN
|
927
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
928
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
929
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
930
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
931
|
-
[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
|
932
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 33], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
933
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
934
|
-
[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' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
935
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
936
|
-
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '6tZ0vCrcGTmMjLSIRd8EHQUTxezSxgCkR1z2gWhZnlIQ' LIMIT 1
|
937
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 33], ["target_type", "User"], ["token", "6tZ0vCrcGTmMjLSIRd8EHQUTxezSxgCkR1z2gWhZnlIQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
938
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
939
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
940
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 8 [["active", false], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
941
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
942
|
-
[1m[35mNotifyUser::UserHash Load (0.7ms)[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' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
943
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
944
|
-
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'FKuj9ZzD5VBZqG3WJlHw8wLQYnsDvp6azn8fbBbJwiYg' LIMIT 1
|
945
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 33], ["target_type", "User"], ["token", "FKuj9ZzD5VBZqG3WJlHw8wLQYnsDvp6azn8fbBbJwiYg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
946
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
947
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
948
|
-
[1m[35m (0.2ms)[0m BEGIN
|
949
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
950
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
951
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
952
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
953
|
-
[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" = 34) LIMIT 1[0m
|
954
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 34], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
955
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
956
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
957
|
-
[1m[36mNotifyUser::Unsubscribe Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 34) LIMIT 1[0m
|
958
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
959
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
960
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 34 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
961
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
962
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
963
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
964
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
965
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
966
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
967
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
968
|
-
[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" = 35) LIMIT 1
|
969
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 35], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
970
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
971
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
972
|
-
[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" != 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 35) LIMIT 1
|
973
|
-
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
974
|
-
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
975
|
-
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'UnsubscribableNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 35) LIMIT 1[0m
|
976
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
977
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
978
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
979
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
980
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
981
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
982
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
983
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
984
|
-
[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" = 36) LIMIT 1
|
985
|
-
[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 36], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
986
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
987
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
988
|
-
[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"."id" != 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 36) LIMIT 1
|
989
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
990
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
991
|
-
[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" = 36) LIMIT 1[0m
|
992
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
993
|
-
[1m[36m (0.5ms)[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
|
994
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 36 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
995
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
996
|
-
[1m[35mSQL (0.3ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 10]]
|
997
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
998
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 36 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
999
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1000
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1001
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1002
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1003
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1004
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1005
|
-
[1m[36m (0.5ms)[0m [1mSELECT 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'[0m
|
1006
|
-
[1m[35mSQL (0.9ms)[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", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 37], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1007
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1008
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1009
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1010
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1011
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1012
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1013
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1014
|
-
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EuBzFJ3yNx4i9cDYauEXLw7LhLmqtC-Q8OzhONkeq0RQ' LIMIT 1
|
1015
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 38], ["target_type", "User"], ["token", "EuBzFJ3yNx4i9cDYauEXLw7LhLmqtC-Q8OzhONkeq0RQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1016
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1017
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1018
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1019
|
-
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EuBzFJ3yNx4i9cDYauEXLw7LhLmqtC-Q8OzhONkeq0RQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
1020
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1021
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1022
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1023
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1024
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1025
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1026
|
-
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'l3_y0_cAts5KXpFuTAfKbQr0VZViDS2YFU0PWUL-W36A' LIMIT 1
|
1027
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 39], ["target_type", "User"], ["token", "l3_y0_cAts5KXpFuTAfKbQr0VZViDS2YFU0PWUL-W36A"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1028
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1029
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1030
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1031
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1032
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 11 [["active", false], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1033
|
-
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1034
|
-
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'l3_y0_cAts5KXpFuTAfKbQr0VZViDS2YFU0PWUL-W36A' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
1035
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1036
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1037
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1038
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1039
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1040
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1041
|
-
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'b9vNh5R1E1f53mhp2l03lwfTf6hOyFURE4VXMXIjn4oQ' LIMIT 1[0m
|
1042
|
-
[1m[35mSQL (1.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 40], ["target_type", "User"], ["token", "b9vNh5R1E1f53mhp2l03lwfTf6hOyFURE4VXMXIjn4oQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1043
|
-
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1044
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1045
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1046
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1047
|
-
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 12[0m [["active", false], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1048
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1049
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1050
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1051
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1052
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1053
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1054
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1055
|
-
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7YqpCDG-rQ9mV__JfpIxkga6J2lXc9Z5FQl7LFdU_sKw' LIMIT 1[0m
|
1056
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 41], ["target_type", "User"], ["token", "7YqpCDG-rQ9mV__JfpIxkga6J2lXc9Z5FQl7LFdU_sKw"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
|
1057
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1058
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1059
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1060
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1061
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1062
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1063
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1064
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1065
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1066
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1067
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1068
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1069
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1070
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1071
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1072
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1073
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1074
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1075
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1076
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1077
|
-
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1078
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1079
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
1080
|
-
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
|
1081
|
-
Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.0ms)
|
1082
|
-
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1083
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1084
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1085
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1086
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1087
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1088
|
-
[1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 43 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1089
|
-
[1m[35mSQL (1.9ms)[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 43], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1090
|
-
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1091
|
-
Processing by NotifyUser::NotificationsController#index as JSON
|
1092
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 43 AND "notify_user_notifications"."target_type" = 'User'
|
1093
|
-
[1m[36mNotifyUser::BaseNotification Load (0.9ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 43 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
1094
|
-
Completed 200 OK in 16ms (Views: 10.7ms | ActiveRecord: 1.5ms)
|
1095
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1096
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1097
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1098
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1099
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1100
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1101
|
-
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1102
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1103
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1104
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1105
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1106
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1107
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1108
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1109
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1110
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1111
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1112
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
1113
|
-
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 44 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
1114
|
-
Completed 200 OK in 45ms (Views: 42.8ms | ActiveRecord: 0.8ms)
|
1115
|
-
[1m[35m (0.3ms)[0m ROLLBACK
|
1116
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1117
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1118
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1119
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1120
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1121
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1122
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1123
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1124
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1125
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1126
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1127
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1128
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1129
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1130
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1131
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1132
|
-
Processing by NotifyUser::NotificationsController#read as HTML
|
1133
|
-
Parameters: {"id"=>"45"}
|
1134
|
-
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 45 AND "notify_user_notifications"."target_type" = 'User' AND (id = '45') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
1135
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1136
|
-
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 45]]
|
1137
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1138
|
-
[1m[36mSQL (1.0ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 45[0m [["state", "read"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1139
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1140
|
-
Completed 200 OK in 16ms (Views: 1.7ms | ActiveRecord: 3.1ms)
|
1141
|
-
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 45 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
1142
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1143
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1144
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1145
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1146
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1147
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1148
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1149
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1150
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1151
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1152
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1153
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1154
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1155
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1156
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1157
|
-
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1158
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1159
|
-
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
1160
|
-
[1m[36mSQL (1.0ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 46 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
|
1161
|
-
Redirected to http://test.host/notify_user/notifications
|
1162
|
-
Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
|
1163
|
-
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 46 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
|
1164
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1165
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1166
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1167
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1168
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1169
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1170
|
-
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 47 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1171
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 47], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1172
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1173
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
1174
|
-
Parameters: {"ids"=>["51"]}
|
1175
|
-
[1m[35mSQL (0.5ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 47 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('51'))
|
1176
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 47 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('51'))[0m
|
1177
|
-
Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 1.0ms)
|
1178
|
-
[1m[35mNewPostNotification Load (0.7ms)[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", 51]]
|
1179
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1180
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1181
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1182
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1183
|
-
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1184
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1185
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 48 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1186
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 48], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1187
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1188
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
1189
|
-
Parameters: {"ids"=>["52"]}
|
1190
|
-
[1m[35mSQL (0.5ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 48 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('52'))
|
1191
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 48 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('52'))[0m
|
1192
|
-
Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.9ms)
|
1193
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1194
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1195
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1196
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1197
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1198
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1199
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1200
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 49], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1201
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1202
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1203
|
-
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
1204
|
-
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
1205
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1206
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1207
|
-
[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" = 49) LIMIT 1
|
1208
|
-
[1m[36mSQL (1.0ms)[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 49], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1209
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1210
|
-
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
1211
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1212
|
-
Completed 200 OK in 28ms (Views: 0.5ms | ActiveRecord: 3.3ms)
|
1213
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1214
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1215
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1216
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1217
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1218
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1219
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1220
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1221
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 50], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1222
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1223
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1224
|
-
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
1225
|
-
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
1226
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1227
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
1228
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1229
|
-
Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.2ms)
|
1230
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1231
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1232
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1233
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1234
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1235
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1236
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1237
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 51 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1238
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 51], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1239
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1240
|
-
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
1241
|
-
Parameters: {"type"=>"NewPostNotification"}
|
1242
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1243
|
-
[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" = 51) LIMIT 1
|
1244
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 51], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1245
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1246
|
-
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
1247
|
-
Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
|
1248
|
-
[1m[36mNotifyUser::Unsubscribe Load (1.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
1249
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1250
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1251
|
-
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1252
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1253
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1254
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1255
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 52 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1256
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 52], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1257
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1258
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1259
|
-
[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" = 52) LIMIT 1
|
1260
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 52], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1261
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1262
|
-
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
1263
|
-
Parameters: {"type"=>"NewPostNotification"}
|
1264
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 52 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1265
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1266
|
-
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 13]]
|
1267
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1268
|
-
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
1269
|
-
Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
|
1270
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
|
1271
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1272
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1273
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1274
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1275
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1276
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1277
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 53 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1278
|
-
[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 53], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1279
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1280
|
-
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 53 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1281
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1282
|
-
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' LIMIT 1[0m
|
1283
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 53], ["target_type", "User"], ["token", "biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1284
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1285
|
-
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
1286
|
-
Parameters: {"type"=>"NewPostNotification", "token"=>"biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA"}
|
1287
|
-
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
1288
|
-
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1289
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]
|
1290
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1291
|
-
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[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" = 53) LIMIT 1
|
1292
|
-
[1m[36mSQL (0.6ms)[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", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 53], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1293
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1294
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1295
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 14 [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1296
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1297
|
-
Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 3.3ms)
|
1298
|
-
[1m[35mNotifyUser::UserHash Load (0.3ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
|
1299
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1300
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1301
|
-
[1m[36mNotifyUser::UserHash Load (0.8ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1302
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1303
|
-
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1304
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
1305
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1306
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1307
|
-
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1308
|
-
[1m[35m (0.2ms)[0m BEGIN
|
1309
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1310
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1311
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1312
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
1313
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1314
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1315
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1316
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1317
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1318
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1319
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1320
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
1321
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1322
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1323
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1324
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1325
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1326
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1327
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1328
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1329
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 54 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1330
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 54], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1331
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1332
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1333
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1334
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1335
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1336
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1337
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1338
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 55 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1339
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 55], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1340
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1341
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1342
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1343
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1344
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1345
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1346
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1347
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 56 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1348
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 56], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1349
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1350
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1351
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 56 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1352
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 60 [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1353
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1354
|
-
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
1355
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1356
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1357
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1358
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1359
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1360
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1361
|
-
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 57 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1362
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 57], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1363
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1364
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1365
|
-
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 57 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1366
|
-
[1m[35mSQL (0.9ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 61 [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1367
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1368
|
-
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
1369
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1370
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1371
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1372
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1373
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1374
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1375
|
-
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 58 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1376
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 58], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1377
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1378
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1379
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 58 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1380
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 62 [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1381
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1382
|
-
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
1383
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1384
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1385
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1386
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1387
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1388
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1389
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 59 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1390
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 59], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1391
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1392
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1393
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 59 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1394
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 63 [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1395
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1396
|
-
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
1397
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1398
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1399
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1400
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1401
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1402
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1403
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 60 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1404
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 60], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1405
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1406
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1407
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1408
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1409
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1410
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1411
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1412
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1413
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1414
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1415
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 61], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1416
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1417
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1418
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1419
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1420
|
-
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 61 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 65)
|
1421
|
-
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 65]]
|
1422
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]]
|
1423
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 61 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
1424
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1425
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 61]]
|
1426
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1427
|
-
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 65[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1428
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1429
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1430
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1431
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1432
|
-
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 65 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
1433
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 61]]
|
1434
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
1435
|
-
[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" = 65 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
1436
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]]
|
1437
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
1438
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1439
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1440
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1441
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1442
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1443
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1444
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1445
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 62], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1446
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1447
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1448
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1449
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1450
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 62 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 66)
|
1451
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1452
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1453
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 62], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1454
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1455
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 62 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 67)[0m
|
1456
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1457
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1458
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1459
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1460
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1461
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1462
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1463
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 63], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1464
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1465
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1466
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1467
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 63], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1468
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1469
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 69]]
|
1470
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]]
|
1471
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 63 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
1472
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1473
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 63]]
|
1474
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1475
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 68[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1476
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1477
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1478
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]]
|
1479
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1480
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 69 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1481
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1482
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1483
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1484
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1485
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1486
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1487
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1488
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
1489
|
-
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 63 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1490
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1491
|
-
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'jLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ' LIMIT 1[0m
|
1492
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 63], ["target_type", "User"], ["token", "jLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1493
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1494
|
-
|
1495
|
-
Sent mail to user@example.com (8.3ms)
|
1496
|
-
Date: Mon, 28 Apr 2014 14:17:56 +1000
|
1497
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
1498
|
-
To: user@example.com
|
1499
|
-
Message-ID: <535dd674da3a2_13513fefc482dbf869595@wp.local.mail>
|
1500
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
1501
|
-
Mime-Version: 1.0
|
1502
|
-
Content-Type: text/html;
|
1503
|
-
charset=UTF-8
|
1504
|
-
Content-Transfer-Encoding: quoted-printable
|
1505
|
-
|
1506
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
1507
|
-
tml4/strict.dtd">
|
1508
|
-
<html>
|
1509
|
-
<head>
|
1510
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
1511
|
-
"/>
|
1512
|
-
<title></title>
|
1513
|
-
</head>
|
1514
|
-
|
1515
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
1516
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
1517
|
-
ing: optimizeLegibility;">
|
1518
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
1519
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
1520
|
-
Logo
|
1521
|
-
</div>
|
1522
|
-
</div>
|
1523
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
1524
|
-
">
|
1525
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
1526
|
-
=
|
1527
|
-
|
1528
|
-
<div>
|
1529
|
-
New Post Notification happened. =
|
1530
|
-
|
1531
|
-
</div>
|
1532
|
-
<div>
|
1533
|
-
New Post Notification happened. =
|
1534
|
-
|
1535
|
-
</div>
|
1536
|
-
|
1537
|
-
</div>
|
1538
|
-
</div>
|
1539
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
1540
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
1541
|
-
<p style=3D"text-align: center;">
|
1542
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
1543
|
-
_unsubscribe?token=3DjLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ&typ=
|
1544
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
1545
|
-
</p>
|
1546
|
-
<p style=3D"text-align: center;">
|
1547
|
-
This is the default generated layout. A privacy declaration could g=
|
1548
|
-
o here.
|
1549
|
-
</p>
|
1550
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
1551
|
-
=C2=A9 MyCompany Pty Ltd
|
1552
|
-
</p>
|
1553
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
1554
|
-
ABN 123 456 789
|
1555
|
-
</p>
|
1556
|
-
</div>
|
1557
|
-
</div>
|
1558
|
-
</body>
|
1559
|
-
</html>=
|
1560
|
-
|
1561
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1562
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1563
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1564
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1565
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1566
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1567
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1568
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 64], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1569
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1570
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 70]]
|
1571
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 64]]
|
1572
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 64 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
1573
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1574
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 64]]
|
1575
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1576
|
-
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 70[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1577
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1578
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1579
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1580
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1581
|
-
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 70 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
1582
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 64]]
|
1583
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
1584
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 64 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1585
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1586
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Xs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg' LIMIT 1[0m
|
1587
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 64], ["target_type", "User"], ["token", "Xs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1588
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1589
|
-
|
1590
|
-
Sent mail to user@example.com (18.0ms)
|
1591
|
-
Date: Mon, 28 Apr 2014 14:17:56 +1000
|
1592
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
1593
|
-
To: user@example.com
|
1594
|
-
Message-ID: <535dd674e6514_13513fefc482dbf86961c@wp.local.mail>
|
1595
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
1596
|
-
Mime-Version: 1.0
|
1597
|
-
Content-Type: text/html;
|
1598
|
-
charset=UTF-8
|
1599
|
-
Content-Transfer-Encoding: quoted-printable
|
1600
|
-
|
1601
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
1602
|
-
tml4/strict.dtd">
|
1603
|
-
<html>
|
1604
|
-
<head>
|
1605
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
1606
|
-
"/>
|
1607
|
-
<title></title>
|
1608
|
-
</head>
|
1609
|
-
|
1610
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
1611
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
1612
|
-
ing: optimizeLegibility;">
|
1613
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
1614
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
1615
|
-
Logo
|
1616
|
-
</div>
|
1617
|
-
</div>
|
1618
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
1619
|
-
">
|
1620
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
1621
|
-
New Post Notification happened.
|
1622
|
-
|
1623
|
-
</div>
|
1624
|
-
</div>
|
1625
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
1626
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
1627
|
-
<p style=3D"text-align: center;">
|
1628
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
1629
|
-
_unsubscribe?token=3DXs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg&typ=
|
1630
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
1631
|
-
</p>
|
1632
|
-
<p style=3D"text-align: center;">
|
1633
|
-
This is the default generated layout. A privacy declaration could g=
|
1634
|
-
o here.
|
1635
|
-
</p>
|
1636
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
1637
|
-
=C2=A9 MyCompany Pty Ltd
|
1638
|
-
</p>
|
1639
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
1640
|
-
ABN 123 456 789
|
1641
|
-
</p>
|
1642
|
-
</div>
|
1643
|
-
</div>
|
1644
|
-
</body>
|
1645
|
-
</html>=
|
1646
|
-
|
1647
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
1648
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1649
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1650
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1651
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1652
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1653
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1654
|
-
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 65) LIMIT 1[0m
|
1655
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 65], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1656
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1657
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1658
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 65 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1659
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1660
|
-
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
1661
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1662
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1663
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1664
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1665
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1666
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1667
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 66 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1668
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 66], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1669
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1670
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 71 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
1671
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 66]]
|
1672
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 66 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
1673
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1674
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1675
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1676
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1677
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1678
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1679
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1680
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 67], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1681
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1682
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1683
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1684
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 67], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1685
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1686
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 73]]
|
1687
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]]
|
1688
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 67 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
1689
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1690
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 67]]
|
1691
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1692
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 72[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1693
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1694
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1695
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]]
|
1696
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1697
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 73 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
|
1698
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1699
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1700
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1701
|
-
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1702
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1703
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1704
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1705
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
1706
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 67 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1707
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1708
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'UDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ' LIMIT 1[0m
|
1709
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 67], ["target_type", "User"], ["token", "UDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1710
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1711
|
-
|
1712
|
-
Sent mail to user@example.com (6.2ms)
|
1713
|
-
Date: Mon, 28 Apr 2014 14:17:57 +1000
|
1714
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
1715
|
-
To: user@example.com
|
1716
|
-
Message-ID: <535dd6753a1d_13513fefc482dbf8697f5@wp.local.mail>
|
1717
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
1718
|
-
Mime-Version: 1.0
|
1719
|
-
Content-Type: text/html;
|
1720
|
-
charset=UTF-8
|
1721
|
-
Content-Transfer-Encoding: quoted-printable
|
1722
|
-
|
1723
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
1724
|
-
tml4/strict.dtd">
|
1725
|
-
<html>
|
1726
|
-
<head>
|
1727
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
1728
|
-
"/>
|
1729
|
-
<title></title>
|
1730
|
-
</head>
|
1731
|
-
|
1732
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
1733
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
1734
|
-
ing: optimizeLegibility;">
|
1735
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
1736
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
1737
|
-
Logo
|
1738
|
-
</div>
|
1739
|
-
</div>
|
1740
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
1741
|
-
">
|
1742
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
1743
|
-
=
|
1744
|
-
|
1745
|
-
<div>
|
1746
|
-
New Post Notification happened. =
|
1747
|
-
|
1748
|
-
</div>
|
1749
|
-
<div>
|
1750
|
-
New Post Notification happened. =
|
1751
|
-
|
1752
|
-
</div>
|
1753
|
-
|
1754
|
-
</div>
|
1755
|
-
</div>
|
1756
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
1757
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
1758
|
-
<p style=3D"text-align: center;">
|
1759
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
1760
|
-
_unsubscribe?token=3DUDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ&typ=
|
1761
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
1762
|
-
</p>
|
1763
|
-
<p style=3D"text-align: center;">
|
1764
|
-
This is the default generated layout. A privacy declaration could g=
|
1765
|
-
o here.
|
1766
|
-
</p>
|
1767
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
1768
|
-
=C2=A9 MyCompany Pty Ltd
|
1769
|
-
</p>
|
1770
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
1771
|
-
ABN 123 456 789
|
1772
|
-
</p>
|
1773
|
-
</div>
|
1774
|
-
</div>
|
1775
|
-
</body>
|
1776
|
-
</html>=
|
1777
|
-
|
1778
|
-
[1m[35m (0.3ms)[0m ROLLBACK
|
1779
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1780
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1781
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1782
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1783
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1784
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1785
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 68], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1786
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1787
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 74]]
|
1788
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 68]]
|
1789
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 68 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
1790
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1791
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 68]]
|
1792
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1793
|
-
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 74[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1794
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1795
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1796
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1797
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1798
|
-
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 74 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
1799
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 68]]
|
1800
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
1801
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 68 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1802
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1803
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'HFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg' LIMIT 1[0m
|
1804
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 68], ["target_type", "User"], ["token", "HFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1805
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1806
|
-
|
1807
|
-
Sent mail to user@example.com (6.1ms)
|
1808
|
-
Date: Mon, 28 Apr 2014 14:17:57 +1000
|
1809
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
1810
|
-
To: user@example.com
|
1811
|
-
Message-ID: <535dd675de40_13513fefc482dbf869861@wp.local.mail>
|
1812
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
1813
|
-
Mime-Version: 1.0
|
1814
|
-
Content-Type: text/html;
|
1815
|
-
charset=UTF-8
|
1816
|
-
Content-Transfer-Encoding: quoted-printable
|
1817
|
-
|
1818
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
1819
|
-
tml4/strict.dtd">
|
1820
|
-
<html>
|
1821
|
-
<head>
|
1822
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
1823
|
-
"/>
|
1824
|
-
<title></title>
|
1825
|
-
</head>
|
1826
|
-
|
1827
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
1828
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
1829
|
-
ing: optimizeLegibility;">
|
1830
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
1831
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
1832
|
-
Logo
|
1833
|
-
</div>
|
1834
|
-
</div>
|
1835
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
1836
|
-
">
|
1837
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
1838
|
-
New Post Notification happened.
|
1839
|
-
|
1840
|
-
</div>
|
1841
|
-
</div>
|
1842
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
1843
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
1844
|
-
<p style=3D"text-align: center;">
|
1845
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
1846
|
-
_unsubscribe?token=3DHFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg&typ=
|
1847
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
1848
|
-
</p>
|
1849
|
-
<p style=3D"text-align: center;">
|
1850
|
-
This is the default generated layout. A privacy declaration could g=
|
1851
|
-
o here.
|
1852
|
-
</p>
|
1853
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
1854
|
-
=C2=A9 MyCompany Pty Ltd
|
1855
|
-
</p>
|
1856
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
1857
|
-
ABN 123 456 789
|
1858
|
-
</p>
|
1859
|
-
</div>
|
1860
|
-
</div>
|
1861
|
-
</body>
|
1862
|
-
</html>=
|
1863
|
-
|
1864
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1865
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1866
|
-
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1867
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1868
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1869
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1870
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1871
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 69], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1872
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1873
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1874
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1875
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1876
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1877
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1878
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1879
|
-
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 75[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1880
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1881
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1882
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1883
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1884
|
-
[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" = 75 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
1885
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 69]]
|
1886
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
1887
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
1888
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1889
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1890
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1891
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1892
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1893
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1894
|
-
[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" = 70) LIMIT 1
|
1895
|
-
[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", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 70], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1896
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1897
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1898
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1899
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1900
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1901
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1902
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1903
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1904
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1905
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1906
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1907
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1908
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1909
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1910
|
-
[1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 71) LIMIT 1
|
1911
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 71], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1912
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1913
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1914
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1915
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 71], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1916
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1917
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1918
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1919
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1920
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1921
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1922
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1923
|
-
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 76[0m [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1924
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1925
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1926
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1927
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1928
|
-
[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" = 76 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
1929
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 71]]
|
1930
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
1931
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
1932
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1933
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1934
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1935
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1936
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1937
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1938
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 72 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1939
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 72], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1940
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1941
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 72 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1942
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1943
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'u6vVYVqjWS15CgIKmKI2dgMe6o_8rpah23GuguMRjeCA' LIMIT 1[0m
|
1944
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 72], ["target_type", "User"], ["token", "u6vVYVqjWS15CgIKmKI2dgMe6o_8rpah23GuguMRjeCA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1945
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1946
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
1947
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1948
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1949
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1950
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1951
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1952
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 73 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1953
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 73], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1954
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1955
|
-
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 73 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
1956
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1957
|
-
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'LSo4vY3yZkgw_czqZO_skQK76JRvmXMR8tlO0acQTCaQ' LIMIT 1[0m
|
1958
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 73], ["target_type", "User"], ["token", "LSo4vY3yZkgw_czqZO_skQK76JRvmXMR8tlO0acQTCaQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1959
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1960
|
-
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 73 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
1961
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1962
|
-
[1m[35m (0.1ms)[0m BEGIN
|
1963
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1964
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1965
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1966
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1967
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 74 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
1968
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 74], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1969
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1970
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 74 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
1971
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1972
|
-
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'kLiF3TraOs_NC2WUYqqL3AA9qkAGhimafcqgAbKbCxEg' LIMIT 1
|
1973
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 74], ["target_type", "User"], ["token", "kLiF3TraOs_NC2WUYqqL3AA9qkAGhimafcqgAbKbCxEg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1974
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1975
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1976
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 21 [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1977
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1978
|
-
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 74 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
1979
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1980
|
-
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'qQj-v-rTk15SQbxJ2b-E3AhT65qCUAA8h4Wno9TIWt-Q' LIMIT 1
|
1981
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 74], ["target_type", "User"], ["token", "qQj-v-rTk15SQbxJ2b-E3AhT65qCUAA8h4Wno9TIWt-Q"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1982
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1983
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1984
|
-
[1m[35m (0.2ms)[0m BEGIN
|
1985
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1986
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1987
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1988
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1989
|
-
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 75) LIMIT 1[0m
|
1990
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 75], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
1991
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1992
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1993
|
-
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 18 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 75) LIMIT 1[0m
|
1994
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1995
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1996
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 75 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
1997
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1998
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
1999
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2000
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2001
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2002
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2003
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2004
|
-
[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" = 76) LIMIT 1
|
2005
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 76], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2006
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2007
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2008
|
-
[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"."id" != 19 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 76) LIMIT 1
|
2009
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2010
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2011
|
-
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'UnsubscribableNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 76) LIMIT 1[0m
|
2012
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2013
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
2014
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2015
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2016
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2017
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2018
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2019
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2020
|
-
[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" = 77) LIMIT 1
|
2021
|
-
[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", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 77], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2022
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2023
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2024
|
-
[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"."id" != 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 77) LIMIT 1
|
2025
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2026
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2027
|
-
[1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 77) LIMIT 1[0m
|
2028
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2029
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2030
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2031
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2032
|
-
[1m[35mSQL (0.3ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 20]]
|
2033
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2034
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2035
|
-
[1m[36m (7.8ms)[0m [1mROLLBACK[0m
|
2036
|
-
[1m[35m (0.2ms)[0m BEGIN
|
2037
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2038
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2039
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2040
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2041
|
-
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 78 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2042
|
-
[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", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 78], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2043
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2044
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2045
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2046
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2047
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2048
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2049
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2050
|
-
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'd-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA' LIMIT 1
|
2051
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 79], ["target_type", "User"], ["token", "d-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2052
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2053
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2054
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2055
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'd-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
2056
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2057
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2058
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2059
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2060
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2061
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2062
|
-
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg' LIMIT 1
|
2063
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 80], ["target_type", "User"], ["token", "GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2064
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2065
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2066
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2067
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2068
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 24 [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2069
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2070
|
-
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
2071
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2072
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2073
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2074
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2075
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2076
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2077
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5Bx1cN73fe2A3ARgRUZx5gtvSmizmCWb7asGhAPiZNOA' LIMIT 1[0m
|
2078
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 81], ["target_type", "User"], ["token", "5Bx1cN73fe2A3ARgRUZx5gtvSmizmCWb7asGhAPiZNOA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2079
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2080
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2081
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2082
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2083
|
-
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 25[0m [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2084
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2085
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2086
|
-
[1m[35m (0.2ms)[0m BEGIN
|
2087
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2088
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2089
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2090
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2091
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mG9DpfvnCo72ppQBZMWR4wD2J5l1B-6y3Ef68ncElEAg' LIMIT 1[0m
|
2092
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 82], ["target_type", "User"], ["token", "mG9DpfvnCo72ppQBZMWR4wD2J5l1B-6y3Ef68ncElEAg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
|
2093
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2094
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2095
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2096
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2097
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2098
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2099
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2100
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2101
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2102
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2103
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2104
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2105
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2106
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2107
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2108
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2109
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2110
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2111
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2112
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2113
|
-
[1m[36mSQL (11.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2114
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2115
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
2116
|
-
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
|
2117
|
-
Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.0ms)
|
2118
|
-
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2119
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2120
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2121
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2122
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2123
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2124
|
-
[1m[36m (4.9ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 84 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2125
|
-
[1m[35mSQL (2.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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 84], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2126
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2127
|
-
Processing by NotifyUser::NotificationsController#index as JSON
|
2128
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 84 AND "notify_user_notifications"."target_type" = 'User'
|
2129
|
-
[1m[36mNotifyUser::BaseNotification Load (2.0ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 84 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
2130
|
-
Completed 200 OK in 20ms (Views: 12.2ms | ActiveRecord: 2.6ms)
|
2131
|
-
[1m[35m (0.3ms)[0m ROLLBACK
|
2132
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2133
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2134
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2135
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2136
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2137
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2138
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2139
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2140
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2141
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2142
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2143
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2144
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2145
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2146
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2147
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2148
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
2149
|
-
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 85 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
2150
|
-
Completed 200 OK in 50ms (Views: 48.1ms | ActiveRecord: 0.7ms)
|
2151
|
-
[1m[35m (0.3ms)[0m ROLLBACK
|
2152
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2153
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2154
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2155
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2156
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2157
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2158
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2159
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2160
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2161
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2162
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2163
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2164
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2165
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2166
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2167
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2168
|
-
Processing by NotifyUser::NotificationsController#read as HTML
|
2169
|
-
Parameters: {"id"=>"85"}
|
2170
|
-
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 86 AND "notify_user_notifications"."target_type" = 'User' AND (id = '85') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
2171
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2172
|
-
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 86]]
|
2173
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2174
|
-
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 85[0m [["state", "read"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2175
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2176
|
-
Completed 200 OK in 19ms (Views: 1.7ms | ActiveRecord: 2.9ms)
|
2177
|
-
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 85 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
2178
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2179
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2180
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2181
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2182
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2183
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2184
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2185
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2186
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2187
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2188
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2189
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2190
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2191
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2192
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2193
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2194
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2195
|
-
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
2196
|
-
[1m[36mSQL (2.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 87 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
|
2197
|
-
Redirected to http://test.host/notify_user/notifications
|
2198
|
-
Completed 302 Found in 4ms (ActiveRecord: 2.4ms)
|
2199
|
-
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 87 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
|
2200
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2201
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2202
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2203
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2204
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2205
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2206
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 88 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2207
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 88], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2208
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2209
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
2210
|
-
Parameters: {"ids"=>["91"]}
|
2211
|
-
[1m[35mSQL (0.5ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 88 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('91'))
|
2212
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 88 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('91'))[0m
|
2213
|
-
Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.8ms)
|
2214
|
-
[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", 91]]
|
2215
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2216
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2217
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2218
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2219
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2220
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2221
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 89 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2222
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 89], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2223
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2224
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
2225
|
-
Parameters: {"ids"=>["92"]}
|
2226
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 89 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('92'))
|
2227
|
-
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 89 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('92'))[0m
|
2228
|
-
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 1.1ms)
|
2229
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2230
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2231
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2232
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2233
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2234
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2235
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2236
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2237
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2238
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2239
|
-
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
2240
|
-
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
2241
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2242
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2243
|
-
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[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" = 90) LIMIT 1
|
2244
|
-
[1m[36mSQL (1.8ms)[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2245
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2246
|
-
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
2247
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2248
|
-
Completed 200 OK in 26ms (Views: 0.4ms | ActiveRecord: 4.4ms)
|
2249
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2250
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2251
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2252
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2253
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2254
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2255
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2256
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2257
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 91], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2258
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2259
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2260
|
-
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
2261
|
-
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
2262
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2263
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
2264
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2265
|
-
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)
|
2266
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2267
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2268
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2269
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2270
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2271
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2272
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2273
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 92 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2274
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 92], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2275
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2276
|
-
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
2277
|
-
Parameters: {"type"=>"NewPostNotification"}
|
2278
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2279
|
-
[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" = 92) LIMIT 1
|
2280
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 92], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2281
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2282
|
-
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
2283
|
-
Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
|
2284
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
2285
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2286
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2287
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2288
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2289
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2290
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2291
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2292
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 93], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2293
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2294
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2295
|
-
[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" = 93) LIMIT 1
|
2296
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 93], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2297
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2298
|
-
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
2299
|
-
Parameters: {"type"=>"NewPostNotification"}
|
2300
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2301
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2302
|
-
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 23]]
|
2303
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2304
|
-
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
2305
|
-
Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
|
2306
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
|
2307
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2308
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2309
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2310
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2311
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2312
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2313
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 94 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2314
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 94], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2315
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2316
|
-
[1m[36mNotifyUser::UserHash Load (1.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 94 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2317
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2318
|
-
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' LIMIT 1[0m
|
2319
|
-
[1m[35mSQL (1.8ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 94], ["target_type", "User"], ["token", "41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2320
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2321
|
-
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
2322
|
-
Parameters: {"type"=>"NewPostNotification", "token"=>"41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ"}
|
2323
|
-
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
2324
|
-
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2325
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 94]]
|
2326
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2327
|
-
[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" = 94) LIMIT 1
|
2328
|
-
[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", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 94], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2329
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2330
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2331
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 27 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
|
2332
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2333
|
-
Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 3.2ms)
|
2334
|
-
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
|
2335
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2336
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2337
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2338
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2339
|
-
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2340
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
2341
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2342
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2343
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2344
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2345
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2346
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2347
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2348
|
-
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
2349
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2350
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2351
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2352
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2353
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2354
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2355
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2356
|
-
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
2357
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2358
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2359
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2360
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2361
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2362
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2363
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2364
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2365
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 95 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2366
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 95], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2367
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2368
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2369
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2370
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2371
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2372
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2373
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2374
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 96 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2375
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 96], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2376
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2377
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2378
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2379
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2380
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2381
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2382
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2383
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 97 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2384
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 97], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2385
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2386
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2387
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 97 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2388
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 100 [["params", {"listing_id"=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2389
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2390
|
-
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
2391
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2392
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2393
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2394
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2395
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2396
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2397
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 98 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2398
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 98], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2399
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2400
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2401
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 98 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2402
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 101 [["params", {"listing_id"=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2403
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2404
|
-
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
2405
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2406
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2407
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2408
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2409
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2410
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2411
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 99 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2412
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 99], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2413
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2414
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2415
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 99 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2416
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 102 [["params", {:listing_id=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2417
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2418
|
-
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
2419
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2420
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2421
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2422
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2423
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2424
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2425
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2426
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 100], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2427
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2428
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2429
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2430
|
-
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 103 [["params", {:listing_id=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2431
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2432
|
-
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
2433
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2434
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2435
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2436
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2437
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2438
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2439
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2440
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 101], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2441
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2442
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2443
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2444
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
2445
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2446
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2447
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2448
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2449
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2450
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2451
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 102], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2452
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2453
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2454
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2455
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2456
|
-
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 102 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 105)
|
2457
|
-
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 105]]
|
2458
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]
|
2459
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 102 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
2460
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2461
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 102]]
|
2462
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2463
|
-
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 105[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2464
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2465
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2466
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2467
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2468
|
-
[1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 105 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
2469
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 102]]
|
2470
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
2471
|
-
[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" = 105 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
2472
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]
|
2473
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
2474
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2475
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2476
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2477
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2478
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2479
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2480
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2481
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2482
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2483
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2484
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2485
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2486
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 103 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 106)
|
2487
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2488
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2489
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2490
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2491
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 103 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 107)[0m
|
2492
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2493
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2494
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2495
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2496
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2497
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2498
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2499
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2500
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2501
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2502
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2503
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2504
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2505
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 109]]
|
2506
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]]
|
2507
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 104 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
2508
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2509
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 104]]
|
2510
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2511
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 108[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2512
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2513
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2514
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]]
|
2515
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2516
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 109 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2517
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2518
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2519
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2520
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2521
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2522
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2523
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2524
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
2525
|
-
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 104 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2526
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2527
|
-
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'tF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw' LIMIT 1[0m
|
2528
|
-
[1m[35mSQL (1.7ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 104], ["target_type", "User"], ["token", "tF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2529
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2530
|
-
|
2531
|
-
Sent mail to user@example.com (10.6ms)
|
2532
|
-
Date: Wed, 30 Apr 2014 13:22:31 +1000
|
2533
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
2534
|
-
To: user@example.com
|
2535
|
-
Message-ID: <53606c773dd2d_19f43fc971829bf8345bf@wp.local.mail>
|
2536
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
2537
|
-
Mime-Version: 1.0
|
2538
|
-
Content-Type: text/html;
|
2539
|
-
charset=UTF-8
|
2540
|
-
Content-Transfer-Encoding: quoted-printable
|
2541
|
-
|
2542
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
2543
|
-
tml4/strict.dtd">
|
2544
|
-
<html>
|
2545
|
-
<head>
|
2546
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
2547
|
-
"/>
|
2548
|
-
<title></title>
|
2549
|
-
</head>
|
2550
|
-
|
2551
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
2552
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
2553
|
-
ing: optimizeLegibility;">
|
2554
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
2555
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
2556
|
-
Logo
|
2557
|
-
</div>
|
2558
|
-
</div>
|
2559
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
2560
|
-
">
|
2561
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
2562
|
-
=
|
2563
|
-
|
2564
|
-
<div>
|
2565
|
-
New Post Notification happened. =
|
2566
|
-
|
2567
|
-
</div>
|
2568
|
-
<div>
|
2569
|
-
New Post Notification happened. =
|
2570
|
-
|
2571
|
-
</div>
|
2572
|
-
|
2573
|
-
</div>
|
2574
|
-
</div>
|
2575
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
2576
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
2577
|
-
<p style=3D"text-align: center;">
|
2578
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
2579
|
-
_unsubscribe?token=3DtF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw&typ=
|
2580
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
2581
|
-
</p>
|
2582
|
-
<p style=3D"text-align: center;">
|
2583
|
-
This is the default generated layout. A privacy declaration could g=
|
2584
|
-
o here.
|
2585
|
-
</p>
|
2586
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
2587
|
-
=C2=A9 MyCompany Pty Ltd
|
2588
|
-
</p>
|
2589
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
2590
|
-
ABN 123 456 789
|
2591
|
-
</p>
|
2592
|
-
</div>
|
2593
|
-
</div>
|
2594
|
-
</body>
|
2595
|
-
</html>=
|
2596
|
-
|
2597
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2598
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2599
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2600
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2601
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2602
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2603
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2604
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 105], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2605
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2606
|
-
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 110]]
|
2607
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]]
|
2608
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 105 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
2609
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2610
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 105]]
|
2611
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2612
|
-
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 110[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2613
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2614
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2615
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2616
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2617
|
-
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 110 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
2618
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 105]]
|
2619
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
2620
|
-
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 105 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2621
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2622
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww' LIMIT 1[0m
|
2623
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 105], ["target_type", "User"], ["token", "7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2624
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2625
|
-
|
2626
|
-
Sent mail to user@example.com (5.6ms)
|
2627
|
-
Date: Wed, 30 Apr 2014 13:22:31 +1000
|
2628
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
2629
|
-
To: user@example.com
|
2630
|
-
Message-ID: <53606c7749f7f_19f43fc971829bf834688@wp.local.mail>
|
2631
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
2632
|
-
Mime-Version: 1.0
|
2633
|
-
Content-Type: text/html;
|
2634
|
-
charset=UTF-8
|
2635
|
-
Content-Transfer-Encoding: quoted-printable
|
2636
|
-
|
2637
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
2638
|
-
tml4/strict.dtd">
|
2639
|
-
<html>
|
2640
|
-
<head>
|
2641
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
2642
|
-
"/>
|
2643
|
-
<title></title>
|
2644
|
-
</head>
|
2645
|
-
|
2646
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
2647
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
2648
|
-
ing: optimizeLegibility;">
|
2649
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
2650
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
2651
|
-
Logo
|
2652
|
-
</div>
|
2653
|
-
</div>
|
2654
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
2655
|
-
">
|
2656
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
2657
|
-
New Post Notification happened.
|
2658
|
-
|
2659
|
-
</div>
|
2660
|
-
</div>
|
2661
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
2662
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
2663
|
-
<p style=3D"text-align: center;">
|
2664
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
2665
|
-
_unsubscribe?token=3D7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww&typ=
|
2666
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
2667
|
-
</p>
|
2668
|
-
<p style=3D"text-align: center;">
|
2669
|
-
This is the default generated layout. A privacy declaration could g=
|
2670
|
-
o here.
|
2671
|
-
</p>
|
2672
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
2673
|
-
=C2=A9 MyCompany Pty Ltd
|
2674
|
-
</p>
|
2675
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
2676
|
-
ABN 123 456 789
|
2677
|
-
</p>
|
2678
|
-
</div>
|
2679
|
-
</div>
|
2680
|
-
</body>
|
2681
|
-
</html>=
|
2682
|
-
|
2683
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
2684
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2685
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2686
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2687
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2688
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2689
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2690
|
-
[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" = 106) LIMIT 1[0m
|
2691
|
-
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 106], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2692
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2693
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2694
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2695
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2696
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
2697
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2698
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2699
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2700
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2701
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2702
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2703
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2704
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 107], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2705
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2706
|
-
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 111 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
2707
|
-
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 107]]
|
2708
|
-
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
2709
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2710
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2711
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2712
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2713
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2714
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2715
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2716
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2717
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2718
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2719
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2720
|
-
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2721
|
-
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
2722
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 113]]
|
2723
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 108]]
|
2724
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 108 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
2725
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2726
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 108]]
|
2727
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2728
|
-
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 112[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2729
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2730
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2731
|
-
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 108]]
|
2732
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2733
|
-
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 113 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2734
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2735
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2736
|
-
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2737
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2738
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2739
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2740
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2741
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
2742
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 108 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2743
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2744
|
-
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA' LIMIT 1[0m
|
2745
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 108], ["target_type", "User"], ["token", "9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2746
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2747
|
-
|
2748
|
-
Sent mail to user@example.com (7.4ms)
|
2749
|
-
Date: Wed, 30 Apr 2014 13:22:31 +1000
|
2750
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
2751
|
-
To: user@example.com
|
2752
|
-
Message-ID: <53606c776083f_19f43fc971829bf834748@wp.local.mail>
|
2753
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
2754
|
-
Mime-Version: 1.0
|
2755
|
-
Content-Type: text/html;
|
2756
|
-
charset=UTF-8
|
2757
|
-
Content-Transfer-Encoding: quoted-printable
|
2758
|
-
|
2759
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
2760
|
-
tml4/strict.dtd">
|
2761
|
-
<html>
|
2762
|
-
<head>
|
2763
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
2764
|
-
"/>
|
2765
|
-
<title></title>
|
2766
|
-
</head>
|
2767
|
-
|
2768
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
2769
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
2770
|
-
ing: optimizeLegibility;">
|
2771
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
2772
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
2773
|
-
Logo
|
2774
|
-
</div>
|
2775
|
-
</div>
|
2776
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
2777
|
-
">
|
2778
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
2779
|
-
=
|
2780
|
-
|
2781
|
-
<div>
|
2782
|
-
New Post Notification happened. =
|
2783
|
-
|
2784
|
-
</div>
|
2785
|
-
<div>
|
2786
|
-
New Post Notification happened. =
|
2787
|
-
|
2788
|
-
</div>
|
2789
|
-
|
2790
|
-
</div>
|
2791
|
-
</div>
|
2792
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
2793
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
2794
|
-
<p style=3D"text-align: center;">
|
2795
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
2796
|
-
_unsubscribe?token=3D9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA&typ=
|
2797
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
2798
|
-
</p>
|
2799
|
-
<p style=3D"text-align: center;">
|
2800
|
-
This is the default generated layout. A privacy declaration could g=
|
2801
|
-
o here.
|
2802
|
-
</p>
|
2803
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
2804
|
-
=C2=A9 MyCompany Pty Ltd
|
2805
|
-
</p>
|
2806
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
2807
|
-
ABN 123 456 789
|
2808
|
-
</p>
|
2809
|
-
</div>
|
2810
|
-
</div>
|
2811
|
-
</body>
|
2812
|
-
</html>=
|
2813
|
-
|
2814
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2815
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2816
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2817
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2818
|
-
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
2819
|
-
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2820
|
-
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2821
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 109], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2822
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2823
|
-
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 114]]
|
2824
|
-
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]]
|
2825
|
-
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 109 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
2826
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2827
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 109]]
|
2828
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2829
|
-
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 114[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2830
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2831
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2832
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2833
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2834
|
-
[1m[35mNotifyUser::BaseNotification Load (0.7ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 114 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
2835
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 109]]
|
2836
|
-
[1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
2837
|
-
[1m[36mNotifyUser::UserHash Load (0.9ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 109 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2838
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2839
|
-
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'cfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA' LIMIT 1[0m
|
2840
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 109], ["target_type", "User"], ["token", "cfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2841
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2842
|
-
|
2843
|
-
Sent mail to user@example.com (11.0ms)
|
2844
|
-
Date: Wed, 30 Apr 2014 13:22:31 +1000
|
2845
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
2846
|
-
To: user@example.com
|
2847
|
-
Message-ID: <53606c776d63c_19f43fc971829bf834837@wp.local.mail>
|
2848
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
2849
|
-
Mime-Version: 1.0
|
2850
|
-
Content-Type: text/html;
|
2851
|
-
charset=UTF-8
|
2852
|
-
Content-Transfer-Encoding: quoted-printable
|
2853
|
-
|
2854
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
2855
|
-
tml4/strict.dtd">
|
2856
|
-
<html>
|
2857
|
-
<head>
|
2858
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
2859
|
-
"/>
|
2860
|
-
<title></title>
|
2861
|
-
</head>
|
2862
|
-
|
2863
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
2864
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
2865
|
-
ing: optimizeLegibility;">
|
2866
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
2867
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
2868
|
-
Logo
|
2869
|
-
</div>
|
2870
|
-
</div>
|
2871
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
2872
|
-
">
|
2873
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
2874
|
-
New Post Notification happened.
|
2875
|
-
|
2876
|
-
</div>
|
2877
|
-
</div>
|
2878
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
2879
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
2880
|
-
<p style=3D"text-align: center;">
|
2881
|
-
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
2882
|
-
_unsubscribe?token=3DcfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA&typ=
|
2883
|
-
e=3DNewPostNotification">Unsubscribe</a>
|
2884
|
-
</p>
|
2885
|
-
<p style=3D"text-align: center;">
|
2886
|
-
This is the default generated layout. A privacy declaration could g=
|
2887
|
-
o here.
|
2888
|
-
</p>
|
2889
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
2890
|
-
=C2=A9 MyCompany Pty Ltd
|
2891
|
-
</p>
|
2892
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
2893
|
-
ABN 123 456 789
|
2894
|
-
</p>
|
2895
|
-
</div>
|
2896
|
-
</div>
|
2897
|
-
</body>
|
2898
|
-
</html>=
|
2899
|
-
|
2900
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2901
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2902
|
-
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
2903
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2904
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2905
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2906
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2907
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 110], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2908
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2909
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2910
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2911
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2912
|
-
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2913
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2914
|
-
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2915
|
-
[1m[36mSQL (1.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 115[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2916
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2917
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2918
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2919
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2920
|
-
[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" = 115 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
2921
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 110]]
|
2922
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
2923
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
2924
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2925
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2926
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2927
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2928
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2929
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2930
|
-
[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" = 111) LIMIT 1
|
2931
|
-
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 111], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2932
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2933
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2934
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2935
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2936
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2937
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2938
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2939
|
-
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
2940
|
-
[1m[35m (0.4ms)[0m ROLLBACK
|
2941
|
-
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2942
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2943
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2944
|
-
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2945
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2946
|
-
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[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" = 112) LIMIT 1
|
2947
|
-
[1m[36mSQL (0.6ms)[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 112], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2948
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2949
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2950
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2951
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 112], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2952
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2953
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2954
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2955
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2956
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2957
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2958
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2959
|
-
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 116[0m [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2960
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2961
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2962
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2963
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2964
|
-
[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" = 116 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
2965
|
-
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 112]]
|
2966
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
2967
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
2968
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2969
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2970
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2971
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2972
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2973
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2974
|
-
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 113 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2975
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 113], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2976
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2977
|
-
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 113 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2978
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2979
|
-
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Id40Rb4eFTnEEYhW5zJk1gekE8yVkMCSmSjNOkxZmwBg' LIMIT 1[0m
|
2980
|
-
[1m[35mSQL (0.7ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 113], ["target_type", "User"], ["token", "Id40Rb4eFTnEEYhW5zJk1gekE8yVkMCSmSjNOkxZmwBg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2981
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2982
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
2983
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2984
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2985
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2986
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2987
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2988
|
-
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 114 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
2989
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 114], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2990
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2991
|
-
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 114 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
2992
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2993
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GYn7nwiTgTcv2x8b2vcvXg8-hb3g1XQNW9qxGWvftXhg' LIMIT 1[0m
|
2994
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 114], ["target_type", "User"], ["token", "GYn7nwiTgTcv2x8b2vcvXg8-hb3g1XQNW9qxGWvftXhg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
2995
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2996
|
-
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 114 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
2997
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2998
|
-
[1m[35m (0.1ms)[0m BEGIN
|
2999
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3000
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3001
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3002
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3003
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
3004
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 115], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3005
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3006
|
-
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 115 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
3007
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3008
|
-
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'dFeL-5OEHsR4HkIpTK8vvgnfI7flpZxw4eQkeS1sBWQA' LIMIT 1
|
3009
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 115], ["target_type", "User"], ["token", "dFeL-5OEHsR4HkIpTK8vvgnfI7flpZxw4eQkeS1sBWQA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3010
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3011
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3012
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 34 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3013
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3014
|
-
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 115 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
3015
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3016
|
-
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '4nUdFh8BgQn6czQT_LWKkAapGPYD4nhRzE3nuiNgNXsg' LIMIT 1
|
3017
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 115], ["target_type", "User"], ["token", "4nUdFh8BgQn6czQT_LWKkAapGPYD4nhRzE3nuiNgNXsg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3018
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3019
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3020
|
-
[1m[35m (0.1ms)[0m BEGIN
|
3021
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3022
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3023
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3024
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3025
|
-
[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" = 116) LIMIT 1[0m
|
3026
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 116], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3027
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3028
|
-
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3029
|
-
[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" != 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 116) LIMIT 1[0m
|
3030
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3031
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3032
|
-
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 116 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
3033
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3034
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
3035
|
-
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3036
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3037
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3038
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3039
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3040
|
-
[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" = 117) LIMIT 1
|
3041
|
-
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 117], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3042
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3043
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3044
|
-
[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"."id" != 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 117) LIMIT 1
|
3045
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3046
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3047
|
-
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'UnsubscribableNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 117) LIMIT 1[0m
|
3048
|
-
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3049
|
-
[1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
3050
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
3051
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3052
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3053
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3054
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3055
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3056
|
-
[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" = 118) LIMIT 1
|
3057
|
-
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 118], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3058
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3059
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3060
|
-
[1m[35mNotifyUser::Unsubscribe Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 118) LIMIT 1
|
3061
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3062
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3063
|
-
[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" = 118) LIMIT 1[0m
|
3064
|
-
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3065
|
-
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
3066
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
3067
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3068
|
-
[1m[35mSQL (0.3ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 30]]
|
3069
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3070
|
-
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
3071
|
-
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
3072
|
-
[1m[35m (0.1ms)[0m BEGIN
|
3073
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3074
|
-
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3075
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3076
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3077
|
-
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 119 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
3078
|
-
[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", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 119], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3079
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3080
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
3081
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3082
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3083
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3084
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3085
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3086
|
-
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ' LIMIT 1
|
3087
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 120], ["target_type", "User"], ["token", "Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3088
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3089
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3090
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3091
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
3092
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
3093
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3094
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3095
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3096
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3097
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3098
|
-
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg' LIMIT 1
|
3099
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 121], ["target_type", "User"], ["token", "a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3100
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3101
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3102
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3103
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3104
|
-
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 37 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3105
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3106
|
-
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
3107
|
-
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3108
|
-
[1m[35m (0.1ms)[0m BEGIN
|
3109
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3110
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3111
|
-
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3112
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3113
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'pTzTUQKAvZuaplh2sZpY2gOCQ5YyZKUz3ENcRNrfRE8g' LIMIT 1[0m
|
3114
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 122], ["target_type", "User"], ["token", "pTzTUQKAvZuaplh2sZpY2gOCQ5YyZKUz3ENcRNrfRE8g"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3115
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3116
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3117
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3118
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3119
|
-
[1m[36mSQL (0.6ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 38[0m [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3120
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3121
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3122
|
-
[1m[35m (0.1ms)[0m BEGIN
|
3123
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3124
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3125
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3126
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3127
|
-
[1m[36mNotifyUser::UserHash Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'UdKF3m1VAU3uz9rnSXed0wauEA7C1ZBWrEpPfQkfo8fg' LIMIT 1[0m
|
3128
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 123], ["target_type", "User"], ["token", "UdKF3m1VAU3uz9rnSXed0wauEA7C1ZBWrEpPfQkfo8fg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
|
3129
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3130
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3131
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3132
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
3133
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3134
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
3135
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3136
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
3137
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3138
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
3139
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3140
|
-
[1m[35m (0.2ms)[0m ROLLBACK
|
3141
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3142
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
3143
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3144
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|
3145
|
-
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3146
|
-
[1m[35m (0.1ms)[0m ROLLBACK
|