notifiable-core 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/201810082235000_create_notifiable_users.rb +8 -0
- data/db/migrate/201810082235001_add_user_id_to_notifiable_device_tokens.rb +5 -0
- data/lib/notifiable.rb +1 -0
- data/lib/notifiable/device_token.rb +1 -2
- data/lib/notifiable/user.rb +7 -0
- data/lib/notifiable/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc264a823b7db2c6695c7305f3e08d624e8322af0068eb51e99b644d338f4c03
|
4
|
+
data.tar.gz: 533da0880836e645ce9aa271c4f14655b613a4a0c87276d4f2953cc0a57f5804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4835e97b843fbca60ca893fac781b1e918106ee45599ddb91b819161cffaba76bb2e9814c9ebfe7a4f02b9aaae8baa28235f8c428484783f98cb4fa15afe714c
|
7
|
+
data.tar.gz: d0483a18867092ac8f4c0f70767684c3cbec4cf1e37160946a94e7f80a792de14962cd435b9706a6e27cf0abe2f3326c8e878ee145462439bf88a8fde6f7b8e8
|
data/lib/notifiable.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
module Notifiable
|
4
2
|
class DeviceToken < ActiveRecord::Base
|
5
3
|
self.table_name_prefix = 'notifiable_'
|
6
4
|
|
7
5
|
belongs_to :app, class_name: 'Notifiable::App'
|
6
|
+
belongs_to :user, class_name: 'Notifiable::User', optional: true
|
8
7
|
has_many :notification_statuses, class_name: 'Notifiable::NotificationStatus'
|
9
8
|
|
10
9
|
validates :token, presence: true, uniqueness: { scope: :app }
|
data/lib/notifiable/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifiable-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
@@ -218,6 +218,8 @@ files:
|
|
218
218
|
- db/migrate/201808272135000_add_status_to_notifications.rb
|
219
219
|
- db/migrate/201809032135000_add_error_code_to_notification_statuses.rb
|
220
220
|
- db/migrate/201809032235000_add_delivered_count_to_notifications.rb
|
221
|
+
- db/migrate/201810082235000_create_notifiable_users.rb
|
222
|
+
- db/migrate/201810082235001_add_user_id_to_notifiable_device_tokens.rb
|
221
223
|
- lib/notifiable.rb
|
222
224
|
- lib/notifiable/app.rb
|
223
225
|
- lib/notifiable/device_token.rb
|
@@ -225,6 +227,7 @@ files:
|
|
225
227
|
- lib/notifiable/notification.rb
|
226
228
|
- lib/notifiable/notification_status.rb
|
227
229
|
- lib/notifiable/notifier_base.rb
|
230
|
+
- lib/notifiable/user.rb
|
228
231
|
- lib/notifiable/version.rb
|
229
232
|
- lib/tasks/db.rake
|
230
233
|
homepage: https://github.com/FutureWorkshops/notifiable
|