module Phcscriptcdnpro class Script::Listing < ApplicationRecord # Relationships #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