Replace deprecated after_create with after(:create)