Sha256: e43d91d3e681d204d8dbc340acb35cdb833a474b80f59e120638540ff9edef13

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

# encoding: utf-8
class MagicAddresses::Subdistrict < ActiveRecord::Base

  # =====> A S S O Z I A T I O N S <========================================================= #
  has_many :addresses,    class_name: "MagicAddresses::Address",  foreign_key: :subdistrict_id
  
  belongs_to :city,       class_name: "MagicAddresses::City",     foreign_key: :city_id
  belongs_to :district,   class_name: "MagicAddresses::District", foreign_key: :district_id
  
  
  # =====> A T T R I B U T E S <============================================================= #
  mgca_translate :name
  
  
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
magic_addresses-0.0.1 app/models/magic_addresses/subdistrict.rb