Skip to content

Commit

Permalink
Use after_create
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrec committed Dec 6, 2023
1 parent 9317fbd commit a90e60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/tenant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Tenant < ApplicationRecord
has_many :simple_tags
has_many :filters

after_commit :create_default_objects, on: :create
after_create :create_default_objects

validates_presence_of :name

Expand Down

0 comments on commit a90e60f

Please sign in to comment.