Created
October 17, 2019 22:03
-
-
Save brunoandradd/b87f4131f4559206bad9d7ac72ccac10 to your computer and use it in GitHub Desktop.
This file contains 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