Sha256: 6aea4fb420d21709f2c16789d321eb9c327aa8abda9a5b90c18bd87ec6ac3944

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

class RESO::Property::Farming < ApplicationRecord
  self.table_name = 'reso_property_farmings'

  belongs_to :property

  has_many :vegetation_assignments, as: :enumerable
  has_many :vegetation, through: :vegetation_assignments, source: :enumeration, class_name: "RESO::Lookup::Vegetation"

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reso-0.2.2 lib/reso/app/models/reso/property/farming.rb