https://avo.cool logo
Model error but creating
# general
f
👋 again - any reason i would be getting a create_fail action and yet the record is actually succeeding?
l
Hello @future-garden-51299 . Can you provide more information about how to reproduce it?
l
do you have any callbacks related to the record creation?
maybe
after_create
or something similar
the record gets created and then something else is failing
f
That’s a good thought. Will verify tomorrow.
Thanks for response!
Just reviewed the code.. this model is super simple. The only relationship and validation below:
Copy code
belongs_to :resource
  validates :day, presence: true # , uniqueness: { scope: :resource_id }
I've removed the scope for uniqueness checks prior to getting this error
l
hey @future-garden-51299. it's difficult for us to try to speculate on what is happening there without seeing the code
and I don't mean you pasting the code here or in an issue
f
here's a video
l
a reproduction repo that we can run would help us play around with it
there's no database constraint on the table
l
I see that
there's something happening there, for sure
I can't seem to figure it out from the video