gdshowsdb 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ed91b4c3a8f629932caa165d730c76b761aa9e4c7b95810589542806f2dd303
4
- data.tar.gz: f0253e06bcf08fdd669b790333be085cdaca6fac4817dfb76bfd75f2be446555
3
+ metadata.gz: eae768b7c9342b0b9c6e821d0592b4fa240f4ae5f0c8c4e72481e4b54b0f95b7
4
+ data.tar.gz: d20f5f04d3e3783c34dcc3e6e30287f1d24c1532b78b88595fd5c382b092efdd
5
5
  SHA512:
6
- metadata.gz: d246f0131e1a2c358e6095cc5c207e99ac88acdd5d6b5dbda15d583b9e3d7eac8627d252c004fa6036b5d8e7037a4fe84e8bca93a18f1cd80dd8b3acda83c9e1
7
- data.tar.gz: 7286860391decc67245b5c8d1fb4c77a59708793181ba819956d2aa06447f6093cd16f09c2024bc970a25c9a109f3019796312001de095f1a388a5c1c1193a16
6
+ metadata.gz: 56afccd0599f49e695ef79f6e45e623a57447e09b08843f2a7dc95a95d29ea289c13897458392ba5ee5d5b4f5444b3c524e89d7ea5458e73f7a75c78066db15a
7
+ data.tar.gz: 779da5aa4bf38238de83e569533791be7dac24dec56ae9cd1b4523c204cd5165c0b4db82bbb4c70ef8050dad89668516fb51f8dbdb434c9c0cab8e1bdf040c06
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gdshowsdb (4.0.0)
4
+ gdshowsdb (4.0.1)
5
5
  friendly_id
6
6
  rails (>= 6.1)
7
7
 
@@ -8,7 +8,7 @@ class CreateSongOccurencesTable < ActiveRecord::Migration[5.0]
8
8
  t.integer :position
9
9
  t.index :uuid, unique: true
10
10
  t.index :song_ref_uuid
11
- t.index [:uuid, :song_ref_uuid, :position], unique: true
11
+ t.index [:show_uuid, :song_ref_uuid, :position], unique: true, name: 'unique_song_occurences_for_show'
12
12
  end
13
13
  end
14
14
 
@@ -8,7 +8,7 @@ class SongRef < ActiveRecord::Base
8
8
 
9
9
  has_many :songs, :foreign_key => :song_ref_uuid, :primary_key => :uuid
10
10
  has_many :song_occurences, :foreign_key => :song_ref_uuid, :primary_key => :uuid
11
- has_many :shows, :through => :song_occurences, :foreign_key => :song_ref_uuid
11
+ has_many :shows, -> {distinct}, :through => :song_occurences, :foreign_key => :song_ref_uuid
12
12
 
13
13
  accepts_nested_attributes_for :song_occurences
14
14
 
@@ -1,3 +1,3 @@
1
1
  module Gdshowsdb
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdshowsdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-22 00:00:00.000000000 Z
11
+ date: 2022-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails