notify_user 0.0.1 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/app/assets/javascripts/notify_user/notification.js +7 -0
- data/app/assets/stylesheets/notify_user/notify_user.css +50 -0
- data/app/controllers/notify_user/base_notifications_controller.rb +144 -0
- data/app/controllers/notify_user/notifications_controller.rb +7 -32
- data/app/helpers/notify_user/application_helper.rb +9 -0
- data/app/mailers/notify_user/notification_mailer.rb +2 -0
- data/app/models/notify_user/apns.rb +37 -0
- data/app/models/notify_user/base_notification.rb +136 -32
- data/app/models/notify_user/unsubscribe.rb +55 -0
- data/app/models/notify_user/user_hash.rb +36 -0
- data/app/serializers/notify_user/notification_serializer.rb +2 -2
- data/app/views/notify_user/action_mailer/aggregate_notification.html.erb +2 -1
- data/app/views/notify_user/action_mailer/notification.html.erb +1 -1
- data/app/views/notify_user/base_notifications/index.html.erb +20 -0
- data/app/views/notify_user/base_notifications/unsubscribe.html.erb +19 -0
- data/config/routes.rb +8 -0
- data/lib/generators/notify_user/install/install_generator.rb +20 -3
- data/lib/generators/notify_user/install/templates/{migration.rb → create_notify_user_notifications.rb} +1 -1
- data/lib/generators/notify_user/install/templates/create_notify_user_unsubscribes.rb +10 -0
- data/lib/generators/notify_user/install/templates/create_notify_user_user_hashes.rb +12 -0
- data/lib/generators/notify_user/install/templates/initializer.rb +2 -0
- data/lib/generators/notify_user/install/templates/notifications_controller.rb +9 -0
- data/lib/generators/notify_user/json_update/USAGE +5 -0
- data/lib/generators/notify_user/json_update/json_update_generator.rb +36 -0
- data/lib/generators/notify_user/json_update/templates/add_json_column_to_notifications.rb +9 -0
- data/lib/generators/notify_user/json_update/templates/move_params_to_json.rb +8 -0
- data/lib/generators/notify_user/notification/notification_generator.rb +2 -0
- data/lib/generators/notify_user/notification/templates/email_layout_template.html.erb.erb +6 -0
- data/lib/generators/notify_user/notification/templates/notification.rb.erb +2 -1
- data/lib/notify_user.rb +4 -1
- data/lib/notify_user/channels/action_mailer/action_mailer_channel.rb +2 -1
- data/lib/notify_user/channels/apns/apns_channel.rb +17 -0
- data/lib/notify_user/engine.rb +2 -0
- data/lib/notify_user/railtie.rb +10 -0
- data/lib/notify_user/version.rb +1 -1
- data/lib/tasks/notify_user.rake +15 -0
- data/spec/controllers/notify_user/notifications_controller_spec.rb +89 -1
- data/spec/dummy/rails-4.0.2/Gemfile +2 -2
- data/spec/dummy/rails-4.0.2/app/controllers/notify_user/notifications_controller.rb +9 -0
- data/spec/dummy/rails-4.0.2/app/notifications/new_post_notification.rb +2 -1
- data/spec/dummy/rails-4.0.2/app/views/notify_user/layouts/action_mailer.html.erb +6 -0
- data/spec/dummy/rails-4.0.2/config/database.yml +42 -13
- data/spec/dummy/rails-4.0.2/config/database2.yml +57 -0
- data/spec/dummy/rails-4.0.2/config/initializers/notify_user.rb +2 -0
- data/spec/dummy/rails-4.0.2/config/initializers/secret_token.rb +1 -1
- data/spec/dummy/rails-4.0.2/db/migrate/{20140105070446_create_users.rb → 20140428015529_create_users.rb} +0 -0
- data/spec/dummy/rails-4.0.2/db/migrate/{20140105070448_create_notify_user_notifications.rb → 20140428015531189189694000_create_notify_user_notifications.rb} +1 -1
- data/spec/dummy/rails-4.0.2/db/migrate/20140428015531190190743000_create_notify_user_unsubscribes.rb +10 -0
- data/spec/dummy/rails-4.0.2/db/migrate/20140428015531191191953000_create_notify_user_user_hashes.rb +12 -0
- data/spec/dummy/rails-4.0.2/db/schema.rb +23 -2
- data/spec/dummy/rails-4.0.2/log/test.log +787 -1414
- data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/13195a56ea8581e42f709ea01ea4604f +0 -0
- data/{app/assets/stylesheets/notify_user/application.css → 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/mailers/notify_user/notification_mailer_spec.rb +1 -0
- data/spec/models/notify_user/notification_spec.rb +122 -1
- data/spec/models/notify_user/unsubscribe_spec.rb +40 -0
- data/spec/models/notify_user/user_hash_spec.rb +35 -0
- data/spec/spec_helper.rb +5 -0
- data/spec/support/database.yml +21 -0
- data/spec/support/rails_template.rb +9 -0
- metadata +196 -65
- data/spec/dummy/rails-4.0.2/db/test.sqlite3 +0 -0
data/lib/notify_user/version.rb
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
namespace :notify_user do
|
|
2
|
+
|
|
3
|
+
desc "move params hash to json"
|
|
4
|
+
task :move_params_to_json => :environment do
|
|
5
|
+
notifications = NotifyUser::BaseNotification.all
|
|
6
|
+
|
|
7
|
+
notifications.each do |notification|
|
|
8
|
+
notification.json = notification.params.to_json
|
|
9
|
+
notification.save
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
puts "Moved params to json"
|
|
13
|
+
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -26,12 +26,46 @@ describe NotifyUser::NotificationsController do
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
it "returns a message from a rendered template" do
|
|
29
|
-
get :index
|
|
29
|
+
get :index, :format => :json
|
|
30
30
|
json[:notifications][0][:message].should include "New Post Notification happened with"
|
|
31
31
|
json[:notifications][0][:message].should include notification.params[:name]
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
describe "GET web Index notifications" do
|
|
36
|
+
render_views
|
|
37
|
+
|
|
38
|
+
let(:notification) { NotifyUser.send_notification('new_post_notification').to(user).with(name: "Mr. Blobby") }
|
|
39
|
+
let(:notification1) { NotifyUser.send_notification('new_post_notification').to(user).with(name: "Mr. Adams") }
|
|
40
|
+
let(:notification2) { NotifyUser.send_notification('new_post_notification').to(user).with(name: "Mrs. James") }
|
|
41
|
+
|
|
42
|
+
before :each do
|
|
43
|
+
notification.save
|
|
44
|
+
notification1.save
|
|
45
|
+
notification2.save
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
it "returns a list of notifications" do
|
|
49
|
+
NotifyUser::BaseNotification.any_instance.stub(:message).and_return("Mr. Blobby")
|
|
50
|
+
get :index
|
|
51
|
+
response.body.should have_content("Mr. Blobby")
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
it "reading a notification marks it as read and takes to redirect action" do
|
|
55
|
+
get :read, :id => notification.id
|
|
56
|
+
@notification = NotifyUser::BaseNotification.where(id: notification.id).first
|
|
57
|
+
@notification.state.should eq "read"
|
|
58
|
+
response.body.should have_content("set redirect logic")
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
it "marks all unread messages as read" do
|
|
62
|
+
get :mark_all
|
|
63
|
+
notifications = NotifyUser::BaseNotification.for_target(user).where('state IN (?)', '["pending","sent"]')
|
|
64
|
+
notifications.length.should eq 0
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
end
|
|
68
|
+
|
|
35
69
|
describe "PUT notifications/mark_read.json" do
|
|
36
70
|
let(:notification) { NotifyUser.send_notification('new_post_notification').to(user).with(name: "Mr. Blobby") }
|
|
37
71
|
|
|
@@ -51,4 +85,58 @@ describe NotifyUser::NotificationsController do
|
|
|
51
85
|
end
|
|
52
86
|
end
|
|
53
87
|
|
|
88
|
+
describe "unsubscribing and subscribing" do
|
|
89
|
+
let(:notification) { NotifyUser.send_notification('new_post_notification').to(user).with(name: "Mr. Blobby") }
|
|
90
|
+
|
|
91
|
+
before :each do
|
|
92
|
+
notification.save
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
xit "endpoint for toggling subscriptions statuses" do
|
|
96
|
+
# NotifyUser::Unsubscribe.has_unsubscribed_from(user, 'NewPostNotification').should eq []
|
|
97
|
+
put :subscriptions, :types => ['NewPostNotification']
|
|
98
|
+
NotifyUser::Unsubscribe.has_unsubscribed_from(user, 'NewPostNotification').should_not eq []
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
it "endpoint for updating notification subscription statuses" do
|
|
102
|
+
NotifyUser::Unsubscribe.has_unsubscribed_from(user, 'NewPostNotification').should eq []
|
|
103
|
+
put :subscriptions, :types => [{
|
|
104
|
+
type: 'NewPostNotification',
|
|
105
|
+
status: '0'
|
|
106
|
+
}]
|
|
107
|
+
NotifyUser::Unsubscribe.has_unsubscribed_from(user, 'NewPostNotification').should_not eq []
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
it "endpoint for updating notification subscription statuses passing 1 does nothing" do
|
|
111
|
+
NotifyUser::Unsubscribe.has_unsubscribed_from(user, 'NewPostNotification').should eq []
|
|
112
|
+
put :subscriptions, :types => [{
|
|
113
|
+
type: 'NewPostNotification',
|
|
114
|
+
status: '1'
|
|
115
|
+
}]
|
|
116
|
+
NotifyUser::Unsubscribe.has_unsubscribed_from(user, 'NewPostNotification').should eq []
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
it "unsubscribing from notification type" do
|
|
120
|
+
get :unsubscribe, :type => "NewPostNotification"
|
|
121
|
+
NotifyUser::Unsubscribe.last.type.should eq "NewPostNotification"
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
it "subscribing deletes the unsubscribe object" do
|
|
125
|
+
#lack of unsubscribe object implies the user is subscribed
|
|
126
|
+
NotifyUser::Unsubscribe.create(target: user, type: "NewPostNotification")
|
|
127
|
+
get :subscribe, :type => "NewPostNotification"
|
|
128
|
+
NotifyUser::Unsubscribe.all.should eq []
|
|
129
|
+
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
it "verifies user token before unsubscribe then deactivates that token" do
|
|
133
|
+
user_hash = notification.generate_unsubscribe_hash
|
|
134
|
+
get :unauth_unsubscribe, :type => "NewPostNotification", :token => user_hash.token
|
|
135
|
+
|
|
136
|
+
user_hash = NotifyUser::UserHash.last
|
|
137
|
+
user_hash.active.should eq false
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
end
|
|
141
|
+
|
|
54
142
|
end
|
|
@@ -3,8 +3,8 @@ source 'https://rubygems.org'
|
|
|
3
3
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
|
4
4
|
gem 'rails', '4.0.2'
|
|
5
5
|
|
|
6
|
-
# Use
|
|
7
|
-
gem '
|
|
6
|
+
# Use postgresql as the database for Active Record
|
|
7
|
+
gem 'pg'
|
|
8
8
|
|
|
9
9
|
# Use SCSS for stylesheets
|
|
10
10
|
gem 'sass-rails', '~> 4.0.0'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
class NotifyUser::NotificationsController < NotifyUser::BaseNotificationsController
|
|
2
|
+
def redirect_logic(notification)
|
|
3
|
+
render :text => "set redirect logic in notify_user/notifications_controller.rb"
|
|
4
|
+
# notification redirect logic goes here
|
|
5
|
+
# class_name = notification.params[:type].capitalize.constantize
|
|
6
|
+
# object = class_name.find(@notification.params[:id])
|
|
7
|
+
# redirect_to property_url(object)
|
|
8
|
+
end
|
|
9
|
+
end
|
|
@@ -4,7 +4,8 @@ class NewPostNotification < NotifyUser::BaseNotification
|
|
|
4
4
|
subject: "Rails402: You have a new Newpostnotification notification.",
|
|
5
5
|
aggregate: {
|
|
6
6
|
subject: "Rails402: You have new Newpostnotification notifications."
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
+
@@description = "please override this type description"
|
|
9
10
|
@@aggregate_per = 10.minutes
|
|
10
11
|
end
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
<div style="width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
20
20
|
<div style="width: 600px; margin: 0 auto; padding: 0;">
|
|
21
|
+
<% if is_unsubscribeable? @notification %>
|
|
22
|
+
<p style="text-align: center;">
|
|
23
|
+
<%= unsubscribe_link(@notification, "Unsubscribe") %>
|
|
24
|
+
</p>
|
|
25
|
+
<%
|
|
26
|
+
end %>
|
|
21
27
|
<p style="text-align: center;">
|
|
22
28
|
This is the default generated layout. A privacy declaration could go here.
|
|
23
29
|
</p>
|
|
@@ -1,25 +1,54 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
1
|
+
# PostgreSQL. Versions 8.2 and up are supported.
|
|
2
|
+
#
|
|
3
|
+
# Install the pg driver:
|
|
4
|
+
# gem install pg
|
|
5
|
+
# On OS X with Homebrew:
|
|
6
|
+
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
|
|
7
|
+
# On OS X with MacPorts:
|
|
8
|
+
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
|
|
9
|
+
# On Windows:
|
|
10
|
+
# gem install pg
|
|
11
|
+
# Choose the win32 build.
|
|
12
|
+
# Install PostgreSQL and put its /bin directory on your path.
|
|
13
|
+
#
|
|
14
|
+
# Configure Using Gemfile
|
|
15
|
+
# gem 'pg'
|
|
3
16
|
#
|
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
5
|
-
# gem 'sqlite3'
|
|
6
17
|
development:
|
|
7
|
-
adapter:
|
|
8
|
-
|
|
18
|
+
adapter: postgresql
|
|
19
|
+
encoding: unicode
|
|
20
|
+
database: rails-4_0_2_development
|
|
9
21
|
pool: 5
|
|
10
|
-
|
|
22
|
+
|
|
23
|
+
# Connect on a TCP socket. Omitted by default since the client uses a
|
|
24
|
+
# domain socket that doesn't need configuration. Windows does not have
|
|
25
|
+
# domain sockets, so uncomment these lines.
|
|
26
|
+
#host: localhost
|
|
27
|
+
|
|
28
|
+
# The TCP port the server listens on. Defaults to 5432.
|
|
29
|
+
# If your server runs on a different port number, change accordingly.
|
|
30
|
+
#port: 5432
|
|
31
|
+
|
|
32
|
+
# Schema search path. The server defaults to $user,public
|
|
33
|
+
#schema_search_path: myapp,sharedapp,public
|
|
34
|
+
|
|
35
|
+
# Minimum log levels, in increasing order:
|
|
36
|
+
# debug5, debug4, debug3, debug2, debug1,
|
|
37
|
+
# log, notice, warning, error, fatal, and panic
|
|
38
|
+
# Defaults to warning.
|
|
39
|
+
#min_messages: notice
|
|
11
40
|
|
|
12
41
|
# Warning: The database defined as "test" will be erased and
|
|
13
42
|
# re-generated from your development database when you run "rake".
|
|
14
43
|
# Do not set this db to the same as development or production.
|
|
15
44
|
test:
|
|
16
|
-
adapter:
|
|
17
|
-
|
|
45
|
+
adapter: postgresql
|
|
46
|
+
encoding: unicode
|
|
47
|
+
database: rails-4_0_2_test
|
|
18
48
|
pool: 5
|
|
19
|
-
timeout: 5000
|
|
20
49
|
|
|
21
50
|
production:
|
|
22
|
-
adapter:
|
|
23
|
-
|
|
51
|
+
adapter: postgresql
|
|
52
|
+
encoding: unicode
|
|
53
|
+
database: rails-4_0_2_production
|
|
24
54
|
pool: 5
|
|
25
|
-
timeout: 5000
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# PostgreSQL. Versions 8.2 and up are supported.
|
|
2
|
+
#
|
|
3
|
+
# Install the pg driver:
|
|
4
|
+
# gem install pg
|
|
5
|
+
# On OS X with Homebrew:
|
|
6
|
+
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
|
|
7
|
+
# On OS X with MacPorts:
|
|
8
|
+
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
|
|
9
|
+
# On Windows:
|
|
10
|
+
# gem install pg
|
|
11
|
+
# Choose the win32 build.
|
|
12
|
+
# Install PostgreSQL and put its /bin directory on your path.
|
|
13
|
+
#
|
|
14
|
+
# Configure Using Gemfile
|
|
15
|
+
# gem 'pg'
|
|
16
|
+
#
|
|
17
|
+
development:
|
|
18
|
+
adapter: postgresql
|
|
19
|
+
encoding: unicode
|
|
20
|
+
database: rails-4_0_2_development
|
|
21
|
+
pool: 5
|
|
22
|
+
password:
|
|
23
|
+
|
|
24
|
+
# Connect on a TCP socket. Omitted by default since the client uses a
|
|
25
|
+
# domain socket that doesn't need configuration. Windows does not have
|
|
26
|
+
# domain sockets, so uncomment these lines.
|
|
27
|
+
#host: localhost
|
|
28
|
+
|
|
29
|
+
# The TCP port the server listens on. Defaults to 5432.
|
|
30
|
+
# If your server runs on a different port number, change accordingly.
|
|
31
|
+
#port: 5432
|
|
32
|
+
|
|
33
|
+
# Schema search path. The server defaults to $user,public
|
|
34
|
+
#schema_search_path: myapp,sharedapp,public
|
|
35
|
+
|
|
36
|
+
# Minimum log levels, in increasing order:
|
|
37
|
+
# debug5, debug4, debug3, debug2, debug1,
|
|
38
|
+
# log, notice, warning, error, fatal, and panic
|
|
39
|
+
# Defaults to warning.
|
|
40
|
+
#min_messages: notice
|
|
41
|
+
|
|
42
|
+
# Warning: The database defined as "test" will be erased and
|
|
43
|
+
# re-generated from your development database when you run "rake".
|
|
44
|
+
# Do not set this db to the same as development or production.
|
|
45
|
+
test:
|
|
46
|
+
adapter: postgresql
|
|
47
|
+
encoding: unicode
|
|
48
|
+
database: rails-4_0_2_test
|
|
49
|
+
pool: 5
|
|
50
|
+
password:
|
|
51
|
+
|
|
52
|
+
production:
|
|
53
|
+
adapter: postgresql
|
|
54
|
+
encoding: unicode
|
|
55
|
+
database: rails-4_0_2_production
|
|
56
|
+
pool: 5
|
|
57
|
+
password:
|
|
@@ -9,4 +9,6 @@ NotifyUser.setup do |config|
|
|
|
9
9
|
# NotifyUser will call this within NotificationsController to return the current logged in user.
|
|
10
10
|
config.current_user_method = :current_user
|
|
11
11
|
|
|
12
|
+
# Override the default notification type
|
|
13
|
+
config.unsubscribable_notifications = ['NewPostNotification']
|
|
12
14
|
end
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
|
|
10
10
|
# Make sure your secret_key_base is kept private
|
|
11
11
|
# if you're sharing your code publicly.
|
|
12
|
-
Rails402::Application.config.secret_key_base = '
|
|
12
|
+
Rails402::Application.config.secret_key_base = '465f947d799056a01ee40200c89105d0564deb9563d487a774b2ff7dfc6cf4fde48bbcb7043f6dfa15e22f238ccd68d06e52b36ea233d9e22885f5f6d6811f2e'
|
|
File without changes
|
data/spec/dummy/rails-4.0.2/db/migrate/20140428015531191191953000_create_notify_user_user_hashes.rb
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
class CreateNotifyUserUserHashes < ActiveRecord::Migration
|
|
2
|
+
def change
|
|
3
|
+
create_table :notify_user_user_hashes do |t|
|
|
4
|
+
t.string :type
|
|
5
|
+
t.integer :target_id
|
|
6
|
+
t.string :target_type
|
|
7
|
+
t.string :token
|
|
8
|
+
t.boolean :active, default: true
|
|
9
|
+
t.timestamps
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -11,18 +11,39 @@
|
|
|
11
11
|
#
|
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
|
13
13
|
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
|
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"
|
|
15
18
|
|
|
16
19
|
create_table "notify_user_notifications", force: true do |t|
|
|
17
20
|
t.string "type"
|
|
18
21
|
t.integer "target_id"
|
|
19
22
|
t.string "target_type"
|
|
20
|
-
t.
|
|
23
|
+
t.json "params"
|
|
21
24
|
t.string "state"
|
|
22
25
|
t.datetime "created_at"
|
|
23
26
|
t.datetime "updated_at"
|
|
24
27
|
end
|
|
25
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
|
+
|
|
26
47
|
create_table "users", force: true do |t|
|
|
27
48
|
t.string "email"
|
|
28
49
|
t.datetime "created_at"
|
|
@@ -1,391 +1,466 @@
|
|
|
1
|
-
[1m[36m (
|
|
2
|
-
[1m[35m (
|
|
3
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.
|
|
4
|
-
Migrating to CreateUsers (
|
|
5
|
-
[1m[35m (0.
|
|
6
|
-
[1m[36m (
|
|
7
|
-
[1m[35mSQL (
|
|
8
|
-
[1m[36m (0.
|
|
9
|
-
Migrating to CreateNotifyUserNotifications (
|
|
10
|
-
[1m[35m (0.
|
|
11
|
-
[1m[36m (
|
|
12
|
-
[1m[35mSQL (0.
|
|
13
|
-
[1m[36m (0.6ms)[0m [
|
|
14
|
-
|
|
15
|
-
[1m[
|
|
16
|
-
[1m[
|
|
17
|
-
[1m[
|
|
18
|
-
[1m[
|
|
19
|
-
|
|
20
|
-
[1m[35m (0.
|
|
21
|
-
[1m[36m (
|
|
22
|
-
[1m[
|
|
23
|
-
[1m[
|
|
24
|
-
[1m[
|
|
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]]
|
|
25
42
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
26
43
|
Processing by NotifyUser::NotificationsController#index as HTML
|
|
27
|
-
|
|
28
|
-
Completed 200 OK in
|
|
29
|
-
[1m[
|
|
30
|
-
[1m[
|
|
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
|
|
31
61
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
32
|
-
[1m[36mSQL (0.
|
|
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]]
|
|
33
63
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
34
64
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
35
|
-
[1m[
|
|
36
|
-
[1m[
|
|
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
|
|
37
76
|
Processing by NotifyUser::NotificationsController#index as HTML
|
|
38
|
-
[1m[
|
|
39
|
-
Completed 200 OK in
|
|
40
|
-
[1m[
|
|
41
|
-
[1m[
|
|
42
|
-
[1m[
|
|
43
|
-
[1m[
|
|
44
|
-
[1m[
|
|
45
|
-
[1m[
|
|
46
|
-
[1m[
|
|
47
|
-
[1m[
|
|
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
|
|
48
137
|
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
49
|
-
Parameters: {"ids"=>["
|
|
50
|
-
[1m[
|
|
51
|
-
[1m[
|
|
52
|
-
Completed 200 OK in
|
|
53
|
-
[1m[
|
|
54
|
-
[1m[
|
|
55
|
-
[1m[
|
|
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
|
|
56
197
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
57
|
-
[1m[36mSQL (0.
|
|
58
|
-
[1m[35m (0.
|
|
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
|
|
59
200
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
60
|
-
[1m[
|
|
61
|
-
[1m[
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
[1m[
|
|
66
|
-
|
|
67
|
-
[1m[
|
|
68
|
-
[1m[
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
[1m[
|
|
72
|
-
[1m[
|
|
73
|
-
[1m[
|
|
74
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
75
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
76
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
|
|
77
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
78
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
79
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
|
|
80
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT 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
|
|
81
215
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
82
|
-
[1m[
|
|
83
|
-
[1m[35m (0.
|
|
84
|
-
[1m[36m (0.
|
|
85
|
-
[1m[35m (0.
|
|
86
|
-
[1m[36mSQL (0.
|
|
87
|
-
[1m[35m (0.
|
|
88
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
89
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
|
|
90
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
91
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
92
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
93
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
94
|
-
[1m[36m (0.1ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m
|
|
95
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]]
|
|
96
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
97
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
|
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
|
|
98
222
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
99
|
-
[1m[
|
|
100
|
-
[1m[36mSQL (0.
|
|
101
|
-
[1m[35m (0.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
[1m[
|
|
105
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
106
|
-
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
107
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
108
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
109
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00]]
|
|
110
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT 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
|
|
111
229
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
112
|
-
[1m[36mSQL (0.
|
|
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]]
|
|
113
239
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
114
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
115
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
116
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
117
|
-
[1m[35m (0.1ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
|
|
118
240
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
119
|
-
[1m[
|
|
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]]
|
|
120
248
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
[1m[
|
|
124
|
-
[1m[
|
|
125
|
-
[1m[
|
|
126
|
-
[1m[36m (0.
|
|
127
|
-
[1m[
|
|
128
|
-
[1m[36mSQL (0.
|
|
129
|
-
[1m[35m (0.
|
|
130
|
-
[1m[36m (0.
|
|
131
|
-
[1m[35mSQL (0.
|
|
132
|
-
[1m[36m (0.
|
|
133
|
-
|
|
134
|
-
[1m[
|
|
135
|
-
[1m[
|
|
136
|
-
[1m[
|
|
137
|
-
[1m[
|
|
138
|
-
[1m[
|
|
139
|
-
[1m[
|
|
140
|
-
[1m[
|
|
141
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
142
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:04:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
143
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
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
|
|
144
269
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
145
|
-
[1m[
|
|
146
|
-
[1m[36m (0.
|
|
147
|
-
[1m[35m (0.
|
|
148
|
-
[1m[
|
|
149
|
-
[1m[35m (0.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Date: Sun, 05 Jan 2014 18:04:53 +1100
|
|
153
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
154
|
-
To: user@example.com
|
|
155
|
-
Message-ID: <52c90415e9f5c_68dd8082dbf8634e1@tomass-air-11.mail>
|
|
156
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
|
157
|
-
Mime-Version: 1.0
|
|
158
|
-
Content-Type: text/html;
|
|
159
|
-
charset=UTF-8
|
|
160
|
-
Content-Transfer-Encoding: 7bit
|
|
161
|
-
layout-name: action_mailer
|
|
162
|
-
layout-path: notify_user/layouts
|
|
163
|
-
|
|
164
|
-
<div>
|
|
165
|
-
New Post Notification happened.
|
|
166
|
-
</div>
|
|
167
|
-
<div>
|
|
168
|
-
New Post Notification happened.
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
172
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
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
|
|
173
277
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
174
|
-
[1m[
|
|
175
|
-
[1m[36m (0.
|
|
176
|
-
[1m[35m (0.
|
|
177
|
-
[1m[
|
|
178
|
-
[1m[35m (0.
|
|
179
|
-
[1m[
|
|
180
|
-
[1m[
|
|
181
|
-
[1m[
|
|
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
|
|
182
314
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
183
|
-
[1m[
|
|
184
|
-
[1m[35mSQL (0.
|
|
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]]
|
|
185
317
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
186
|
-
[1m[
|
|
187
|
-
[1m[
|
|
188
|
-
[1m[35m (0.
|
|
189
|
-
[1m[
|
|
190
|
-
[1m[
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
Message-ID: <52c90415f1b80_68dd8082dbf8635d@tomass-air-11.mail>
|
|
197
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
|
198
|
-
Mime-Version: 1.0
|
|
199
|
-
Content-Type: text/html;
|
|
200
|
-
charset=UTF-8
|
|
201
|
-
Content-Transfer-Encoding: 7bit
|
|
202
|
-
layout-name: action_mailer
|
|
203
|
-
layout-path: notify_user/layouts
|
|
204
|
-
|
|
205
|
-
New Post Notification happened.
|
|
206
|
-
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
|
207
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
208
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
209
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
210
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
211
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
212
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
213
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
214
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
215
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
216
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
217
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
218
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
219
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
220
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
221
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
222
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.3ms)
|
|
223
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.9ms)
|
|
224
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
|
|
225
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms)
|
|
226
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
227
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
228
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms)
|
|
229
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.7ms)
|
|
230
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
|
|
231
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms)
|
|
232
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
233
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
234
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
235
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
236
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.3ms)
|
|
237
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.7ms)
|
|
238
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
|
|
239
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.5ms)
|
|
240
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
241
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
242
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms)
|
|
243
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (1.8ms)
|
|
244
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
|
|
245
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb (0.6ms)
|
|
246
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
247
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
248
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
249
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
250
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.2ms)
|
|
251
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb within notify_user/layouts/action_mailer (1.8ms)
|
|
252
|
-
Rendered notify_user/new_post_notification/action_mailer/notification.html.erb (0.0ms)
|
|
253
|
-
Rendered /Users/tomas/Work/Papercloud/notify_user/app/views/notify_user/action_mailer/notification.html.erb within notify_user/layouts/action_mailer (0.5ms)
|
|
254
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
255
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[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
|
|
256
328
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
257
|
-
[1m[
|
|
258
|
-
[1m[
|
|
259
|
-
|
|
260
|
-
[1m[
|
|
261
|
-
|
|
262
|
-
[1m[35m (0.
|
|
263
|
-
[1m[36m (0.
|
|
264
|
-
[1m[
|
|
265
|
-
[1m[
|
|
266
|
-
[1m[35m (0.
|
|
267
|
-
[1m[36m (0.
|
|
268
|
-
[1m[35mSQL (
|
|
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]]
|
|
269
345
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
270
|
-
|
|
271
|
-
[1m[
|
|
272
|
-
|
|
273
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
274
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
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
|
|
275
349
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
276
|
-
[1m[35mSQL (0.
|
|
277
|
-
[1m[36m (0.
|
|
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
|
|
278
356
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
279
|
-
[1m[
|
|
280
|
-
[1m[
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
[1m[
|
|
284
|
-
[1m[
|
|
285
|
-
|
|
286
|
-
[1m[
|
|
287
|
-
[1m[
|
|
288
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
289
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
290
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
|
|
291
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
292
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
293
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
|
|
294
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
295
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
296
|
-
Parameters: {"ids"=>["1"]}
|
|
297
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
|
|
298
|
-
[1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m
|
|
299
|
-
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)
|
|
300
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
|
301
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
302
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
303
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
304
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
305
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
306
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
307
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
308
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
309
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
|
|
310
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
311
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
312
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
|
|
313
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
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
|
|
314
366
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
315
|
-
[1m[36m (0.
|
|
316
|
-
[1m[
|
|
317
|
-
[1m[36m (0.
|
|
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
|
|
318
404
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
319
|
-
[1m[36mSQL (0.
|
|
320
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
321
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
322
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
|
|
323
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
324
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
325
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
|
|
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]]
|
|
326
406
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
327
|
-
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m
|
|
328
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]]
|
|
329
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
330
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
|
331
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
332
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
333
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
|
|
334
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
335
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
336
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
|
|
337
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
338
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
339
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
340
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
341
407
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
342
|
-
[1m[
|
|
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'
|
|
343
413
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
344
|
-
[1m[35m (0.
|
|
345
|
-
[1m[
|
|
346
|
-
[1m[35m (0.
|
|
347
|
-
[1m[
|
|
348
|
-
[1m[
|
|
349
|
-
[1m[36m (0.
|
|
350
|
-
[1m[35m (0.
|
|
351
|
-
[1m[36m (0.
|
|
352
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
|
|
353
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
354
|
-
[1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
|
|
355
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
356
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
357
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
358
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
|
|
359
|
-
[1m[36m (0.0ms)[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
|
|
360
422
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
361
|
-
[1m[36mSQL (0.
|
|
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]]
|
|
362
424
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
363
425
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
364
|
-
[1m[
|
|
365
|
-
[1m[
|
|
366
|
-
[1m[
|
|
367
|
-
[1m[
|
|
368
|
-
[1m[
|
|
369
|
-
[1m[
|
|
370
|
-
[1m[
|
|
371
|
-
[1m[
|
|
372
|
-
[1m[
|
|
373
|
-
[1m[
|
|
374
|
-
[1m[
|
|
375
|
-
[1m[
|
|
376
|
-
[1m[35m (0.
|
|
377
|
-
[1m[
|
|
378
|
-
[1m[
|
|
379
|
-
[1m[36m (0.
|
|
380
|
-
[1m[
|
|
381
|
-
[1m[
|
|
382
|
-
[1m[
|
|
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
|
|
383
458
|
|
|
384
|
-
Sent mail to user@example.com (
|
|
385
|
-
Date:
|
|
459
|
+
Sent mail to user@example.com (10.7ms)
|
|
460
|
+
Date: Mon, 28 Apr 2014 11:55:43 +1000
|
|
386
461
|
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
387
462
|
To: user@example.com
|
|
388
|
-
Message-ID: <
|
|
463
|
+
Message-ID: <535db51f6c70a_7503fdda542dbec85a1@wp.local.mail>
|
|
389
464
|
Subject: Rails402: You have new Newpostnotification notifications.
|
|
390
465
|
Mime-Version: 1.0
|
|
391
466
|
Content-Type: text/html;
|
|
@@ -412,7 +487,9 @@ ing: optimizeLegibility;">
|
|
|
412
487
|
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
413
488
|
">
|
|
414
489
|
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
415
|
-
|
|
490
|
+
=
|
|
491
|
+
|
|
492
|
+
<div>
|
|
416
493
|
New Post Notification happened. =
|
|
417
494
|
|
|
418
495
|
</div>
|
|
@@ -425,6 +502,11 @@ ing: optimizeLegibility;">
|
|
|
425
502
|
</div>
|
|
426
503
|
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
427
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>
|
|
428
510
|
<p style=3D"text-align: center;">
|
|
429
511
|
This is the default generated layout. A privacy declaration could g=
|
|
430
512
|
o here.
|
|
@@ -440,32 +522,40 @@ o here.
|
|
|
440
522
|
</body>
|
|
441
523
|
</html>=
|
|
442
524
|
|
|
443
|
-
[1m[
|
|
444
|
-
[1m[
|
|
445
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
446
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00]]
|
|
447
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
525
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
526
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
448
527
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
449
|
-
[1m[36mSQL (0.
|
|
450
|
-
[1m[35m (0.
|
|
451
|
-
[1m[
|
|
452
|
-
[1m[
|
|
453
|
-
[1m[
|
|
454
|
-
[1m[35m (0.
|
|
455
|
-
[1m[
|
|
456
|
-
[1m[
|
|
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]]
|
|
457
552
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
458
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
459
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 07:16:13 UTC +00:00], ["params", "--- {}\n"]]
|
|
460
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
461
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
462
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
463
553
|
|
|
464
|
-
Sent mail to user@example.com (
|
|
465
|
-
Date:
|
|
554
|
+
Sent mail to user@example.com (8.7ms)
|
|
555
|
+
Date: Mon, 28 Apr 2014 11:55:43 +1000
|
|
466
556
|
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
467
557
|
To: user@example.com
|
|
468
|
-
Message-ID: <
|
|
558
|
+
Message-ID: <535db51f8774f_7503fdda542dbec8663@wp.local.mail>
|
|
469
559
|
Subject: Rails402: You have a new Newpostnotification notification.
|
|
470
560
|
Mime-Version: 1.0
|
|
471
561
|
Content-Type: text/html;
|
|
@@ -493,10 +583,16 @@ ing: optimizeLegibility;">
|
|
|
493
583
|
">
|
|
494
584
|
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
495
585
|
New Post Notification happened.
|
|
586
|
+
|
|
496
587
|
</div>
|
|
497
588
|
</div>
|
|
498
589
|
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
499
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>
|
|
500
596
|
<p style=3D"text-align: center;">
|
|
501
597
|
This is the default generated layout. A privacy declaration could g=
|
|
502
598
|
o here.
|
|
@@ -512,155 +608,76 @@ o here.
|
|
|
512
608
|
</body>
|
|
513
609
|
</html>=
|
|
514
610
|
|
|
515
|
-
[1m[
|
|
516
|
-
[1m[
|
|
517
|
-
[1m[
|
|
518
|
-
[1m[
|
|
519
|
-
[1m[
|
|
520
|
-
[1m[
|
|
521
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
522
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
523
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
524
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
525
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
526
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
527
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
528
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
529
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
530
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
531
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
532
|
-
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
533
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
534
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
|
535
|
-
[1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
|
536
|
-
Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)
|
|
537
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
|
538
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
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
|
|
539
617
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
540
|
-
[1m[
|
|
541
|
-
[1m[
|
|
542
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
543
|
-
[1m[35mSQL (1.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
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]]
|
|
544
620
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
545
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
|
546
|
-
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
|
|
547
|
-
Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.4ms)
|
|
548
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
549
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
550
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
551
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
552
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
553
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
554
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
555
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
556
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
557
|
-
Parameters: {"ids"=>["1"]}
|
|
558
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m
|
|
559
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
|
|
560
|
-
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms)
|
|
561
|
-
[1m[36mNewPostNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
562
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
|
563
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
564
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
565
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
566
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
567
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
568
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
569
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
570
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
571
|
-
Parameters: {"ids"=>["1"]}
|
|
572
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
|
|
573
|
-
[1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m
|
|
574
|
-
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)
|
|
575
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
|
576
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
577
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
578
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
579
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
580
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
581
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
582
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
583
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
584
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
585
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
586
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
587
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
588
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
589
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
590
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
591
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
|
592
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
593
621
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
594
|
-
[1m[
|
|
595
|
-
[1m[35m (0.
|
|
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
|
|
596
630
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
597
|
-
[1m[
|
|
598
|
-
[1m[
|
|
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
|
|
599
639
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
600
|
-
[1m[36mSQL (0.5ms)[0m [
|
|
601
|
-
[1m[35m (0.
|
|
602
|
-
[1m[36m (0.2ms)[0m [
|
|
603
|
-
[1m[
|
|
604
|
-
[1m[
|
|
605
|
-
[1m[
|
|
606
|
-
[1m[36m (0.
|
|
607
|
-
[1m[
|
|
608
|
-
[1m[36mSQL (0.
|
|
609
|
-
[1m[35m (0.
|
|
610
|
-
[1m[
|
|
611
|
-
[1m[
|
|
612
|
-
[1m[
|
|
613
|
-
[1m[
|
|
614
|
-
[1m[
|
|
615
|
-
[1m[35m (0.
|
|
616
|
-
[1m[
|
|
617
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
618
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
619
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
620
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
621
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
622
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
623
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
|
|
624
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
625
|
-
[1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
|
|
626
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
627
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
628
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
629
|
-
[1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
|
|
630
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
631
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
632
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
633
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
634
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
635
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
636
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
637
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
638
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
639
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00]]
|
|
640
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
641
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]]
|
|
642
|
-
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
643
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
|
644
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
645
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
646
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
|
|
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]]
|
|
647
657
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
648
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
649
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
650
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:46:46 UTC +00:00], ["params", "--- {}\n"]]
|
|
651
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
652
658
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
653
|
-
[1m[
|
|
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]]
|
|
654
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
|
|
655
671
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
656
|
-
[1m[
|
|
657
|
-
[1m[
|
|
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
|
|
658
675
|
|
|
659
676
|
Sent mail to user@example.com (8.5ms)
|
|
660
|
-
Date:
|
|
677
|
+
Date: Mon, 28 Apr 2014 11:55:43 +1000
|
|
661
678
|
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
662
679
|
To: user@example.com
|
|
663
|
-
Message-ID: <
|
|
680
|
+
Message-ID: <535db51f9e9e7_7503fdda542dbec872a@wp.local.mail>
|
|
664
681
|
Subject: Rails402: You have new Newpostnotification notifications.
|
|
665
682
|
Mime-Version: 1.0
|
|
666
683
|
Content-Type: text/html;
|
|
@@ -687,7 +704,9 @@ ing: optimizeLegibility;">
|
|
|
687
704
|
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
688
705
|
">
|
|
689
706
|
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
690
|
-
|
|
707
|
+
=
|
|
708
|
+
|
|
709
|
+
<div>
|
|
691
710
|
New Post Notification happened. =
|
|
692
711
|
|
|
693
712
|
</div>
|
|
@@ -700,6 +719,11 @@ ing: optimizeLegibility;">
|
|
|
700
719
|
</div>
|
|
701
720
|
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
702
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>
|
|
703
727
|
<p style=3D"text-align: center;">
|
|
704
728
|
This is the default generated layout. A privacy declaration could g=
|
|
705
729
|
o here.
|
|
@@ -715,32 +739,40 @@ o here.
|
|
|
715
739
|
</body>
|
|
716
740
|
</html>=
|
|
717
741
|
|
|
718
|
-
[1m[
|
|
719
|
-
[1m[
|
|
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
|
|
720
747
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
721
|
-
[1m[
|
|
722
|
-
[1m[
|
|
723
|
-
[1m[35m (0.
|
|
724
|
-
[1m[
|
|
725
|
-
[1m[
|
|
726
|
-
[1m[36mNotifyUser::BaseNotification Load (0.
|
|
727
|
-
[1m[
|
|
728
|
-
[1m[
|
|
729
|
-
[1m[35m (0.
|
|
730
|
-
[1m[
|
|
731
|
-
[1m[
|
|
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'
|
|
732
761
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
733
|
-
[1m[
|
|
734
|
-
[1m[
|
|
735
|
-
[1m[35m (0.
|
|
736
|
-
[1m[36mNotifyUser::
|
|
737
|
-
[1m[
|
|
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
|
|
738
770
|
|
|
739
|
-
Sent mail to user@example.com (
|
|
740
|
-
Date:
|
|
771
|
+
Sent mail to user@example.com (9.5ms)
|
|
772
|
+
Date: Mon, 28 Apr 2014 11:55:43 +1000
|
|
741
773
|
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
742
774
|
To: user@example.com
|
|
743
|
-
Message-ID: <
|
|
775
|
+
Message-ID: <535db51faa8cd_7503fdda542dbec884b@wp.local.mail>
|
|
744
776
|
Subject: Rails402: You have a new Newpostnotification notification.
|
|
745
777
|
Mime-Version: 1.0
|
|
746
778
|
Content-Type: text/html;
|
|
@@ -768,10 +800,16 @@ ing: optimizeLegibility;">
|
|
|
768
800
|
">
|
|
769
801
|
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
770
802
|
New Post Notification happened.
|
|
803
|
+
|
|
771
804
|
</div>
|
|
772
805
|
</div>
|
|
773
806
|
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
774
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>
|
|
775
813
|
<p style=3D"text-align: center;">
|
|
776
814
|
This is the default generated layout. A privacy declaration could g=
|
|
777
815
|
o here.
|
|
@@ -787,915 +825,250 @@ o here.
|
|
|
787
825
|
</body>
|
|
788
826
|
</html>=
|
|
789
827
|
|
|
790
|
-
[1m[
|
|
791
|
-
[1m[
|
|
792
|
-
[1m[
|
|
793
|
-
[1m[
|
|
794
|
-
[1m[
|
|
795
|
-
[1m[
|
|
796
|
-
[1m[
|
|
797
|
-
[1m[
|
|
798
|
-
[1m[
|
|
799
|
-
[1m[
|
|
800
|
-
[1m[
|
|
801
|
-
[1m[
|
|
802
|
-
[1m[
|
|
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]]
|
|
803
844
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
804
|
-
[1m[36m (0.
|
|
805
|
-
[1m[
|
|
806
|
-
[1m[36m (0.
|
|
807
|
-
[1m[35mNewPostNotification Load (0.
|
|
808
|
-
[1m[
|
|
809
|
-
[1m[35m (0.
|
|
810
|
-
[1m[36m (0.
|
|
811
|
-
[1m[35m (0.
|
|
812
|
-
[1m[36m (0.
|
|
813
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
814
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
815
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
816
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
817
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
818
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
819
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
820
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
821
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
822
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
823
|
-
[1m[36m (1.1ms)[0m [1mbegin transaction[0m
|
|
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
|
|
824
854
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
825
|
-
[1m[36mSQL (
|
|
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]]
|
|
826
856
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
827
|
-
|
|
828
|
-
[1m[
|
|
829
|
-
|
|
830
|
-
[1m[35m (
|
|
831
|
-
[1m[36m (0.1ms)[0m [
|
|
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
|
|
832
864
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
833
|
-
[1m[
|
|
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]]
|
|
834
872
|
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
835
873
|
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
836
|
-
[1m[
|
|
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'
|
|
837
883
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
838
|
-
|
|
839
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
|
|
840
|
-
Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.2ms)
|
|
841
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
842
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
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'
|
|
843
885
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
844
|
-
[1m[
|
|
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'
|
|
845
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
|
|
846
898
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
847
|
-
[1m[36mSQL (0.
|
|
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]]
|
|
848
900
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
[1m[36mSQL (0.
|
|
852
|
-
[1m[
|
|
853
|
-
|
|
854
|
-
[1m[
|
|
855
|
-
[1m[
|
|
856
|
-
[1m[
|
|
857
|
-
[1m[
|
|
858
|
-
[1m[
|
|
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]]
|
|
859
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
|
|
860
927
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
861
|
-
[1m[35mSQL (0.
|
|
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]]
|
|
862
929
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
863
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
864
|
-
Parameters: {"ids"=>["1"]}
|
|
865
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
|
|
866
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m
|
|
867
|
-
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms)
|
|
868
|
-
[1m[35m (1.3ms)[0m rollback transaction
|
|
869
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
870
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
871
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
872
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
873
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
874
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
875
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
876
930
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
877
|
-
[1m[
|
|
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]]
|
|
878
946
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
879
|
-
[1m[36m (0.
|
|
880
|
-
[1m[
|
|
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]]
|
|
881
951
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
882
952
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
883
|
-
[1m[
|
|
884
|
-
[1m[
|
|
885
|
-
[1m[36m (0.
|
|
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
|
|
886
956
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
887
|
-
[1m[
|
|
888
|
-
[1m[35m (0.
|
|
889
|
-
[1m[36m (0.
|
|
890
|
-
[1m[
|
|
891
|
-
[1m[36m (0.
|
|
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
|
|
892
1004
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
893
|
-
[1m[
|
|
894
|
-
[1m[
|
|
895
|
-
[1m[36m (0.
|
|
896
|
-
[1m[
|
|
897
|
-
[1m[
|
|
898
|
-
[1m[
|
|
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
|
|
899
1017
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
900
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
901
|
-
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
902
1018
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
903
|
-
[1m[
|
|
904
|
-
[1m[
|
|
905
|
-
[1m[36m (0.1ms)[0m [
|
|
906
|
-
[1m[
|
|
907
|
-
[1m[
|
|
908
|
-
[1m[35m (0.
|
|
909
|
-
[1m[36m (0.
|
|
910
|
-
[1m[
|
|
911
|
-
[1m[
|
|
912
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
913
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
|
|
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]]
|
|
914
1028
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
915
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
916
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
917
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
918
|
-
[1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
|
|
919
1029
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
920
|
-
[1m[
|
|
921
|
-
[1m[36m (0.1ms)[0m [
|
|
922
|
-
[1m[
|
|
923
|
-
[1m[36m (0.
|
|
924
|
-
[1m[
|
|
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
|
|
925
1037
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
926
|
-
[1m[35mSQL (0.
|
|
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]]
|
|
927
1039
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
928
1040
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
929
|
-
[1m[
|
|
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]]
|
|
930
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
|
|
931
1051
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
932
|
-
[1m[35mSQL (0.
|
|
933
|
-
[1m[36m (0.
|
|
934
|
-
[1m[
|
|
935
|
-
[1m[
|
|
936
|
-
[1m[
|
|
937
|
-
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
938
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
939
|
-
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
940
|
-
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
941
|
-
[1m[36m (2.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
942
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
943
|
-
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
944
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
945
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
946
|
-
[1m[35mSQL (0.5ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
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]]
|
|
947
1057
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
948
1058
|
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
949
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
950
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
951
|
-
|
|
952
|
-
Sent mail to user@example.com (10.8ms)
|
|
953
|
-
Date: Sun, 05 Jan 2014 21:50:55 +1100
|
|
954
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
955
|
-
To: user@example.com
|
|
956
|
-
Message-ID: <52c9390f9c98d_74b380c2bbec64367@Tomass-MacBook-Air-11.local.mail>
|
|
957
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
|
958
|
-
Mime-Version: 1.0
|
|
959
|
-
Content-Type: text/html;
|
|
960
|
-
charset=UTF-8
|
|
961
|
-
Content-Transfer-Encoding: quoted-printable
|
|
962
|
-
|
|
963
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
964
|
-
tml4/strict.dtd">
|
|
965
|
-
<html>
|
|
966
|
-
<head>
|
|
967
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
968
|
-
"/>
|
|
969
|
-
<title></title>
|
|
970
|
-
</head>
|
|
971
|
-
|
|
972
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
973
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
974
|
-
ing: optimizeLegibility;">
|
|
975
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
976
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
977
|
-
Logo
|
|
978
|
-
</div>
|
|
979
|
-
</div>
|
|
980
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
981
|
-
">
|
|
982
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
983
|
-
<div>
|
|
984
|
-
New Post Notification happened. =
|
|
985
|
-
|
|
986
|
-
</div>
|
|
987
|
-
<div>
|
|
988
|
-
New Post Notification happened. =
|
|
989
|
-
|
|
990
|
-
</div>
|
|
991
|
-
|
|
992
|
-
</div>
|
|
993
|
-
</div>
|
|
994
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
995
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
996
|
-
<p style=3D"text-align: center;">
|
|
997
|
-
This is the default generated layout. A privacy declaration could g=
|
|
998
|
-
o here.
|
|
999
|
-
</p>
|
|
1000
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
1001
|
-
=C2=A9 MyCompany Pty Ltd
|
|
1002
|
-
</p>
|
|
1003
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
1004
|
-
ABN 123 456 789
|
|
1005
|
-
</p>
|
|
1006
|
-
</div>
|
|
1007
|
-
</div>
|
|
1008
|
-
</body>
|
|
1009
|
-
</html>=
|
|
1010
|
-
|
|
1011
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
1012
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1013
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1014
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
|
|
1015
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1016
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1017
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
|
|
1018
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1019
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
1020
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1021
|
-
[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
|
1022
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1023
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
1024
|
-
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
1025
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1026
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1027
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
1028
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1029
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
1030
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1031
|
-
|
|
1032
|
-
Sent mail to user@example.com (8.4ms)
|
|
1033
|
-
Date: Sun, 05 Jan 2014 21:50:55 +1100
|
|
1034
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
1035
|
-
To: user@example.com
|
|
1036
|
-
Message-ID: <52c9390fa861b_74b380c2bbec6444b@Tomass-MacBook-Air-11.local.mail>
|
|
1037
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
|
1038
|
-
Mime-Version: 1.0
|
|
1039
|
-
Content-Type: text/html;
|
|
1040
|
-
charset=UTF-8
|
|
1041
|
-
Content-Transfer-Encoding: quoted-printable
|
|
1042
|
-
|
|
1043
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
1044
|
-
tml4/strict.dtd">
|
|
1045
|
-
<html>
|
|
1046
|
-
<head>
|
|
1047
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
1048
|
-
"/>
|
|
1049
|
-
<title></title>
|
|
1050
|
-
</head>
|
|
1051
|
-
|
|
1052
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
1053
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
1054
|
-
ing: optimizeLegibility;">
|
|
1055
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
1056
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
1057
|
-
Logo
|
|
1058
|
-
</div>
|
|
1059
|
-
</div>
|
|
1060
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
1061
|
-
">
|
|
1062
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
1063
|
-
New Post Notification happened.
|
|
1064
|
-
</div>
|
|
1065
|
-
</div>
|
|
1066
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
1067
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
1068
|
-
<p style=3D"text-align: center;">
|
|
1069
|
-
This is the default generated layout. A privacy declaration could g=
|
|
1070
|
-
o here.
|
|
1071
|
-
</p>
|
|
1072
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
1073
|
-
=C2=A9 MyCompany Pty Ltd
|
|
1074
|
-
</p>
|
|
1075
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
1076
|
-
ABN 123 456 789
|
|
1077
|
-
</p>
|
|
1078
|
-
</div>
|
|
1079
|
-
</div>
|
|
1080
|
-
</body>
|
|
1081
|
-
</html>=
|
|
1082
|
-
|
|
1083
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
1084
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1085
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1086
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
|
|
1087
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1088
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1089
|
-
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00]]
|
|
1090
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1091
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1092
|
-
[1m[35mSQL (0.3ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
1093
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1094
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1095
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
1096
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1097
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1098
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 10:50:55 UTC +00:00], ["params", "--- {}\n"]]
|
|
1099
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1100
|
-
[1m[35mNewPostNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
1101
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
1102
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1103
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1104
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1105
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1106
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1107
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1108
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1109
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1110
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1111
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1112
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1113
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1114
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1115
|
-
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
|
1116
|
-
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
1117
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1118
|
-
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1119
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1120
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
|
1121
|
-
[1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
|
1122
|
-
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms)
|
|
1123
|
-
[1m[35m (6.8ms)[0m rollback transaction
|
|
1124
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1125
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1126
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 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[35mSQL (1.1ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1130
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1131
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
|
1132
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
|
|
1133
|
-
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.2ms)
|
|
1134
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
1135
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1136
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1137
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1138
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1139
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1140
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1141
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1142
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
1143
|
-
Parameters: {"ids"=>["1"]}
|
|
1144
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m
|
|
1145
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
|
|
1146
|
-
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.4ms)
|
|
1147
|
-
[1m[36mNewPostNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
1148
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
|
1149
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1150
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1151
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1152
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1153
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1154
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1155
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1156
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
1157
|
-
Parameters: {"ids"=>["1"]}
|
|
1158
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
|
|
1159
|
-
[1m[36mNotifyUser::BaseNotification Load (0.2ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m
|
|
1160
|
-
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms)
|
|
1161
|
-
[1m[35m (0.5ms)[0m rollback transaction
|
|
1162
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1163
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
1164
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1165
|
-
[1m[35m (0.2ms)[0m rollback transaction
|
|
1166
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1167
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
1168
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1169
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1170
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1171
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1172
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1173
|
-
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1174
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1175
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1176
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
1177
|
-
[1m[35m (0.7ms)[0m rollback transaction
|
|
1178
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1179
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1180
|
-
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1181
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1182
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1183
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1184
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1185
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1186
|
-
[1m[36mSQL (0.4ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1187
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1188
|
-
[1m[36m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m
|
|
1189
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]]
|
|
1190
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
1191
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
|
1192
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1193
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1194
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1195
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1196
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1197
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1198
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1199
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
1200
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
1201
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1202
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1203
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1204
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1205
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1206
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1207
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1208
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1209
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1210
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1211
|
-
[1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
|
|
1212
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1213
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1214
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1215
|
-
[1m[35m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
|
|
1216
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
1217
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1218
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1219
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1220
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1221
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1222
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1223
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1224
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1225
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1226
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1227
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]]
|
|
1228
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
1229
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
|
1230
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1231
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1232
|
-
[1m[36mSQL (0.5ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1233
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1234
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1235
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1236
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1237
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1238
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1239
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1240
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1241
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1242
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1243
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1244
|
-
|
|
1245
|
-
Sent mail to user@example.com (11.6ms)
|
|
1246
|
-
Date: Sun, 05 Jan 2014 22:08:05 +1100
|
|
1247
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
1248
|
-
To: user@example.com
|
|
1249
|
-
Message-ID: <52c93d15c2d49_76438082dbf89262c@Tomass-MacBook-Air-11.local.mail>
|
|
1250
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
|
1251
|
-
Mime-Version: 1.0
|
|
1252
|
-
Content-Type: text/html;
|
|
1253
|
-
charset=UTF-8
|
|
1254
|
-
Content-Transfer-Encoding: quoted-printable
|
|
1255
|
-
|
|
1256
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
1257
|
-
tml4/strict.dtd">
|
|
1258
|
-
<html>
|
|
1259
|
-
<head>
|
|
1260
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
1261
|
-
"/>
|
|
1262
|
-
<title></title>
|
|
1263
|
-
</head>
|
|
1264
|
-
|
|
1265
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
1266
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
1267
|
-
ing: optimizeLegibility;">
|
|
1268
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
1269
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
1270
|
-
Logo
|
|
1271
|
-
</div>
|
|
1272
|
-
</div>
|
|
1273
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
1274
|
-
">
|
|
1275
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
1276
|
-
<div>
|
|
1277
|
-
New Post Notification happened. =
|
|
1278
|
-
|
|
1279
|
-
</div>
|
|
1280
|
-
<div>
|
|
1281
|
-
New Post Notification happened. =
|
|
1282
|
-
|
|
1283
|
-
</div>
|
|
1284
|
-
|
|
1285
|
-
</div>
|
|
1286
|
-
</div>
|
|
1287
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
1288
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
1289
|
-
<p style=3D"text-align: center;">
|
|
1290
|
-
This is the default generated layout. A privacy declaration could g=
|
|
1291
|
-
o here.
|
|
1292
|
-
</p>
|
|
1293
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
1294
|
-
=C2=A9 MyCompany Pty Ltd
|
|
1295
|
-
</p>
|
|
1296
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
1297
|
-
ABN 123 456 789
|
|
1298
|
-
</p>
|
|
1299
|
-
</div>
|
|
1300
|
-
</div>
|
|
1301
|
-
</body>
|
|
1302
|
-
</html>=
|
|
1303
|
-
|
|
1304
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
1305
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1306
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1307
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1308
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1309
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1310
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1311
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1312
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
1313
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1314
|
-
[1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
|
1315
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1316
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
1317
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1318
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1319
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1320
|
-
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1321
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1322
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
1323
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1324
|
-
|
|
1325
|
-
Sent mail to user@example.com (10.7ms)
|
|
1326
|
-
Date: Sun, 05 Jan 2014 22:08:05 +1100
|
|
1327
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
1328
|
-
To: user@example.com
|
|
1329
|
-
Message-ID: <52c93d15ce74f_76438082dbf892715@Tomass-MacBook-Air-11.local.mail>
|
|
1330
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
|
1331
|
-
Mime-Version: 1.0
|
|
1332
|
-
Content-Type: text/html;
|
|
1333
|
-
charset=UTF-8
|
|
1334
|
-
Content-Transfer-Encoding: quoted-printable
|
|
1335
|
-
|
|
1336
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
1337
|
-
tml4/strict.dtd">
|
|
1338
|
-
<html>
|
|
1339
|
-
<head>
|
|
1340
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
1341
|
-
"/>
|
|
1342
|
-
<title></title>
|
|
1343
|
-
</head>
|
|
1344
|
-
|
|
1345
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
1346
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
1347
|
-
ing: optimizeLegibility;">
|
|
1348
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
1349
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
1350
|
-
Logo
|
|
1351
|
-
</div>
|
|
1352
|
-
</div>
|
|
1353
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
1354
|
-
">
|
|
1355
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
1356
|
-
New Post Notification happened.
|
|
1357
|
-
</div>
|
|
1358
|
-
</div>
|
|
1359
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
1360
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
1361
|
-
<p style=3D"text-align: center;">
|
|
1362
|
-
This is the default generated layout. A privacy declaration could g=
|
|
1363
|
-
o here.
|
|
1364
|
-
</p>
|
|
1365
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
1366
|
-
=C2=A9 MyCompany Pty Ltd
|
|
1367
|
-
</p>
|
|
1368
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
1369
|
-
ABN 123 456 789
|
|
1370
|
-
</p>
|
|
1371
|
-
</div>
|
|
1372
|
-
</div>
|
|
1373
|
-
</body>
|
|
1374
|
-
</html>=
|
|
1375
|
-
|
|
1376
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
1377
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1378
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1379
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1380
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1381
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1382
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00]]
|
|
1383
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1384
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1385
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1386
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1387
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1388
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1389
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1390
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1391
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 11:08:05 UTC +00:00], ["params", "--- {}\n"]]
|
|
1392
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1393
|
-
[1m[35mNewPostNotification Load (0.3ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
1394
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
1395
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1396
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1397
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1398
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1399
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1400
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1401
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1402
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1403
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1404
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1405
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1406
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1407
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1408
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
|
1409
|
-
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
1410
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1411
|
-
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1412
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1413
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
|
1414
|
-
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
|
1415
|
-
Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 1.0ms)
|
|
1416
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
|
1417
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1418
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1419
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1420
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1421
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1422
|
-
[1m[35mSQL (0.9ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1423
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1424
|
-
Processing by NotifyUser::NotificationsController#index as HTML
|
|
1425
|
-
[1m[35mNotifyUser::BaseNotification Load (0.2ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
|
|
1426
|
-
Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.2ms)
|
|
1427
|
-
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
|
1428
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
1429
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1430
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1431
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1432
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1433
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1434
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1435
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
1436
|
-
Parameters: {"ids"=>["1"]}
|
|
1437
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m
|
|
1438
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
|
|
1439
|
-
Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms)
|
|
1440
|
-
[1m[36mNewPostNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
1441
|
-
[1m[35m (0.6ms)[0m rollback transaction
|
|
1442
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1443
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1444
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1445
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1446
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1447
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "---\n:name: Mr. Blobby\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1448
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1449
|
-
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
|
1450
|
-
Parameters: {"ids"=>["1"]}
|
|
1451
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))
|
|
1452
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1'))[0m
|
|
1453
|
-
Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.3ms)
|
|
1454
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
|
1455
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1456
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
1457
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1458
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
1459
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1460
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
|
1461
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
1462
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1463
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1464
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1465
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1466
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1467
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1468
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1469
|
-
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
1470
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
|
1471
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
1472
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1473
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1474
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1475
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1476
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1477
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1478
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1479
|
-
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1480
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1481
|
-
[1m[36m (0.2ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)[0m
|
|
1482
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 1]]
|
|
1483
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
1484
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
|
1485
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1486
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1487
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1488
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1489
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1490
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1491
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1492
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
|
1493
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
1494
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1495
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1496
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1497
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1498
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1499
|
-
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1500
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1501
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1502
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1503
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1504
|
-
[1m[35m (0.1ms)[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" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1)
|
|
1505
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1506
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1507
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1508
|
-
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 2)
|
|
1509
|
-
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
|
1510
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1511
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1512
|
-
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1513
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1514
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1515
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1516
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1517
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1518
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1519
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1520
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1 [["id", 2]]
|
|
1521
|
-
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
1522
|
-
[1m[35mNotifyUser::BaseNotification Load (0.1ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
|
1523
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1524
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1525
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1526
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1527
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1528
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1529
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1530
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1531
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1532
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1533
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1534
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1535
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 2[0m [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1536
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1537
|
-
|
|
1538
|
-
Sent mail to user@example.com (9.4ms)
|
|
1539
|
-
Date: Mon, 06 Jan 2014 10:30:53 +1100
|
|
1540
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
1541
|
-
To: user@example.com
|
|
1542
|
-
Message-ID: <52c9eb2d5b986_7d8880c1bbe873f6@Tomass-MacBook-Air-11.local.mail>
|
|
1543
|
-
Subject: Rails402: You have new Newpostnotification notifications.
|
|
1544
|
-
Mime-Version: 1.0
|
|
1545
|
-
Content-Type: text/html;
|
|
1546
|
-
charset=UTF-8
|
|
1547
|
-
Content-Transfer-Encoding: quoted-printable
|
|
1548
|
-
|
|
1549
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
1550
|
-
tml4/strict.dtd">
|
|
1551
|
-
<html>
|
|
1552
|
-
<head>
|
|
1553
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
1554
|
-
"/>
|
|
1555
|
-
<title></title>
|
|
1556
|
-
</head>
|
|
1557
|
-
|
|
1558
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
1559
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
1560
|
-
ing: optimizeLegibility;">
|
|
1561
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
1562
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
1563
|
-
Logo
|
|
1564
|
-
</div>
|
|
1565
|
-
</div>
|
|
1566
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
1567
|
-
">
|
|
1568
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
1569
|
-
<div>
|
|
1570
|
-
New Post Notification happened. =
|
|
1571
|
-
|
|
1572
|
-
</div>
|
|
1573
|
-
<div>
|
|
1574
|
-
New Post Notification happened. =
|
|
1575
|
-
|
|
1576
|
-
</div>
|
|
1577
|
-
|
|
1578
|
-
</div>
|
|
1579
|
-
</div>
|
|
1580
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
1581
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
1582
|
-
<p style=3D"text-align: center;">
|
|
1583
|
-
This is the default generated layout. A privacy declaration could g=
|
|
1584
|
-
o here.
|
|
1585
|
-
</p>
|
|
1586
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
1587
|
-
=C2=A9 MyCompany Pty Ltd
|
|
1588
|
-
</p>
|
|
1589
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
1590
|
-
ABN 123 456 789
|
|
1591
|
-
</p>
|
|
1592
|
-
</div>
|
|
1593
|
-
</div>
|
|
1594
|
-
</body>
|
|
1595
|
-
</html>=
|
|
1596
|
-
|
|
1597
|
-
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
1598
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1599
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1600
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1601
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1602
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1603
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1604
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1605
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = ? LIMIT 1[0m [["id", 1]]
|
|
1606
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1607
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
|
1608
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1609
|
-
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
|
1610
|
-
[1m[35mSQL (0.1ms)[0m UPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1611
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1612
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1613
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1614
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1615
|
-
[1m[36mNotifyUser::BaseNotification Load (0.1ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
|
1616
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
|
1617
|
-
|
|
1618
|
-
Sent mail to user@example.com (6.5ms)
|
|
1619
|
-
Date: Mon, 06 Jan 2014 10:30:53 +1100
|
|
1620
|
-
From: please-change-me-at-config-initializers-notify-user@example.com
|
|
1621
|
-
To: user@example.com
|
|
1622
|
-
Message-ID: <52c9eb2d62c1f_7d8880c1bbe874a9@Tomass-MacBook-Air-11.local.mail>
|
|
1623
|
-
Subject: Rails402: You have a new Newpostnotification notification.
|
|
1624
|
-
Mime-Version: 1.0
|
|
1625
|
-
Content-Type: text/html;
|
|
1626
|
-
charset=UTF-8
|
|
1627
|
-
Content-Transfer-Encoding: quoted-printable
|
|
1628
|
-
|
|
1629
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
|
1630
|
-
tml4/strict.dtd">
|
|
1631
|
-
<html>
|
|
1632
|
-
<head>
|
|
1633
|
-
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
|
1634
|
-
"/>
|
|
1635
|
-
<title></title>
|
|
1636
|
-
</head>
|
|
1637
|
-
|
|
1638
|
-
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
|
1639
|
-
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
|
1640
|
-
ing: optimizeLegibility;">
|
|
1641
|
-
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
|
1642
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
|
1643
|
-
Logo
|
|
1644
|
-
</div>
|
|
1645
|
-
</div>
|
|
1646
|
-
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
|
1647
|
-
">
|
|
1648
|
-
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
|
1649
|
-
New Post Notification happened.
|
|
1650
|
-
</div>
|
|
1651
|
-
</div>
|
|
1652
|
-
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
|
1653
|
-
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
|
1654
|
-
<p style=3D"text-align: center;">
|
|
1655
|
-
This is the default generated layout. A privacy declaration could g=
|
|
1656
|
-
o here.
|
|
1657
|
-
</p>
|
|
1658
|
-
<p style=3D"text-align: center; margin-bottom: 0px;">
|
|
1659
|
-
=C2=A9 MyCompany Pty Ltd
|
|
1660
|
-
</p>
|
|
1661
|
-
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
|
1662
|
-
ABN 123 456 789
|
|
1663
|
-
</p>
|
|
1664
|
-
</div>
|
|
1665
|
-
</div>
|
|
1666
|
-
</body>
|
|
1667
|
-
</html>=
|
|
1668
|
-
|
|
1669
|
-
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
1670
|
-
[1m[35m (0.1ms)[0m begin transaction
|
|
1671
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1672
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1673
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1674
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
1675
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"], ["state", "pending"], ["target_id", 1], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00]]
|
|
1676
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1677
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1678
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1679
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1680
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
1681
|
-
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = ?, "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1[0m [["state", "sent"], ["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1682
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
1683
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
1684
|
-
[1m[35mSQL (0.2ms)[0m UPDATE "notify_user_notifications" SET "updated_at" = ?, "params" = ? WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1 [["updated_at", Sun, 05 Jan 2014 23:30:53 UTC +00:00], ["params", "--- {}\n"]]
|
|
1685
1059
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
1686
|
-
[1m[
|
|
1687
|
-
[1m[36m (0.
|
|
1688
|
-
[1m[35m (0.
|
|
1689
|
-
[1m[36m (0.
|
|
1690
|
-
[1m[35m (0.1ms)[0m
|
|
1691
|
-
[1m[36m (0.1ms)[0m [
|
|
1692
|
-
[1m[35m (0.
|
|
1693
|
-
[1m[36m (0.
|
|
1694
|
-
[1m[35m (0.
|
|
1695
|
-
[1m[36m (0.
|
|
1696
|
-
[1m[35m (0.
|
|
1697
|
-
[1m[36m (0.
|
|
1698
|
-
[1m[35m (0.
|
|
1699
|
-
[1m[36m (0.1ms)[0m [
|
|
1700
|
-
[1m[35m (0.
|
|
1701
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[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
|