You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both MyModel and its :my_machine machine have defined a different default for "my_state". Use only one or the other for defining defaults to avoid unexpected behaviors.
In this case the database default for the model is 0. Upon further inspection, state machine is attempting to compare the string my_state with the model default of 0 rather than using the value specified for the state name.
The text was updated successfully, but these errors were encountered:
getting the warning
when setting values for the default as such
In this case the database default for the model is 0. Upon further inspection, state machine is attempting to compare the string
my_state
with the model default of0
rather than using thevalue
specified for the state name.The text was updated successfully, but these errors were encountered: