1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/models/organization.rb

6 lines
184 B
Ruby
Raw Normal View History

2016-08-01 17:36:38 +02:00
class Organization < ActiveRecord::Base
belongs_to :profile
2016-08-01 17:36:38 +02:00
has_one :address, as: :placeable, dependent: :destroy
accepts_nested_attributes_for :address, allow_destroy: true
end