Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
Reload app after_create
Browse files Browse the repository at this point in the history
  • Loading branch information
davegson committed Oct 16, 2018
1 parent b4b7217 commit 39d8bc5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/app.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
class App < ApplicationRecord
# needed to load uuid that is generated by postgres
# https://github.com/rails/rails/issues/21627#issuecomment-142625429
# https://www.devmynd.com/blog/db-generated-values-and-activerecord/
after_create :reload

belongs_to :user
end

0 comments on commit 39d8bc5

Please sign in to comment.