app/models/phcscriptcdnpro/script/listing.rb in phcscriptcdnpro-5.1.4 vs app/models/phcscriptcdnpro/script/listing.rb in phcscriptcdnpro-5.1.5
- old
+ new
@@ -4,13 +4,16 @@
# Relationships
# URL Nested
has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
- # Author Nested
- has_many :authors, class_name: 'Phcscriptcdnpro::Script::Author'
+ # Attach to Author
+ belongs_to :authors, class_name: 'Phcscriptcdnpro::Script::Author'
# Attach to Version
belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version'
+
+ # Attach to Licence
+ belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence'
end
end