Sha256: 9727da9e9ee81eeca961f8fb26a9c282a126a7fbfdc60a591aced7dd750f031a

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

module PhcdevworksRealEstate
  class Property::Feature < ApplicationRecord

    # Relationships
    has_and_belongs_to_many :listings, class_name: 'Phcreallistingspro::Property::Listing', :join_table => 'features_listings'

    # Validation for Form Fields
    validates :feature_name,
      presence: true

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phcdevworks_real_estate-1.1.0 app/models/phcdevworks_real_estate/property/feature.rb
phcdevworks_real_estate-1.0.0 app/models/phcdevworks_real_estate/property/feature.rb