Created
October 22, 2019 20:26
-
-
Save oliveira-andre/28dba5589ac761c792c05e90f190441d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Unit < ApplicationRecord | |
| store :data, accessors: %i[position phone email], coder: JSON | |
| belongs_to :company, inverse_of: :units, optional: true | |
| belongs_to :unit_parent, class_name: "Unit", foreign_key: "unit_id", optional: true | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment