module Phcscriptcdnpro class Script::Listing < ApplicationRecord # Relationships # Attach to URL (Nested) has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url' # Attach to Author (None Nested) belongs_to :author, class_name: 'Phcscriptcdnpro::Script::Author' # Attach to Version (None Nested) belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version' # Attach to Licence (None Nested) belongs_to :licence, class_name: 'Phcscriptcdnpro::Script::Licence' end end