module Phcscriptcdnpro class Script::Listing < ApplicationRecord # Relationships # URL Nested has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url' # 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