Created
January 5, 2018 20:34
-
-
Save daniel-bytes/47bebee98429674740ecf26654ab3f3d 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 StateTransitionEvent | |
include Mongoid::Document | |
include Mongoid::Timestamps::Created | |
field :entity_type, type: String | |
field :entity_id, type: BSON::ObjectId | |
field :entity_attributes, type: Hash | |
field :event, type: String | |
field :from, type: String | |
field :to, type: String | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment