app/models/phcscriptcdn/script/listing.rb in phcscriptcdn-3.0.0.pre.beta vs app/models/phcscriptcdn/script/listing.rb in phcscriptcdn-3.0.0
- old
+ new
@@ -1,13 +1,17 @@
module Phcscriptcdn
class Script::Listing < ApplicationRecord
# Relationships
- #has_many :versions, class_name: 'Phcscriptcdn::Script::Version'
+
#has_many :informations, class_name: 'Phcscriptcdn::Script::Version'
# URL Nested
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
+
# Author Nested
has_many :authors, class_name: 'Phcscriptcdn::Script::Author'
+
+ # Attach to Version
+ belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
end
end