gdshowsdb 4.0.0 → 4.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eae768b7c9342b0b9c6e821d0592b4fa240f4ae5f0c8c4e72481e4b54b0f95b7
|
4
|
+
data.tar.gz: d20f5f04d3e3783c34dcc3e6e30287f1d24c1532b78b88595fd5c382b092efdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56afccd0599f49e695ef79f6e45e623a57447e09b08843f2a7dc95a95d29ea289c13897458392ba5ee5d5b4f5444b3c524e89d7ea5458e73f7a75c78066db15a
|
7
|
+
data.tar.gz: 779da5aa4bf38238de83e569533791be7dac24dec56ae9cd1b4523c204cd5165c0b4db82bbb4c70ef8050dad89668516fb51f8dbdb434c9c0cab8e1bdf040c06
|
data/Gemfile.lock
CHANGED
@@ -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 [:
|
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
|
|
data/lib/gdshowsdb/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|