Sha256: 279cc3afebf429d1f7c834e0c3969412593803df46463588f9067dbfd0d2aff3

Contents?: true

Size: 374 Bytes

Versions: 10

Compression:

Stored size: 374 Bytes

Contents

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

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

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

	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
phcscriptcdnpro-1.7.5 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.7.0 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.6.9 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.6.8 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.6.7 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.6.6 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.6.5 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.6.1 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.6.0 app/models/phcscriptcdnpro/scriptcdn/main.rb
phcscriptcdnpro-1.5.9 app/models/phcscriptcdnpro/scriptcdn/main.rb