Sha256: 9ee69e22580ddb328ace32f4aa5ff296e0683006821fc4b0a19bc9c31f6651ef
Contents?: true
Size: 353 Bytes
Versions: 4
Compression:
Stored size: 353 Bytes
Contents
module Phcmemberspro class Directory::Category < ActiveRecord::Base # Mount PHCEngine belongs_to :user, :class_name => "Phcengine::User" # Model Relationship has_many :catlists, class_name: 'Directory::Catlist' # Validation for Form Fields validates :catname, presence: true, uniqueness: true, length: { minimum: 3 } end end
Version data entries
4 entries across 4 versions & 1 rubygems