bridge_cache 0.3.8 → 0.3.9

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
  SHA1:
3
- metadata.gz: 5de0f56fcf3860436270c84d981260392305acff
4
- data.tar.gz: a41b172908a17373085079950d425d5807f9c91d
3
+ metadata.gz: 3c72bca5257f6a4eebe2e1c1d507d382101e4aa3
4
+ data.tar.gz: 72213c5b29bb59dd3c56afb8de76c4c91b3fd817
5
5
  SHA512:
6
- metadata.gz: 3fd38c034949542f875fac71c3a9514a307b221f24918206326c68be12a0175f45e75d8974996fbc34c7a4413cf6fec15bfd442c446eb1d98aa59829d40cdc3b
7
- data.tar.gz: 3acb19b1fe82f158a7668b3d2d56649fc8cd3a0e86d89f55334e5e6ef7b9db87c604a3f25cd0a6bdb4e7d0e30563a7ba570e1ccb9a92b9ef2c881b7544fa6e23
6
+ metadata.gz: a490a4acd6aeae5602a40c89787345bd6d44b967d8d0f992ae7c8e42fc142b7f541aac9b6bacccfcdd69f3e0437d444cdbb223e7c5a961daea1fa5554afad80d
7
+ data.tar.gz: 9b1d72ddcff0e3040de42dc97bf11f2aeb95517feee7fab02da9291a010656b6304a5e46d10f64a0f8483be7c234384aae58964056cd299d8ac61a7bb82d44f5
@@ -16,5 +16,9 @@ module BridgeCache
16
16
  belongs_to :owner, class_name: BridgeCache::User.name, optional: true
17
17
 
18
18
  serialize :config
19
+
20
+ def self.unique_column_names
21
+ %w[bridge_id]
22
+ end
19
23
  end
20
24
  end
@@ -8,5 +8,9 @@ module BridgeCache
8
8
 
9
9
  belongs_to :user, foreign_key: :user_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::User.name, optional: true
10
10
  belongs_to :course_template, foreign_key: :course_template_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::CourseTemplate.name, optional: true
11
+
12
+ def self.unique_column_names
13
+ %w[bridge_id]
14
+ end
11
15
  end
12
16
  end
@@ -8,5 +8,9 @@ module BridgeCache
8
8
 
9
9
  belongs_to :group, foreign_key: :group_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Group.name, optional: true
10
10
  belongs_to :course_template, foreign_key: :course_template_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::CourseTemplate.name, optional: true
11
+
12
+ def self.unique_column_names
13
+ %w[bridge_id]
14
+ end
11
15
  end
12
16
  end
@@ -2,5 +2,9 @@ module BridgeCache
2
2
  class Host < BridgeBaseModel
3
3
  extend BridgeCache::Data::BridgeModel
4
4
  belongs_to :domain, foreign_key: :domain_id, primary_key: BridgeCache.primary_key, class_name: 'BridgeCache::Domain', optional: true
5
+
6
+ def self.unique_column_names
7
+ %w[bridge_id]
8
+ end
5
9
  end
6
10
  end
@@ -8,5 +8,9 @@ module BridgeCache
8
8
 
9
9
  belongs_to :user, foreign_key: :user_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::User.name, optional: true
10
10
  belongs_to :custom_field, foreign_key: :custom_field_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::CustomField.name, optional: true
11
+
12
+ def self.unique_column_names
13
+ %w[bridge_id]
14
+ end
11
15
  end
12
16
  end
@@ -9,5 +9,9 @@ module BridgeCache
9
9
  belongs_to :user, foreign_key: :user_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::User.name, optional: true
10
10
  belongs_to :live_course, foreign_key: :live_course_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::LiveCourse.name, optional: true
11
11
  has_many :live_course_session_registrations, foreign_key: :live_course_enrollment_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::LiveCourseSessionRegistration.name
12
+
13
+ def self.unique_column_names
14
+ %w[bridge_id]
15
+ end
12
16
  end
13
17
  end
@@ -10,5 +10,9 @@ module BridgeCache
10
10
  belongs_to :domain, foreign_key: :domain_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Domain.name, optional: true
11
11
  belongs_to :live_course_enrollment, primary_key: BridgeCache.primary_key, class_name: BridgeCache::LiveCourseEnrollment.name, optional: true
12
12
  belongs_to :live_course_session, primary_key: BridgeCache.primary_key, class_name: BridgeCache::LiveCourseSession.name, optional: true
13
+
14
+ def self.unique_column_names
15
+ %w[bridge_id]
16
+ end
13
17
  end
14
18
  end
@@ -8,5 +8,9 @@ module BridgeCache
8
8
  def self.for_domain(domain_id)
9
9
  joins(:group).where(bridge_cache_groups: { domain_id: domain_id })
10
10
  end
11
+
12
+ def self.unique_column_names
13
+ %w[bridge_id]
14
+ end
11
15
  end
12
16
  end
@@ -15,5 +15,9 @@ module BridgeCache
15
15
  .where('bridge_cache_affiliated_sub_accounts.domain_id = ? OR bridge_cache_programs.sub_account_id = ?', domain_id, domain_id)
16
16
  .references(:domains)
17
17
  end
18
+
19
+ def self.unique_column_names
20
+ %w[bridge_id]
21
+ end
18
22
  end
19
23
  end
@@ -8,5 +8,9 @@ module BridgeCache
8
8
  def self.for_domain(domain_id)
9
9
  joins(:program).merge(BridgeCache::Program.for_domain(domain_id))
10
10
  end
11
+
12
+ def self.unique_column_names
13
+ %w[bridge_id]
14
+ end
11
15
  end
12
16
  end
@@ -4,5 +4,9 @@ module BridgeCache
4
4
 
5
5
  belongs_to :group, foreign_key: :group_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Group.name, optional: true
6
6
  belongs_to :program, foreign_key: :program_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Program.name, optional: true
7
+
8
+ def self.unique_column_names
9
+ %w[bridge_id]
10
+ end
7
11
  end
8
12
  end
@@ -7,5 +7,9 @@ module BridgeCache
7
7
  def self.for_domain(domain_id)
8
8
  joins(:program).merge(BridgeCache::Program.for_domain(domain_id))
9
9
  end
10
+
11
+ def self.unique_column_names
12
+ %w[bridge_id]
13
+ end
10
14
  end
11
15
  end
@@ -3,5 +3,9 @@ module BridgeCache
3
3
  extend BridgeCache::Data::BridgeModel
4
4
 
5
5
  has_many :taggings, foreign_key: :tag_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Tagging.name
6
+
7
+ def self.unique_column_names
8
+ %w[bridge_id]
9
+ end
6
10
  end
7
11
  end
@@ -8,5 +8,9 @@ module BridgeCache
8
8
  def self.cleanup(current_row_ids)
9
9
  BridgeCache::Tagging.where.not(bridge_id: current_row_ids).destroy_all
10
10
  end
11
+
12
+ def self.unique_column_names
13
+ %w[bridge_id]
14
+ end
11
15
  end
12
16
  end
@@ -1,3 +1,3 @@
1
1
  module BridgeCache
2
- VERSION = '0.3.8'.freeze
2
+ VERSION = '0.3.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - jshaffer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2018-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-import