Sha256: 596029a801d3598c9cbe6ddcf24e70e34b50118aaab9fb560af38e22f5e9ee8c

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

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

  # =====> A S S O Z I A T I O N S <========================================================= #
  has_many :addresses,    class_name: "MagicAddresses::Address",  foreign_key: :district_id
  
  belongs_to :city,       class_name: "MagicAddresses::City",     foreign_key: :city_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/district.rb