Sha256: ac7628ffe3bb7c27310616b797aebc77f2938767052ba0e56fe246429a2421c9

Contents?: true

Size: 291 Bytes

Versions: 6

Compression:

Stored size: 291 Bytes

Contents

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

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

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

	end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phcmemberspro-6.5.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.5.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.0.1 app/models/phcmemberspro/directory/category.rb
phcmemberspro-6.0.0 app/models/phcmemberspro/directory/category.rb
phcmemberspro-5.4.2 app/models/phcmemberspro/directory/category.rb
phcmemberspro-5.4.1 app/models/phcmemberspro/directory/category.rb