notifiable-rails 0.15.3 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifiable/notifier_base.rb +1 -1
- data/lib/notifiable/version.rb +1 -1
- data/spec/batch_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/test_app/log/test.log +3977 -0
- metadata +2 -2
data/spec/test_app/log/test.log
CHANGED
@@ -250094,3 +250094,3980 @@ Migrating to CreateNotifiableStatuses (20131229104039)
|
|
250094
250094
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131229104039"]]
|
250095
250095
|
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
250096
250096
|
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
250097
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
250098
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250099
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
250100
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
250101
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250102
|
+
[1m[35mSQL (4.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250103
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250104
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250105
|
+
[1m[36mNotifiable::DeviceToken Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
250106
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250107
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250108
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250109
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250110
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
250111
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
250112
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
250113
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250114
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
250115
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
250116
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250117
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
250118
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
250119
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250120
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
250121
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
250122
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250123
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
250124
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
250125
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250126
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
250127
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
250128
|
+
[1m[35m (0.1ms)[0m begin transaction
|
250129
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
250130
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
250131
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250132
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250133
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250134
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250135
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250136
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
250137
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250138
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250139
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250140
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250141
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250142
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
250143
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250144
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250145
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250146
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250147
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250148
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250149
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250150
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250151
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250152
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250153
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250154
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250155
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250156
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250157
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250158
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
250159
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250160
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250161
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
250162
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250163
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250164
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250165
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250166
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250167
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
250168
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250169
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250170
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250171
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250172
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250173
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250174
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250175
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250176
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250177
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250178
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250179
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250180
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250181
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250182
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250183
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250184
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250185
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250186
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250187
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250188
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
250189
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
250190
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250191
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250192
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250193
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250194
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250195
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250196
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
250197
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
250198
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250199
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250200
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250201
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250202
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250203
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250204
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250205
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250206
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250207
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250208
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250209
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250210
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250211
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250212
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
250213
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250214
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250215
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250217
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250218
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250220
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250221
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["notification_id", 1]]
|
250222
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250223
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250224
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
250225
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ?[0m [["id", 1]]
|
250226
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
250227
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250228
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
250229
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
250230
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250231
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250232
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250233
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250234
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250235
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250236
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250237
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250238
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250239
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250240
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250241
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250242
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250243
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250244
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
250245
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250246
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250247
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250248
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250249
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250250
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250251
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250252
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
250253
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
250254
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250255
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250256
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250257
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250258
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250259
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250260
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250261
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250262
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250263
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250264
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250265
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250266
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250267
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250268
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
250269
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250270
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250271
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
250272
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250273
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250274
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250275
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250276
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250277
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
250278
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250279
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250280
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
250281
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
250282
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250283
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250284
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250285
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
250286
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
250287
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250288
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
250289
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-4@example.com", "notification"=>{}}
|
250290
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
|
250291
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1[0m
|
250292
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
250293
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
250294
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250295
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
250296
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250297
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
250298
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250299
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil]]
|
250300
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250301
|
+
Completed 200 OK in 8ms (ActiveRecord: 1.0ms)
|
250302
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
250303
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
250304
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
250305
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
250306
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250307
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250308
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250309
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250310
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250311
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250312
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250313
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250314
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250315
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250316
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250317
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250318
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250319
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250320
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250321
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
250322
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250323
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250324
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
250325
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250326
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250327
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250328
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250329
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250330
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
250331
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250332
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250333
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
250334
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
250335
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250336
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250337
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250338
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250339
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
250340
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250341
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250342
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
250343
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250344
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
250345
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-6@example.com", "notification"=>{}}
|
250346
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1[0m
|
250347
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
250348
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
250349
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
250350
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
250351
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
250352
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
250353
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
250354
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
250355
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
250356
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250357
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250358
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250359
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250360
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250361
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250362
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250363
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250364
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250365
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250366
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250367
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250368
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250369
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250370
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250371
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
250372
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250374
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
250375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250377
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250379
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250380
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
250381
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250382
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250383
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
250384
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
250385
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250386
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250387
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250388
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250389
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250390
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250391
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250392
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1[0m
|
250393
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250394
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250395
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250396
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
|
250397
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250398
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
250399
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
|
250400
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1[0m
|
250401
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
250402
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
250403
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250404
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
250405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250406
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
250407
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250408
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil]]
|
250409
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250410
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
|
250411
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
250412
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
250413
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
250414
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
250415
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
250416
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250417
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250418
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250419
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250420
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250421
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250422
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250423
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250424
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250425
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250426
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250427
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250428
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250429
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250430
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
250431
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
250432
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250433
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250434
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250435
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250436
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250437
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250438
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
250439
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
250440
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250441
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250442
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250443
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250444
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250445
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250446
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250447
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250448
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250449
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250450
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250451
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250452
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250453
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250454
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
250455
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
250456
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250457
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250458
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250459
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
250460
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250461
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250462
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250463
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250464
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250465
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250466
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250467
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-8@example.com"]]
|
250468
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250469
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250470
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250471
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250472
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250473
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
250474
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250475
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250476
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
250477
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250478
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250479
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250480
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250481
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250482
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250483
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250484
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250485
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250486
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250487
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250488
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250489
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250490
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250491
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250492
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
250493
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250494
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250495
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250496
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250497
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250498
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
250499
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250500
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250501
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250502
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250503
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250504
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
|
250505
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :sms], ["token", "ABCD9"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250506
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250507
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250508
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250509
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250511
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250512
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250513
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
250514
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
250515
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250516
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250517
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250518
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
250519
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250520
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250521
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250522
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250523
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250524
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250525
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250526
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250527
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250528
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250529
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250530
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
250531
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250532
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250533
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250534
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250535
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
250536
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250537
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250538
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250539
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250540
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250541
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250542
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250543
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
250544
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250545
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250546
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250547
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250548
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250549
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
250550
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250551
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250552
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
250553
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250554
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250555
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250556
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250557
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250558
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250559
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250560
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250561
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250562
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250563
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250564
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250565
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250566
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250567
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250568
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
250569
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
250570
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250571
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250572
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250573
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250574
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250575
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250576
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250577
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
250578
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250579
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250580
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250581
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250582
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250583
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
250584
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250585
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250586
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
250587
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
250588
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
250589
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250590
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
250591
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
250592
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250593
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
250594
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
250595
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250596
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
250597
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
250598
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250599
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
250600
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
250601
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250602
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
250603
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
250604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
250605
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
250606
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250607
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250608
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
250609
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
250610
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
250611
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
250612
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
250613
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250614
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
250615
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
250616
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250617
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
250618
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
250619
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250620
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
250621
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
250622
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250623
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
250624
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
250625
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250626
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
250627
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
250628
|
+
[1m[35m (0.1ms)[0m begin transaction
|
250629
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250630
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
250631
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250632
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250633
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250634
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250635
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250636
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
250637
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250638
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250639
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
250640
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
250641
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-13@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
250642
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
250643
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
250644
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
250645
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
250646
|
+
Unpermitted parameters: id, user_email, device_token
|
250647
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
|
250648
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
250649
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250650
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
250651
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
250652
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["token", "DEF456"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250653
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250654
|
+
Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.8ms)
|
250655
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
250656
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
250657
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250658
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250659
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250660
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250661
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250662
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250663
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250664
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250665
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250666
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250667
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250668
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250669
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250670
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250671
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250672
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
250673
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250674
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250675
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250676
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250677
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
250678
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
250679
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
250680
|
+
Unpermitted parameters: device_token
|
250681
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
250682
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250683
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
250684
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
250685
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250686
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250687
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
250688
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
250689
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
250690
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
250691
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
250692
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
250693
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250694
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
250695
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
250696
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250697
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
250698
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
250699
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250700
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
250701
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
250702
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250703
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
250704
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
250705
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250706
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
250707
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
250708
|
+
[1m[35m (0.0ms)[0m begin transaction
|
250709
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250710
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-14@example.com"]]
|
250711
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250712
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250713
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250714
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250715
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250716
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
250717
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250718
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250719
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
250720
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250721
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250723
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
250724
|
+
Parameters: {"token"=>"ABCD13", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-14@example.com", "device_token"=>{"token"=>"ABCD13", "provider"=>"mock", "app_id"=>"2"}}
|
250725
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
250726
|
+
Unpermitted parameters: user_email, device_token
|
250727
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
250728
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
250729
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250730
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
250731
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD13' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
250732
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250733
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250734
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
250735
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
250736
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
250737
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
250738
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
250739
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
250740
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250741
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250742
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250743
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250744
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250745
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250746
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250747
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250748
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
250749
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250750
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250751
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250752
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250753
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250754
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
250755
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250756
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250757
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
250758
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250759
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
250760
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-15@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
250761
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
250762
|
+
Unpermitted parameters: user_email, device_token
|
250763
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
250764
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
250765
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250766
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
250767
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
250768
|
+
Completed 422 Unprocessable Entity in 9ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
250769
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
250770
|
+
[1m[35m (0.2ms)[0m DELETE FROM "users";
|
250771
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250772
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
250773
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
250774
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250775
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
250776
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
250777
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250778
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
250779
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
250780
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250781
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
250782
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
250783
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250784
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
250785
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
250786
|
+
[1m[35m (0.1ms)[0m begin transaction
|
250787
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
250788
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
250789
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250790
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250791
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250792
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
250793
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250794
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
|
250795
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250796
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
250797
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
250798
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
250799
|
+
Parameters: {"id"=>"1", "user_email"=>"person-16@example.com", "device_token"=>{"id"=>"1"}}
|
250800
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
250801
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
250802
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
250803
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-16@example.com' LIMIT 1[0m
|
250804
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250805
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ?[0m [["id", 1]]
|
250806
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250807
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
250808
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
250809
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
250810
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250811
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
250812
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
250813
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250814
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
250815
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
250816
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250817
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
250818
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
250819
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250820
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
250821
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
250822
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250823
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
250824
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
250825
|
+
[1m[35m (0.1ms)[0m begin transaction
|
250826
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250827
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
250828
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250829
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250830
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250831
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250832
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250833
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
|
250834
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250835
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250836
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
250837
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250838
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
250839
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250840
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
250841
|
+
Parameters: {"id"=>"1", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"1"}}
|
250842
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
250843
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
250844
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
250845
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
|
250846
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
250847
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
250848
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'[0m
|
250849
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
250850
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250851
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
250852
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
250853
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250854
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
250855
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
250856
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250857
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
250858
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
250859
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250860
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
250861
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
250862
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250863
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
250864
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
250865
|
+
[1m[35m (0.0ms)[0m begin transaction
|
250866
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250867
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
250868
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250869
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
250870
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250871
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250872
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250873
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
|
250874
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250875
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250876
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
250877
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
250878
|
+
Parameters: {"token"=>"ABCD16", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD16", "provider"=>"mpns"}}
|
250879
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
|
250880
|
+
Unpermitted parameters: device_token
|
250881
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
250882
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250883
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
250884
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD16' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
250885
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["provider", "mpns"], ["user_id", nil], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250886
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250887
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
|
250888
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
250889
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
250890
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250891
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250892
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250893
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250894
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250895
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250896
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250897
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250898
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250899
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
250900
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250901
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250902
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250903
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250904
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250905
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
250906
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
250907
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250908
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
250909
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250910
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250911
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250912
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250913
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
250914
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-20@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
250915
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
250916
|
+
Unpermitted parameters: user_email, device_token
|
250917
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1[0m
|
250918
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
|
250919
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
250920
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
250921
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
250922
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250923
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250924
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
250925
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
250926
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
250927
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
250928
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
250929
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
250930
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250931
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
250932
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
250933
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250934
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
250935
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
250936
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250937
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
250938
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
250939
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250940
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
250941
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
250942
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250943
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
250944
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
250945
|
+
[1m[35m (0.0ms)[0m begin transaction
|
250946
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
250947
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
|
250948
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250949
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250950
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250951
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250952
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
250953
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
|
250954
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 1]]
|
250955
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250956
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
250957
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
250958
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
250959
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
250960
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
250961
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
250962
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
250963
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
250964
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
250965
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17'
|
250966
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
250967
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250968
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
250969
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
250970
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250971
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
250972
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
250973
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250974
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
250975
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
250976
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
250977
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
250978
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
250979
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
250980
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
250981
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
250982
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
250983
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250984
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
250985
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250986
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
250987
|
+
Parameters: {"id"=>"59", "user_email"=>"person-22@example.com", "device_token"=>{"id"=>"59"}}
|
250988
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "59"]]
|
250989
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
250990
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250991
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
250992
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
250993
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
250994
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00]]
|
250995
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
250996
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
250997
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1[0m
|
250998
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Wed, 30 Apr 2014 23:42:08 UTC +00:00], ["user_id", 2]]
|
250999
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251000
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251001
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18'[0m
|
251002
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
251003
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251004
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
251005
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
251006
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251007
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
251008
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
251009
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251010
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
251011
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
251012
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251013
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
251014
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
251015
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251016
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
251017
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
251018
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
251019
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251020
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
251021
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251022
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251023
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251024
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251025
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251026
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
251027
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251028
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251029
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251030
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251031
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251032
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
251033
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
251034
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251035
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
251036
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
251037
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251038
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
251039
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
251040
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251041
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
251042
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
251043
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251044
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
251045
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
251046
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251047
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
251048
|
+
[1m[36m (6.7ms)[0m [1mrollback transaction[0m
|
251049
|
+
[1m[35m (0.1ms)[0m begin transaction
|
251050
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
251051
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
251052
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251053
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251054
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251055
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
251056
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
251057
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
251058
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251059
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
251060
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
251061
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251062
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251063
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
251064
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251065
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
251066
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
251067
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251068
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
251069
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
251070
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251071
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
251072
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
251073
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251074
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
251075
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
251076
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251077
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
251078
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
251079
|
+
[1m[35m (0.0ms)[0m begin transaction
|
251080
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251081
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-3@example.com"]]
|
251082
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251083
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251084
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251085
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
251086
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
251087
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1
|
251088
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251089
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251090
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251091
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251092
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251093
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
251094
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
251095
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251096
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251097
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251098
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251099
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251100
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251101
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251102
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251103
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251104
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251105
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251106
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251107
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251108
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251109
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
251110
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251111
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251112
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251113
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251114
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251115
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251116
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251117
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251118
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["notification_id", 1]]
|
251119
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251120
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251121
|
+
[1m[35mNotifiable::NotificationStatus Load (0.2ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
251122
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ?[0m [["id", 1]]
|
251123
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
251124
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251125
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
251126
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251127
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251128
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251129
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251130
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251131
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251132
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251133
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251134
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251135
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251136
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251137
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251138
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251139
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251140
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251141
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251142
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
251143
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251144
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251145
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251146
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251147
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251148
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251149
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
251150
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251151
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251152
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251153
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251154
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251155
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251156
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251157
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251158
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251159
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251160
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251161
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251162
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251163
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251164
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251165
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
251166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251167
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251168
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251169
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251170
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251171
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251172
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251173
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
251174
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251175
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251176
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251177
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251178
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251179
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251180
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251181
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251182
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251183
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251184
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251185
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251186
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251187
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251188
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251189
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
251190
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251191
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251192
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251193
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251194
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
251195
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251196
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251197
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
251198
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251199
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251200
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251201
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251202
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251203
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251204
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251205
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251206
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251207
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251208
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251209
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251210
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251211
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251212
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251213
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
251214
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251215
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251216
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251217
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251218
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251219
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251220
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251221
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251222
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-4@example.com"]]
|
251223
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251224
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251225
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251226
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251227
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251228
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
251229
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251230
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251231
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
251232
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
251233
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251234
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
251235
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
251236
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL[0m
|
251237
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
251238
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251239
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251240
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251241
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251242
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251243
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251244
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251245
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251246
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251247
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
251248
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251249
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251250
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251251
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251252
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251253
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
251254
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251255
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251256
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251257
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251258
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
251259
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
251260
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0[0m
|
251261
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
251262
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251263
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251264
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251265
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251266
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251267
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251268
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251269
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251270
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251271
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
251272
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251273
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251274
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251275
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251276
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251277
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
251278
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
251279
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251280
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251281
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251282
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251283
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
251284
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251285
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251286
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251287
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251289
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
251290
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :sms], ["token", "ABCD5"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251291
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251292
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251293
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251294
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251295
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251296
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251297
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251298
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
251299
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
251300
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
251301
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251302
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251303
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251304
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251305
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251306
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251307
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251308
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251309
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251310
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251311
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251312
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251313
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251314
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251315
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
251316
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251317
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251318
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251319
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251320
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
251321
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251322
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251323
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251324
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251325
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251326
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251327
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251328
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
251329
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251330
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251331
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251332
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251333
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251334
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
251335
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251336
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251337
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
251338
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251339
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251340
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251341
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251342
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251343
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251344
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251345
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-8@example.com"]]
|
251346
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251347
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251348
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251349
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251350
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251351
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1
|
251352
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 5], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 2]]
|
251353
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251354
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
251355
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251356
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
251357
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251358
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251359
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
251360
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251361
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
|
251362
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
251363
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
251364
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251365
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
251366
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
|
251367
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251368
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 2]]
|
251369
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
|
251370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251371
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 4]]
|
251372
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2[0m [["sent_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
|
251373
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251374
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
251375
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
251376
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
251377
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
251378
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
251379
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
|
251380
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
251381
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
251382
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
251383
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251384
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251385
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251386
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251387
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251388
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251389
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251390
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251391
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251392
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251393
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251394
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251395
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251396
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251397
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251398
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251399
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251400
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251401
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251402
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
251403
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251404
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251406
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251407
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251408
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251409
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251410
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
251411
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251412
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251413
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251414
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251415
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251416
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
251417
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251418
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251419
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
251420
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251421
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-10@example.com"]]
|
251422
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251423
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251424
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251425
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251426
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251427
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1
|
251428
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 2]]
|
251429
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251430
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
251431
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251432
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
251433
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251434
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251435
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
251436
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251437
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
|
251438
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
251439
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
251440
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251441
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
251442
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 2], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
|
251443
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251444
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
251445
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
251446
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
251447
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
251448
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
251449
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
251450
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
251451
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
251452
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
251453
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251454
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251455
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251456
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251457
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251458
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251459
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251460
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251461
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251462
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251463
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251464
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251465
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251466
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251467
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251468
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
251469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251470
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
251471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251473
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251474
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251475
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251476
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
251477
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251478
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251479
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251480
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
251481
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251482
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251483
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251485
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
251486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251487
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251488
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
251489
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251490
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
251491
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-12@example.com", "notification"=>{}}
|
251492
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1[0m
|
251493
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
251494
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
251495
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
251496
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
251497
|
+
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.3ms)
|
251498
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
251499
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
251500
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
251501
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
251502
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251503
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251504
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251505
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251506
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251507
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251508
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251509
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251510
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251511
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251512
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251513
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251514
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251515
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251516
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251517
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251518
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251519
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251520
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
251521
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251522
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251523
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251524
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251525
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251526
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
251527
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251528
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251529
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251530
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
251531
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251532
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251533
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251534
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251535
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251536
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251537
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251538
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
251539
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251540
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251541
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251542
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
|
251543
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251544
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
251545
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
|
251546
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1[0m
|
251547
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
251548
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
251549
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251550
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
251551
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251552
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
251553
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251554
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
|
251555
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251556
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
251557
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
251558
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
251559
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
251560
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
251561
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251562
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251563
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251564
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251565
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251566
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251567
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251568
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251569
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251570
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251571
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251572
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251573
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251574
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251575
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251576
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251577
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251578
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251579
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
251580
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251581
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
251582
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251583
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251584
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251585
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
251586
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251587
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251588
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251589
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
251590
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251591
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251592
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251593
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251594
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
251595
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251596
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
251597
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-14@example.com", "notification"=>{}}
|
251598
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
|
251599
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
251600
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
251601
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
251602
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251603
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
251604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251605
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
251606
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251607
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["params", nil]]
|
251608
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251609
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
251610
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
251611
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
251612
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
251613
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
251614
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251615
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251616
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251617
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251618
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251619
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251620
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251621
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251622
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251623
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
251624
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251625
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251626
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251627
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251628
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251629
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251630
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
251631
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251632
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-15@example.com"]]
|
251633
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251634
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
251635
|
+
Parameters: {"id"=>"59", "user_email"=>"person-15@example.com", "device_token"=>{"id"=>"59"}}
|
251636
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "59"]]
|
251637
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
|
251638
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251639
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-16@example.com"]]
|
251640
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251641
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251642
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251643
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251644
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251645
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
251646
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 2]]
|
251647
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251648
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251649
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14'[0m
|
251650
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
251651
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251652
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
251653
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
251654
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251655
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
251656
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
251657
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251658
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
251659
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
251660
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251661
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
251662
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
251663
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251664
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
251665
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
251666
|
+
[1m[35m (0.1ms)[0m begin transaction
|
251667
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251668
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
251669
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251670
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251671
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251672
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251673
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251674
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
|
251675
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251676
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251677
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
251678
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251679
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
251680
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251681
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
251682
|
+
Parameters: {"id"=>"1", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"1"}}
|
251683
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
251684
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
251685
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
251686
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
|
251687
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
251688
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
251689
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15'[0m
|
251690
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
251691
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251692
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
251693
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
251694
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251695
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
251696
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
251697
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251698
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
251699
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
251700
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251701
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
251702
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
251703
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251704
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
251705
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
251706
|
+
[1m[35m (0.0ms)[0m begin transaction
|
251707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251708
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
251709
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251711
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251712
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251713
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
251714
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-19@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
251715
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
251716
|
+
Unpermitted parameters: user_email, device_token
|
251717
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1
|
251718
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-19@example.com' LIMIT 1[0m
|
251719
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251720
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
251721
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
251722
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251723
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251724
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
251725
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
251726
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
251727
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
251728
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
251729
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251730
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251731
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251732
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251733
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251734
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251735
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251736
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251737
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251738
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
251739
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251740
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251741
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251742
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251743
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251744
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251745
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251747
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
251748
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251749
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
251750
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-20@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
251751
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
251752
|
+
Unpermitted parameters: user_email, device_token
|
251753
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1
|
251754
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1[0m
|
251755
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251756
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
251757
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
251758
|
+
Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 0.4ms)
|
251759
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
251760
|
+
[1m[35m (0.3ms)[0m DELETE FROM "users";
|
251761
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251762
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
251763
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
251764
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251765
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
251766
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
251767
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251768
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
251769
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
251770
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251771
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
251772
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
251773
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251774
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
251775
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
251776
|
+
[1m[35m (0.1ms)[0m begin transaction
|
251777
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251778
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-21@example.com"]]
|
251779
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251780
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251781
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251782
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251783
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251784
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1
|
251785
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251786
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251787
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
251788
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251789
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251790
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251791
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
251792
|
+
Parameters: {"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-21@example.com", "device_token"=>{"token"=>"ABCD16", "provider"=>"mock", "app_id"=>"2"}}
|
251793
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
251794
|
+
Unpermitted parameters: user_email, device_token
|
251795
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1
|
251796
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-21@example.com' LIMIT 1[0m
|
251797
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251798
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
251799
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD16' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
251800
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251801
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
251802
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
251803
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
251804
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
251805
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
251806
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
251807
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251808
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251809
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251810
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251811
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251812
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251813
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251814
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251815
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251816
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
251817
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251818
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251819
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251820
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251821
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251822
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251823
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251824
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251825
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-22@example.com"]]
|
251826
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251827
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251828
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251829
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251830
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251831
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
251832
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251833
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251834
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251835
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
251836
|
+
Parameters: {"token"=>"ABCD17", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD17", "provider"=>"mpns"}}
|
251837
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
251838
|
+
Unpermitted parameters: device_token
|
251839
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
251840
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251841
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
251842
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD17' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
251843
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251844
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251845
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
251846
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
251847
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
251848
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
251849
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251850
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
251851
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
251852
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251853
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
251854
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
251855
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251856
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
251857
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
251858
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251859
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
251860
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
251861
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251862
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
251863
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
251864
|
+
[1m[35m (0.1ms)[0m begin transaction
|
251865
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
251866
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251867
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251868
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
251869
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
251870
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
251871
|
+
Unpermitted parameters: device_token
|
251872
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
251873
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251874
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
251875
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
251876
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251877
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251878
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
|
251879
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
251880
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251881
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
251882
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "users"
|
251883
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251884
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251885
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251886
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251887
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251888
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251889
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251890
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251891
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251892
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
251893
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251894
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251895
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251896
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251897
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251898
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
251899
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
251900
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251901
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
251902
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251903
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251904
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251905
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251906
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251907
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1[0m
|
251908
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251909
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251910
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251911
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
251912
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-23@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
251913
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
251914
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
251915
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
251916
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
|
251917
|
+
Unpermitted parameters: user_email, device_token
|
251918
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1[0m
|
251919
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-23@example.com' LIMIT 1
|
251920
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
251921
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
251922
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
251923
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251924
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251925
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
251926
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
251927
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
251928
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
251929
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251930
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
251931
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
251932
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251933
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
251934
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
251935
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251936
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
251937
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
251938
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251939
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
251940
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
251941
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251942
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
251943
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
251944
|
+
[1m[35m (0.1ms)[0m begin transaction
|
251945
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251946
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
|
251947
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251948
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251949
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251950
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
251951
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251952
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD19' LIMIT 1
|
251953
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251954
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251955
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
251956
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
251957
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
251958
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
251959
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
251960
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
251961
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
251962
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
251963
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
251964
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD19'
|
251965
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
251966
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251967
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
251968
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
251969
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251970
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
251971
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
251972
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251973
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
251974
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
251975
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
251976
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
251977
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
251978
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
251979
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
251980
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
251981
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
251982
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251983
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-25@example.com"]]
|
251984
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
251985
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
251986
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00]]
|
251987
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251988
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251989
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD20' LIMIT 1[0m
|
251990
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Wed, 30 Apr 2014 23:42:55 UTC +00:00], ["user_id", 1]]
|
251991
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
251992
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
251993
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
251994
|
+
Parameters: {"id"=>"1", "user_email"=>"person-25@example.com", "device_token"=>{"id"=>"1"}}
|
251995
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
251996
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
251997
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
251998
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-25@example.com' LIMIT 1
|
251999
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252000
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
252001
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252002
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
|
252003
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
252004
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252005
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252006
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252007
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252008
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252009
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252010
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252011
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252012
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252013
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
252014
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252015
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252016
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252017
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252018
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252019
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252020
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
252021
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252022
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252023
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252024
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252025
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252026
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252027
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
252028
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252029
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252030
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252031
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252032
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252033
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252034
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252035
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252036
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252037
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252038
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252039
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252040
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252041
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252042
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252043
|
+
[1m[35m (6.7ms)[0m rollback transaction
|
252044
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252045
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252046
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252047
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252048
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252049
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252050
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252051
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
252052
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252053
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252054
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252055
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252056
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252057
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252058
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252059
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252060
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252061
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252062
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252063
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252064
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252065
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252066
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252067
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252068
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252069
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252070
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252071
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252072
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252073
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252074
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252075
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252076
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["notification_id", 1]]
|
252077
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252078
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252079
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
252080
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ?[0m [["id", 1]]
|
252081
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? [["id", 1]]
|
252082
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252083
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
252084
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252085
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252086
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252087
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252088
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252089
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252090
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252091
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252092
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252093
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252094
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252095
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252096
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252097
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252098
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252099
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252101
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252102
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252103
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252104
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
252105
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252106
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252107
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252109
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252111
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252112
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
252113
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252114
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252115
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252116
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252117
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252118
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
252119
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD1"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
|
252120
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252121
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
252122
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
252123
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-2@example.com"]]
|
252124
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252125
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252126
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252127
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252128
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252129
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1
|
252130
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD2"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 2]]
|
252131
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252132
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
252133
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252134
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
252135
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252136
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252137
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
252138
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252139
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)
|
252140
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
252141
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
252142
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252143
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
252144
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 2], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
|
252145
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252146
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
252147
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
252148
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
252149
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
252150
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
252151
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
252152
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
252153
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
252154
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252155
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252156
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252157
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252158
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252159
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252160
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252161
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252162
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252163
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252164
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252165
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252166
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252167
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252168
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252169
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252170
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252171
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252172
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252173
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252174
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
252175
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252176
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252177
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252178
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252179
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252180
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252181
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252182
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
252183
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252184
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252185
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252186
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252187
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252188
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
252189
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD3"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
|
252190
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252191
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
252192
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252193
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252194
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252195
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252196
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 4], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252197
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252199
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
252200
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252201
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252202
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252203
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252204
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252205
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1
|
252206
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 5], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 2]]
|
252207
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252208
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
252209
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252210
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
252211
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252212
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252213
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
252214
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252215
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)
|
252216
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
252217
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
252218
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252219
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
252220
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
|
252221
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252222
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 2]]
|
252223
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 2]]
|
252224
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252225
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 4]]
|
252226
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2[0m [["sent_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
|
252227
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252228
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
252229
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses"
|
252230
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
252231
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
252232
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
252233
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 2]]
|
252234
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
252235
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
252236
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252237
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252238
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252239
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252240
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252241
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252242
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252243
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252244
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252245
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252246
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252247
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252248
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252249
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252250
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252251
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252252
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252253
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252254
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252255
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252256
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252257
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-5@example.com"]]
|
252258
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252259
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252260
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252261
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252262
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252263
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1
|
252264
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :sms], ["token", "ABCD5"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
|
252265
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252266
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252267
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252268
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252269
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252270
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252271
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252272
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
252273
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
252274
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252275
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252276
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252277
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252278
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252279
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252280
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252281
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252282
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252283
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252284
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252285
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252286
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252287
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252288
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252289
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
252290
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252291
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252292
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-6@example.com"]]
|
252293
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252294
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252295
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252296
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252297
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252298
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
252299
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
|
252300
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252301
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252302
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
252303
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252304
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252305
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252306
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252307
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
252308
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252309
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
252310
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-6@example.com", "notification"=>{}}
|
252311
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
|
252312
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
252313
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
252314
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
252315
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252316
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
252317
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252318
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
252319
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252320
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
|
252321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252322
|
+
Completed 200 OK in 9ms (ActiveRecord: 1.2ms)
|
252323
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
252324
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
252325
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
252326
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
252327
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252328
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252329
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252330
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252331
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252332
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252333
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252334
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252335
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252336
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252337
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252338
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252339
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252340
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252341
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252342
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
252343
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252344
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252345
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
252346
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252347
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252348
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252350
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252351
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1[0m
|
252352
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
|
252353
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252354
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252355
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
252356
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252357
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252358
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252360
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252361
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252363
|
+
[1m[36mNotifiable::DeviceToken Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
252364
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252365
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252366
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252367
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
|
252368
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252369
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
252370
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
|
252371
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1[0m
|
252372
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
252373
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 2]]
|
252374
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252375
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1[0m [["status", -1]]
|
252376
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252377
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
252378
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252379
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["opened_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil]]
|
252380
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252381
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
|
252382
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
252383
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
252384
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
252385
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
252386
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252387
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252388
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252389
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252390
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252391
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252392
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252393
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252394
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252395
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252396
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252397
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252398
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252399
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252400
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252401
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252402
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252403
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252404
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-8@example.com"]]
|
252405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252406
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252407
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252408
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252409
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252410
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
252411
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
|
252412
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252413
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252414
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
252415
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252416
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252417
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252418
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252419
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
252420
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252421
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252422
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-9@example.com"]]
|
252423
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252424
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
252425
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-9@example.com", "notification"=>{}}
|
252426
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1[0m
|
252427
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
252428
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
252429
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
252430
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
252431
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
252432
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
252433
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
252434
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications"[0m
|
252435
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
252436
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252437
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252438
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252439
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252440
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252441
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252442
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252443
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252444
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252445
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252446
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252447
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252448
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252449
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252450
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252451
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252452
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252453
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252454
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252455
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
252456
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
252457
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252458
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252459
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ? [["app_id", 1]]
|
252460
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252461
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252462
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252463
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252464
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252465
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252466
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252467
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252468
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252469
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252470
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252471
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252472
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252473
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252474
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252475
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
252476
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252477
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252478
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
252479
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252480
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
252481
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252482
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252483
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252484
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
252485
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
|
252486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252487
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252488
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
252489
|
+
Parameters: {"id"=>"1", "user_email"=>"person-10@example.com", "device_token"=>{"id"=>"1"}}
|
252490
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
252491
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
252492
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
252493
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-10@example.com' LIMIT 1
|
252494
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252495
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
252496
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252497
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
252498
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
252499
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252500
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252501
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252502
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252503
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252504
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252505
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252506
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252507
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252508
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252509
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252510
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252511
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252512
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252513
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252514
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252515
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252516
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252517
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-11@example.com"]]
|
252518
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252519
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
252520
|
+
Parameters: {"id"=>"59", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"59"}}
|
252521
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "59"]]
|
252522
|
+
Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
252523
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252524
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
252525
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252526
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252527
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252528
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252529
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252530
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1[0m
|
252531
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 2]]
|
252532
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252533
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252534
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11'[0m
|
252535
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
252536
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252537
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
252538
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
252539
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252540
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
252541
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
252542
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252543
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
252544
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
252545
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252546
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
252547
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
252548
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252549
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
252550
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
252551
|
+
[1m[35m (0.1ms)[0m begin transaction
|
252552
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252553
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-13@example.com"]]
|
252554
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252555
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252556
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252557
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252558
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252559
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
252560
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["user_id", 1]]
|
252561
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252562
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
252563
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252564
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252565
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252566
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
252567
|
+
Parameters: {"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-13@example.com", "device_token"=>{"token"=>"ABCD12", "provider"=>"mock", "app_id"=>"2"}}
|
252568
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1[0m
|
252569
|
+
Unpermitted parameters: user_email, device_token
|
252570
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1
|
252571
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-13@example.com' LIMIT 1[0m
|
252572
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252573
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
252574
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD12' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
252575
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Wed, 30 Apr 2014 23:43:33 UTC +00:00]]
|
252576
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252577
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
252578
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
252579
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
252580
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
252581
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
252582
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252583
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252584
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252585
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252586
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252587
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252588
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252589
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252590
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252591
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
252592
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252593
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252594
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252595
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252596
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252597
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252598
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252599
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252600
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
252601
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252602
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
252603
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-14@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
252604
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
252605
|
+
Unpermitted parameters: user_email, device_token
|
252606
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
252607
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
252608
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252609
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
252610
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
252611
|
+
Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
252612
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
252613
|
+
[1m[35m (0.2ms)[0m DELETE FROM "users";
|
252614
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252615
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
252616
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
252617
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252618
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
252619
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
252620
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252621
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
252622
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
252623
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252624
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
252625
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
252626
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252627
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
252628
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
252629
|
+
[1m[35m (0.0ms)[0m begin transaction
|
252630
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252631
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-15@example.com"]]
|
252632
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252633
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252634
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252635
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252636
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
252637
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-15@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
252638
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
252639
|
+
Unpermitted parameters: user_email, device_token
|
252640
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1
|
252641
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-15@example.com' LIMIT 1[0m
|
252642
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252643
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
252644
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
252645
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
252646
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252647
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.7ms)
|
252648
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
252649
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
252650
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
252651
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
252652
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252653
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252654
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252655
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252656
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252657
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252658
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252659
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252660
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252661
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
252662
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252663
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252664
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252665
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252666
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252667
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252668
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252669
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252670
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252671
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
252672
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
252673
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
252674
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
252675
|
+
Unpermitted parameters: device_token
|
252676
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
252677
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252678
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
252679
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
252680
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252681
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252682
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.7ms)
|
252683
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
252684
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
252685
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
252686
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "users"[0m
|
252687
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
252688
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252689
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
252690
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
252691
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252692
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
252693
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
252694
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252695
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
252696
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
252697
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252698
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
252699
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
252700
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252701
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
252702
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
252703
|
+
[1m[35m (0.0ms)[0m begin transaction
|
252704
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252705
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
252706
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252707
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252708
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252709
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252710
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252711
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
252712
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
252713
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252714
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
252715
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
252716
|
+
Parameters: {"token"=>"ABCD13", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD13", "provider"=>"mpns"}}
|
252717
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1
|
252718
|
+
Unpermitted parameters: device_token
|
252719
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
252720
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252721
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
252722
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD13' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
252723
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["provider", "mpns"], ["user_id", nil], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252724
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252725
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
252726
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
252727
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252728
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252729
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252730
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252731
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252732
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252733
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252734
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252735
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252736
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252737
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
252738
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252739
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252740
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252741
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252742
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252743
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
252744
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252745
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252746
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-17@example.com"]]
|
252747
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252748
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252749
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252750
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252751
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252752
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1[0m
|
252753
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
252754
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252755
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252756
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
252757
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
252758
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
252759
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
252760
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
252761
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
252762
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
252763
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms)
|
252764
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14'[0m
|
252765
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
252766
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252767
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
252768
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
252769
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252770
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
252771
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
252772
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252773
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
252774
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
252775
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252776
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
252777
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
252778
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252779
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
252780
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
252781
|
+
[1m[35m (0.1ms)[0m begin transaction
|
252782
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
252783
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-18@example.com"]]
|
252784
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252785
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252786
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252787
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252788
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252789
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1
|
252790
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
252791
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252792
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
252793
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
252794
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-18@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
252795
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
252796
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
252797
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
252798
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1[0m
|
252799
|
+
Unpermitted parameters: user_email, device_token
|
252800
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1
|
252801
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-18@example.com' LIMIT 1[0m
|
252802
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252803
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
252804
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
252805
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["token", "DEF456"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252806
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252807
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
252808
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
252809
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252810
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252811
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252812
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252813
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252814
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252815
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252816
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252817
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252818
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252819
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
252820
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252821
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252822
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252823
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252824
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252825
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252826
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252827
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252828
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-19@example.com"]]
|
252829
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252830
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252831
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252832
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252833
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252834
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
252835
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD16"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
252836
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252837
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
252838
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252839
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-20@example.com"]]
|
252840
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252841
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
252842
|
+
Parameters: {"id"=>"1", "user_email"=>"person-20@example.com", "device_token"=>{"id"=>"1"}}
|
252843
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
252844
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
252845
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
252846
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-20@example.com' LIMIT 1[0m
|
252847
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
252848
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.2ms)
|
252849
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16'
|
252850
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252851
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252852
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252853
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252854
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252855
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252856
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252857
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252858
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252859
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252860
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252861
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252862
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252863
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252864
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252865
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252866
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252867
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252868
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252869
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252870
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252871
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252872
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252873
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252874
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
252875
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252876
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252877
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252878
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252879
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252880
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1[0m
|
252881
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
252882
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252883
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
252884
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
252885
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252886
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
252887
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252888
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL[0m
|
252889
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
252890
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252891
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252892
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252893
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252894
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252895
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252896
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252897
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252898
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252899
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
252900
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252901
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252902
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252903
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252904
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252905
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252906
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252907
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252908
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252909
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252910
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
252911
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL
|
252912
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0[0m
|
252913
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
252914
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
252915
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252916
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252917
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252918
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252919
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252920
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252921
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252922
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252923
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
252924
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252925
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252926
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252927
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252928
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252929
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
252930
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252931
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252932
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-23@example.com"]]
|
252933
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252934
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252935
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252936
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252937
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252938
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1[0m
|
252939
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD18"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
252940
|
+
[1m[36m (26.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252941
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252942
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252943
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252944
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
252945
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252946
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
252947
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252948
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
252949
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
252950
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
252951
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252952
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
252953
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil]]
|
252954
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252955
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
252956
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
252957
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
252958
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
252959
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252960
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
252961
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
252962
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252963
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
252964
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
252965
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252966
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
252967
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
252968
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
252969
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
252970
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
252971
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
252972
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
252973
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
252974
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
252975
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252976
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-24@example.com"]]
|
252977
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
252978
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
252979
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252980
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252981
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252982
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD19' LIMIT 1[0m
|
252983
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD19"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
252984
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252985
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
252986
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
252987
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252988
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252989
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
252990
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252991
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
252992
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
252993
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
252994
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
252995
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
252996
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil]]
|
252997
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
252998
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
252999
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
253000
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
253001
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253002
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253003
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
253004
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253005
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253006
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253007
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253008
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253009
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
253010
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253011
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253012
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253013
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253014
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253015
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
253016
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253017
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253018
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-25@example.com"]]
|
253019
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253020
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253021
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
253022
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253023
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253024
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD20' LIMIT 1[0m
|
253025
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD20"], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["user_id", 1]]
|
253026
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253027
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253028
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00], ["params", nil], ["updated_at", Wed, 30 Apr 2014 23:43:34 UTC +00:00]]
|
253029
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253030
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
253031
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253032
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253033
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253034
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253035
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253036
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253037
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253038
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253039
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253040
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253041
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253042
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253043
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
253044
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253045
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253046
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253047
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
253048
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253049
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-1@example.com"]]
|
253050
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253052
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
|
253053
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253054
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253055
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD1' LIMIT 1[0m
|
253056
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD1"], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["user_id", 1]]
|
253057
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253058
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253059
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
|
253060
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253061
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
253062
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253063
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
253064
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253065
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)[0m
|
253066
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
253067
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
253068
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253069
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
253070
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil]]
|
253071
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253072
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
253073
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
253074
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1
|
253075
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
253076
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253077
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253078
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
253079
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253080
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253081
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253082
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253083
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253084
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
253085
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253086
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253087
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253088
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253089
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253090
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
253091
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253092
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253093
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-2@example.com"]]
|
253094
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
253095
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253096
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
|
253097
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253098
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253099
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD2' LIMIT 1[0m
|
253100
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD2"], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["user_id", 1]]
|
253101
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253102
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253103
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
|
253104
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253105
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253106
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
253107
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253108
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1)
|
253109
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
253110
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0 [["notification_id", 1]]
|
253111
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253112
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
253113
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "notifiable_notifications" SET "sent_count" = ?, "gateway_accepted_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1[0m [["sent_count", 1], ["gateway_accepted_count", 1], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil]]
|
253114
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253115
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
253116
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1
|
253117
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
253118
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253119
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253120
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
253121
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253122
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253123
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253124
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253125
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253126
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
253127
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253128
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253129
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253130
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253131
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253132
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
253133
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253134
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253135
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-3@example.com"]]
|
253136
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253137
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253138
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", "---\n:configurable_mock:\n :use_sandbox: true\n"], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
|
253139
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253140
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253141
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD3' LIMIT 1[0m
|
253142
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["provider", :configurable_mock], ["token", "ABCD3"], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["user_id", 1]]
|
253143
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253145
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
|
253146
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253147
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
253148
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253149
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253150
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253151
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253152
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253153
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253154
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253155
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253156
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253157
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253158
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253159
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253160
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253161
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253162
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253163
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
253164
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253165
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253166
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-4@example.com"]]
|
253167
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253168
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253169
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:01 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:01 UTC +00:00]]
|
253170
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253171
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
253172
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-4@example.com", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
253173
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1[0m
|
253174
|
+
Unpermitted parameters: user_email, device_token
|
253175
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1
|
253176
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-4@example.com' LIMIT 1[0m
|
253177
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253178
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
253179
|
+
[1m[35mNotifiable::DeviceToken Exists (0.0ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
253180
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253181
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253182
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
253183
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
253184
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
253185
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
253186
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
253187
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
253188
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253189
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253190
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
253191
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253192
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253193
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253194
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253195
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253196
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
253197
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253198
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253199
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253200
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253201
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253202
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
253203
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253204
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253205
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-5@example.com"]]
|
253206
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253207
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253208
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253209
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253210
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253211
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
253212
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD4"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253213
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253214
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
253215
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
253216
|
+
Parameters: {"token"=>"ABCD4", "provider"=>"mpns", "device_token"=>{"token"=>"ABCD4", "provider"=>"mpns"}}
|
253217
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD4' LIMIT 1[0m
|
253218
|
+
Unpermitted parameters: device_token
|
253219
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
253220
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253221
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
253222
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD4' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
253223
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "provider" = ?, "user_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["provider", "mpns"], ["user_id", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253224
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253225
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
253226
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
253227
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
253228
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253229
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253230
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253231
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253232
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253233
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253234
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253235
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253236
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253237
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253238
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253239
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253240
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253241
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253242
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253243
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253244
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253245
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253246
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-6@example.com"]]
|
253247
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253248
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
253249
|
+
Parameters: {"token"=>"ABC123", "user_email"=>"person-6@example.com", "provider"=>"mpns", "device_token"=>{"token"=>"ABC123", "provider"=>"mpns"}}
|
253250
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
253251
|
+
Unpermitted parameters: user_email, device_token
|
253252
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1[0m
|
253253
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-6@example.com' LIMIT 1
|
253254
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253255
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
253256
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
253257
|
+
Completed 422 Unprocessable Entity in 10ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
253258
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
253259
|
+
[1m[36m (0.3ms)[0m [1mDELETE FROM "users";[0m
|
253260
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253261
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253262
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_apps";
|
253263
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253264
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253265
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253266
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253267
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253268
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
253269
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253270
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253271
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253272
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253273
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253274
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
253275
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253276
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253277
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-7@example.com"]]
|
253278
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253279
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
253280
|
+
Parameters: {"id"=>"59", "user_email"=>"person-7@example.com", "device_token"=>{"id"=>"59"}}
|
253281
|
+
[1m[36mNotifiable::DeviceToken Load (0.2ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "59"]]
|
253282
|
+
Completed 404 Not Found in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
253283
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253284
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-8@example.com"]]
|
253285
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253286
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253287
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253288
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253289
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253290
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5' LIMIT 1[0m
|
253291
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD5"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 2]]
|
253292
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253293
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
253294
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD5'[0m
|
253295
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
253296
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253297
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253298
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253299
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253300
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253301
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253302
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253303
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253304
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253305
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253306
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253307
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
253308
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253309
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253310
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253311
|
+
[1m[35m (0.0ms)[0m begin transaction
|
253312
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253313
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-9@example.com"]]
|
253314
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253315
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253316
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253317
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253318
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253319
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1
|
253320
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD6"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253322
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
253323
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253324
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253325
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253326
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
253327
|
+
Parameters: {"token"=>"ABCD6", "provider"=>"mock", "app_id"=>"2", "user_email"=>"person-9@example.com", "device_token"=>{"token"=>"ABCD6", "provider"=>"mock", "app_id"=>"2"}}
|
253328
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD6' LIMIT 1[0m
|
253329
|
+
Unpermitted parameters: user_email, device_token
|
253330
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1
|
253331
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-9@example.com' LIMIT 1[0m
|
253332
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253333
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
253334
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'ABCD6' AND "notifiable_device_tokens"."id" != 1) LIMIT 1
|
253335
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "notifiable_device_tokens" SET "app_id" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1[0m [["app_id", 2], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253336
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253337
|
+
Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
253338
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
253339
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
253340
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
253341
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 2]]
|
253342
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
253343
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253344
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253345
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
253346
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253347
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253348
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253349
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253350
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253351
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
253352
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253353
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253354
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253355
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253356
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253357
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
253358
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253359
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253360
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-10@example.com"]]
|
253361
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
253362
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253363
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253364
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253365
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253366
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7' LIMIT 1[0m
|
253367
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD7"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253368
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253369
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
253370
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253371
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-11@example.com"]]
|
253372
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253373
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
253374
|
+
Parameters: {"id"=>"1", "user_email"=>"person-11@example.com", "device_token"=>{"id"=>"1"}}
|
253375
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1 [["id", "1"]]
|
253376
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
253377
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
253378
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-11@example.com' LIMIT 1[0m
|
253379
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
253380
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
253381
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD7'
|
253382
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
253383
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253384
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253385
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
253386
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253387
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253388
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253389
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253390
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253391
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
253392
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253393
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253394
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253395
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253396
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253397
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
253398
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
253399
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253400
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-12@example.com"]]
|
253401
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253402
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253403
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253404
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253405
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253406
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD8' LIMIT 1[0m
|
253407
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD8"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253408
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253409
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
253410
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
253411
|
+
Parameters: {"id"=>"1", "user_email"=>"person-12@example.com", "device_token"=>{"id"=>"1"}}
|
253412
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
253413
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
253414
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
253415
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-12@example.com' LIMIT 1
|
253416
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253417
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? [["id", 1]]
|
253418
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253419
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
253420
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
253421
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "users";[0m
|
253422
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253423
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253424
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
253425
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253426
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253427
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253428
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253429
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253430
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_notifications";
|
253431
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253432
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253433
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253434
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253435
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253436
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
253437
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253438
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253439
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-13@example.com"]]
|
253440
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253441
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253442
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253443
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253444
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253445
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9' LIMIT 1[0m
|
253446
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD9"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253447
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253448
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
253449
|
+
Processing by Notifiable::DeviceTokensController#destroy as JSON
|
253450
|
+
Parameters: {"id"=>"1", "device_token"=>{"id"=>"1"}}
|
253451
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
253452
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
253453
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
253454
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
|
253455
|
+
Filter chain halted as :ensure_authorized! rendered or redirected
|
253456
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
253457
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD9'[0m
|
253458
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253459
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253460
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253461
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253462
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253463
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253464
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253465
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253466
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253467
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253468
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253469
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253470
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
253471
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253472
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253473
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
253474
|
+
[1m[35m (0.0ms)[0m begin transaction
|
253475
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253476
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253477
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253478
|
+
Processing by Notifiable::DeviceTokensController#create as JSON
|
253479
|
+
Parameters: {"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1", "device_token"=>{"token"=>"ABC123", "provider"=>"apns", "app_id"=>"1"}}
|
253480
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
253481
|
+
Unpermitted parameters: device_token
|
253482
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
253483
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253484
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
253485
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABC123' LIMIT 1
|
253486
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", "apns"], ["token", "ABC123"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253487
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253488
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
253489
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_device_tokens"[0m
|
253490
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
253491
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 1]]
|
253492
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "users"
|
253493
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "users";[0m
|
253494
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253495
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
253496
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_apps";
|
253497
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253498
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_apps';
|
253499
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_device_tokens";[0m
|
253500
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253501
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';[0m
|
253502
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_notifications";
|
253503
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253504
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_notifications';
|
253505
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_statuses";[0m
|
253506
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253507
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_statuses';[0m
|
253508
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
253509
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
253510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253511
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-14@example.com"]]
|
253512
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253513
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253514
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253515
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253516
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253517
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD10' LIMIT 1[0m
|
253518
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD10"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253519
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253520
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1
|
253521
|
+
Processing by Notifiable::DeviceTokensController#update as JSON
|
253522
|
+
Parameters: {"id"=>"1", "token"=>"DEF456", "user_email"=>"person-14@example.com", "device_token"=>{"id"=>"1", "token"=>"DEF456"}}
|
253523
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? LIMIT 1[0m [["id", "1"]]
|
253524
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
253525
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
253526
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
253527
|
+
Unpermitted parameters: user_email, device_token
|
253528
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1[0m
|
253529
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-14@example.com' LIMIT 1
|
253530
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253531
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
253532
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE ("notifiable_device_tokens"."token" = 'DEF456' AND "notifiable_device_tokens"."id" != 1) LIMIT 1[0m
|
253533
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "notifiable_device_tokens" SET "token" = ?, "updated_at" = ? WHERE "notifiable_device_tokens"."id" = 1 [["token", "DEF456"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253534
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253535
|
+
Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.6ms)
|
253536
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_device_tokens"
|
253537
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
253538
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
253539
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253540
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253541
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253542
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253543
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253544
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253545
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253546
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253547
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253548
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253549
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253550
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253551
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253552
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253553
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253554
|
+
[1m[35m (0.0ms)[0m begin transaction
|
253555
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253556
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253557
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253558
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
253559
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" IS NULL[0m
|
253560
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE 1=0
|
253561
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
253562
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
253563
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253564
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253565
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253566
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253567
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253568
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
253569
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253570
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253571
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253572
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253573
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253574
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253575
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253576
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253577
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
253578
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253579
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253580
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253581
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253582
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253583
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253584
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253585
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253586
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-16@example.com"]]
|
253587
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253588
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253589
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253590
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253591
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253592
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD11' LIMIT 1
|
253593
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD11"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253594
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253595
|
+
[1m[36mNotifiable::App Load (0.1ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m
|
253596
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
253597
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253598
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "status") VALUES (?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["status", 200]]
|
253599
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253600
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IS NULL
|
253601
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
253602
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253603
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253604
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253605
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253606
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253607
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253608
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253609
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253610
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253611
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253612
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253613
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253614
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253615
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253616
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253617
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253618
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253619
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253620
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253621
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253622
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253623
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "Test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253624
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253625
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
253626
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
253627
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253628
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253629
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253630
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253631
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253632
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
253633
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253634
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253635
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253636
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253637
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253638
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253639
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253640
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253641
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253642
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253643
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253644
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253645
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253646
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253647
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253648
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
253649
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
253650
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
253651
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253652
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253653
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253654
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253655
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253656
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
253657
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253658
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253659
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253660
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253661
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253662
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_statuses";
|
253663
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253664
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253665
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253666
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253667
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253668
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253669
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253670
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253671
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", "---\n:custom_property: A different message\n"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253672
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253673
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253674
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "notification_id") VALUES (?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["notification_id", 1]]
|
253675
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253676
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253677
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ?[0m [["notification_id", 1]]
|
253678
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "notifiable_statuses" WHERE "notifiable_statuses"."id" = ? [["id", 1]]
|
253679
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ?[0m [["id", 1]]
|
253680
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253681
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses"[0m
|
253682
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
253683
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253684
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253685
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253686
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253687
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253688
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
253689
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253690
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253691
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253692
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253693
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253694
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253695
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253696
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253697
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253698
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253699
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253700
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253701
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253702
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
253703
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253704
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253705
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253706
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253707
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253708
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253709
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253710
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-17@example.com"]]
|
253711
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253712
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253713
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253714
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253715
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253716
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD12' LIMIT 1
|
253717
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD12"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253718
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253719
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
253720
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253721
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-18@example.com"]]
|
253722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253723
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253724
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253725
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253726
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253727
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD13' LIMIT 1[0m
|
253728
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD13"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 2]]
|
253729
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253730
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
253731
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253732
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
253733
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253734
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253735
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 200]]
|
253736
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253737
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 1)[0m
|
253738
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
253739
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
253740
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253741
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
253742
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 2], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
|
253743
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253744
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
253745
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
253746
|
+
[1m[35mNotifiable::Notification Load (0.1ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
253747
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
253748
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
253749
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 1]]
|
253750
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
253751
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
253752
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253753
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253754
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253755
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253756
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253757
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253758
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253759
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253760
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253761
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253762
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253763
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253764
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253765
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253766
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253767
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253768
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253769
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253770
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253771
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253772
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
253773
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253774
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253775
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253776
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253777
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253778
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
253779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253780
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-19@example.com"]]
|
253781
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253782
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253783
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253784
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
253785
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253786
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD14' LIMIT 1
|
253787
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 3], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD14"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253788
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253789
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
253790
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253791
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253792
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253793
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253794
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 4], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "Second test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253795
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253796
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253797
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-20@example.com"]]
|
253798
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253799
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253800
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253801
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253802
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253803
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD15' LIMIT 1[0m
|
253804
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 5], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD15"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 2]]
|
253805
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253806
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2
|
253807
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253808
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 200]]
|
253809
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253810
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253811
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 2], ["notification_id", 2], ["status", 200]]
|
253812
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253813
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" IN (1, 2)[0m
|
253814
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 1]]
|
253815
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 1]]
|
253816
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253817
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 2]]
|
253818
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["sent_count", 1], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
|
253819
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253820
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? [["notification_id", 2]]
|
253821
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_statuses" WHERE "notifiable_statuses"."notification_id" = ? AND "notifiable_statuses"."status" = 0[0m [["notification_id", 2]]
|
253822
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253823
|
+
[1m[36mNotifiable::App Load (0.0ms)[0m [1mSELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1[0m [["id", 4]]
|
253824
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "sent_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 2 [["sent_count", 1], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
|
253825
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253826
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
253827
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses"[0m
|
253828
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
253829
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
253830
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1
|
253831
|
+
[1m[36mNotifiable::Notification Load (0.0ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m [["id", 2]]
|
253832
|
+
[1m[35mNotifiable::DeviceToken Load (0.0ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
253833
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 2[0m
|
253834
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253835
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253836
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253837
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253838
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253839
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253840
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253841
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253842
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253843
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253844
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253845
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253846
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253847
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253848
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253849
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253850
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253851
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253852
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253853
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253854
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253855
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email") VALUES (?)[0m [["email", "person-21@example.com"]]
|
253856
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253858
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253859
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253860
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253861
|
+
[1m[36mNotifiable::DeviceToken Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD16' LIMIT 1[0m
|
253862
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["app_id", 2], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :sms], ["token", "ABCD16"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253863
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253864
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253865
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253866
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253867
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253868
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "message", "params", "updated_at") VALUES (?, ?, ?, ?, ?) [["app_id", 3], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["message", "First test message"], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253869
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253870
|
+
[1m[35mNotifiable::App Load (0.1ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" ORDER BY "notifiable_apps"."id" ASC LIMIT 1
|
253871
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1[0m
|
253872
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253873
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253874
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253875
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253876
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253877
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253878
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253879
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253880
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253881
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253882
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253883
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253884
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253885
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253886
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253887
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253888
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253889
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253890
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?) [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253891
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253892
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253893
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253894
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253895
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "notifiable_notifications" WHERE "notifiable_notifications"."app_id" = ?[0m [["app_id", 1]]
|
253896
|
+
[1m[35m (0.1ms)[0m DELETE FROM "users";
|
253897
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253898
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253899
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253900
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253901
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253902
|
+
[1m[35m (0.1ms)[0m DELETE FROM "notifiable_device_tokens";
|
253903
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253904
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253905
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253906
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253907
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253908
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253909
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253910
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253911
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
253912
|
+
[1m[35m (0.0ms)[0m begin transaction
|
253913
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253914
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-22@example.com"]]
|
253915
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253916
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253917
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253918
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253919
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253920
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD17' LIMIT 1
|
253921
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD17"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253922
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253923
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
253924
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
253925
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253926
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253927
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253928
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253929
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
253930
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253931
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
253932
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-22@example.com", "notification"=>{}}
|
253933
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1[0m
|
253934
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'person-22@example.com' LIMIT 1
|
253935
|
+
[1m[36mNotifiable::DeviceToken Load (0.0ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m [["id", 1]]
|
253936
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
253937
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253938
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
|
253939
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253940
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
253941
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253942
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
|
253943
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253944
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
|
253945
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
253946
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
253947
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
253948
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
253949
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
253950
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253951
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
253952
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
253953
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253954
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
253955
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
253956
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253957
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
253958
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
253959
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
253960
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
253961
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
253962
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
253963
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
253964
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253965
|
+
[1m[35m (0.1ms)[0m begin transaction
|
253966
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253967
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-23@example.com"]]
|
253968
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253969
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253970
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253971
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253972
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253973
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD18' LIMIT 1
|
253974
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD18"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
253975
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253976
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
253977
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
253978
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253979
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253980
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253981
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
253982
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253983
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253984
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253985
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD19' LIMIT 1
|
253986
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["app_id", 2], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD19"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
253987
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
253988
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
253989
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?) [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 2], ["notification_id", 1], ["status", 0]]
|
253990
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253991
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
253992
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"2", "notification"=>{}}
|
253993
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '2') LIMIT 1
|
253994
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1[0m
|
253995
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 2]]
|
253996
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
253997
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "notifiable_statuses" SET "status" = ? WHERE "notifiable_statuses"."id" = 1 [["status", -1]]
|
253998
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253999
|
+
[1m[35mNotifiable::Notification Load (0.0ms)[0m SELECT "notifiable_notifications".* FROM "notifiable_notifications" WHERE "notifiable_notifications"."id" = ? ORDER BY "notifiable_notifications"."id" ASC LIMIT 1 [["id", 1]]
|
254000
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
254001
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "notifiable_notifications" SET "opened_count" = ?, "updated_at" = ?, "params" = ? WHERE "notifiable_notifications"."id" = 1 [["opened_count", 1], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil]]
|
254002
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
254003
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.6ms)
|
254004
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
254005
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
254006
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
254007
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
254008
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
254009
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
254010
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
254011
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
254012
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
254013
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
254014
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
254015
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
254016
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
254017
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
254018
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
254019
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
254020
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
254021
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
254022
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
254023
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
254024
|
+
[1m[35m (0.0ms)[0m begin transaction
|
254025
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
254026
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-24@example.com"]]
|
254027
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
254028
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
254029
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "notifiable_apps" ("configuration", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["configuration", nil], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
254030
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
254031
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
254032
|
+
[1m[35mNotifiable::DeviceToken Exists (0.1ms)[0m SELECT 1 AS one FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."token" = 'ABCD20' LIMIT 1
|
254033
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_device_tokens" ("app_id", "created_at", "provider", "token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["provider", :mock], ["token", "ABCD20"], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["user_id", 1]]
|
254034
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
254035
|
+
[1m[36mNotifiable::DeviceToken Load (0.1ms)[0m [1mSELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."user_id" = 1 ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1[0m
|
254036
|
+
[1m[35mNotifiable::App Load (0.0ms)[0m SELECT "notifiable_apps".* FROM "notifiable_apps" WHERE "notifiable_apps"."id" = ? ORDER BY "notifiable_apps"."id" ASC LIMIT 1 [["id", 1]]
|
254037
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
254038
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "notifiable_notifications" ("app_id", "created_at", "params", "updated_at") VALUES (?, ?, ?, ?) [["app_id", 1], ["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["params", nil], ["updated_at", Thu, 01 May 2014 00:02:02 UTC +00:00]]
|
254039
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
254040
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
254041
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "notifiable_statuses" ("created_at", "device_token_id", "notification_id", "status") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 01 May 2014 00:02:02 UTC +00:00], ["device_token_id", 1], ["notification_id", 1], ["status", 0]]
|
254042
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
254043
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
254044
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("email") VALUES (?) [["email", "person-25@example.com"]]
|
254045
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
254046
|
+
Processing by Notifiable::NotificationsController#opened as JSON
|
254047
|
+
Parameters: {"notification_id"=>"1", "device_token_id"=>"1", "user_email"=>"person-25@example.com", "notification"=>{}}
|
254048
|
+
[1m[35mNotifiable::NotificationStatus Load (0.1ms)[0m SELECT "notifiable_statuses".* FROM "notifiable_statuses" WHERE (notification_id = '1' AND device_token_id = '1') LIMIT 1
|
254049
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'person-25@example.com' LIMIT 1[0m
|
254050
|
+
[1m[35mNotifiable::DeviceToken Load (0.1ms)[0m SELECT "notifiable_device_tokens".* FROM "notifiable_device_tokens" WHERE "notifiable_device_tokens"."id" = ? ORDER BY "notifiable_device_tokens"."id" ASC LIMIT 1 [["id", 1]]
|
254051
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
254052
|
+
Filter chain halted as :check_authorisation! rendered or redirected
|
254053
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
254054
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_statuses"
|
254055
|
+
[1m[36mNotifiable::NotificationStatus Load (0.1ms)[0m [1mSELECT "notifiable_statuses".* FROM "notifiable_statuses" ORDER BY "notifiable_statuses"."id" ASC LIMIT 1[0m
|
254056
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "notifiable_notifications"
|
254057
|
+
[1m[36mNotifiable::Notification Load (0.1ms)[0m [1mSELECT "notifiable_notifications".* FROM "notifiable_notifications" ORDER BY "notifiable_notifications"."id" ASC LIMIT 1[0m
|
254058
|
+
[1m[35m (0.0ms)[0m DELETE FROM "users";
|
254059
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
254060
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
254061
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_apps";[0m
|
254062
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
254063
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_apps';[0m
|
254064
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_device_tokens";
|
254065
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
254066
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_device_tokens';
|
254067
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "notifiable_notifications";[0m
|
254068
|
+
[1m[35m (0.0ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
254069
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'notifiable_notifications';[0m
|
254070
|
+
[1m[35m (0.0ms)[0m DELETE FROM "notifiable_statuses";
|
254071
|
+
[1m[36m (0.0ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
254072
|
+
[1m[35m (0.0ms)[0m DELETE FROM sqlite_sequence where name = 'notifiable_statuses';
|
254073
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|