Sha256: a95c98d081141dc99b1feaf63fcbad8b8364631bfb492e4621f1c07fc5986aab

Contents?: true

Size: 365 Bytes

Versions: 7

Compression:

Stored size: 365 Bytes

Contents

module Phcscriptcdnpro
	class Scriptcdn::Main < ActiveRecord::Base

		# Relationships
		has_many :versions, class_name: 'Script::Version'
		has_many :urls, class_name: 'Script::Url'
		has_many :authors, class_name: 'Script::Author'

		# Validation for Form Fields
		validates :scriptname,
			uniqueness: true,
			presence: true,
			length: { minimum: 3 }

	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phcscriptcdnpro-1.5.8 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.5.7 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.5.6 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.5.5 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.5.4 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.5.3 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.5.2 app/models/phcscriptcdnpro/scriptcdn/main.rb