Open markhermano opened 8 months ago
I found a solution to the issue above by doing the following in log_fail.rb
but I'm unsure if this is a better way of doing it.
json_result["records"] =
(ActiveRecord::Base.descendants - [ApplicationRecord]).each_with_object({}) do |record_class, records|
records[record_class.to_s] = record_class.limit(100).map(&:attributes)
rescue StandardError => e
raise e
end
Hello,
I stumbled into another issue here which only occurs again on CI but works locally. The gem loads the resource for the ApplicationRecord model but doesn't find a DB table associated with it.
The error I get in GitHub actions is:
Here is the test.log from the Github actions artifacts:
Is there a workaround for this issue?