Sha256: 2e91d94e3c48a260c76e2686f48bc4bae60aee6d4078ba7e3fef67408197a9fb
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
module PhcdevworksRealEstate class Property::Listing < ApplicationRecord # Image Uploading has_one_attached :listing_upload has_many_attached :gallery_upload # Relationships has_and_belongs_to_many :features, class_name: 'Phcreallistingspro::Property::Feature', :join_table => 'features_listings' # Validation for Form Fields validates :listing_title, presence: true validates :listing_description, presence: true validates :listing_street_address, presence: true validates :listing_price, 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/listing.rb |
phcdevworks_real_estate-1.0.0 | app/models/phcdevworks_real_estate/property/listing.rb |