notifiable-core 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc264a823b7db2c6695c7305f3e08d624e8322af0068eb51e99b644d338f4c03
4
- data.tar.gz: 533da0880836e645ce9aa271c4f14655b613a4a0c87276d4f2953cc0a57f5804
3
+ metadata.gz: fbb22666f1ae73da27f310c4ea5cc2b04a4208e18c83f3bae654c14bb4637503
4
+ data.tar.gz: 06fb15bbd2075f8fcd58b63198eb71ce8848574e890457c456b66651b103e8fe
5
5
  SHA512:
6
- metadata.gz: 4835e97b843fbca60ca893fac781b1e918106ee45599ddb91b819161cffaba76bb2e9814c9ebfe7a4f02b9aaae8baa28235f8c428484783f98cb4fa15afe714c
7
- data.tar.gz: d0483a18867092ac8f4c0f70767684c3cbec4cf1e37160946a94e7f80a792de14962cd435b9706a6e27cf0abe2f3326c8e878ee145462439bf88a8fde6f7b8e8
6
+ metadata.gz: b26de78fab29c0214325c9cab5101662d9d1e96f8b3efaf0a913f58e0d46e5ae54c27b3444732aa1240659e68374f4e799a5ecb3e85e5d28714ee777a7af8167
7
+ data.tar.gz: 322883b650d8fa58fa495759c5addce9a39ffc98502b338c0b02735c7b64a4aeeecd3c61f8fec50d7b912aa85d763494e26955d98e81064bf2204cb1f8d3f98b
@@ -2,6 +2,7 @@ class CreateNotifiableUsers < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :notifiable_users do |t|
4
4
  t.string :alias
5
+ t.integer :app_id
5
6
  t.timestamps
6
7
  end
7
8
  end
@@ -6,6 +6,7 @@ module Notifiable
6
6
 
7
7
  has_many :device_tokens, class_name: 'Notifiable::DeviceToken', dependent: :destroy
8
8
  has_many :notifications, class_name: 'Notifiable::Notification', dependent: :destroy
9
+ has_many :users, class_name: 'Notifiable::User', dependent: :destroy
9
10
 
10
11
  serialize :configuration
11
12
 
@@ -2,6 +2,7 @@ module Notifiable
2
2
  class User < ActiveRecord::Base
3
3
  self.table_name_prefix = 'notifiable_'
4
4
 
5
+ belongs_to :app, class_name: 'Notifiable::App'
5
6
  has_many :device_tokens, class_name: 'Notifiable::DeviceToken'
6
7
  end
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith