app/models/phcscriptcdnpro/scriptcdn/scripturl.rb in phcscriptcdnpro-1.4.1 vs app/models/phcscriptcdnpro/scriptcdn/scripturl.rb in phcscriptcdnpro-1.4.2

- old
+ new

@@ -1,9 +1,10 @@ module Phcscriptcdnpro class Scriptcdn::Scripturl < ActiveRecord::Base # Relationships - belongs_to :scriptversion, class_name: 'Script::Version' + belongs_to :script, class_name: 'Script::Main' + has_many :scriptversions, class_name: 'Script::Scriptversion' # Validation for Form Fields validates :scrpturlphc, uniqueness: true, presence: true,