app/models/phcscriptcdn/script/version.rb in phcscriptcdn-3.0.0.pre.beta vs app/models/phcscriptcdn/script/version.rb in phcscriptcdn-3.0.0
- old
+ new
@@ -1,5 +1,13 @@
module Phcscriptcdn
class Script::Version < ApplicationRecord
+ #Relationships
+
+ # URL Un-Nested
+ has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
+
+ # Listing Un-Nested
+ has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
+
end
end