1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/models/essay_destroy_async.rb
Muhammad Usman 095878c6e4 Handle STI models for has_many dependent: :destroy_async
Update activerecord/test/activejob/destroy_association_async_test.rb

Co-authored-by: Ryuta Kamizono <kamipo@gmail.com>
2021-01-06 02:04:23 +01:00

12 lines
294 B
Ruby

# frozen_string_literal: true
class EssayDestroyAsync < ActiveRecord::Base
self.table_name = "essays"
belongs_to :book, dependent: :destroy_async, class_name: "BookDestroyAsync"
end
class LongEssayDestroyAsync < EssayDestroyAsync
end
class ShortEssayDestroyAsync < EssayDestroyAsync
end