module Phcscriptcdnpro class Script::Listing < ApplicationRecord # Relationships #has_many :informations, class_name: 'Phcscriptcdn::Script::Version' # URL Nested has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url' # Author Nested has_many :authors, class_name: 'Phcscriptcdnpro::Script::Author' # Attach to Version belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version' end end