Sha256: 2bac2e04f4d16fc51cb2040ee9f26d20f7489ae89bf98e9c5174031b829c6724

Contents?: true

Size: 337 Bytes

Versions: 10

Compression:

Stored size: 337 Bytes

Contents

module Phcmemberspro
	class Directory::Category < ActiveRecord::Base

		# Add Paper Trail
		has_paper_trail

		# Model Relationship
		has_many :catlists, class_name: 'Directory::Catlist'

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

	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
phcmemberspro-6.7.5 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.7.3 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.7.2 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.7.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.7.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.6.5 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.6.4 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.6.2 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.6.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.6.0 app/models/phcmemberspro/directory/category.rb