From 32c10290eeef60d68db29b7b439b2f841722890e Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 12 Nov 2024 18:27:31 +0100 Subject: [PATCH] Fix ci --- lib/hotsheet/configuration.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/hotsheet/configuration.rb b/lib/hotsheet/configuration.rb index b8f7fcd..c180906 100644 --- a/lib/hotsheet/configuration.rb +++ b/lib/hotsheet/configuration.rb @@ -42,6 +42,9 @@ def ensure_only_one_attribute_set def validate_attribute_existence model_class = model_name.to_s.constantize + + return unless ActiveRecord::Base.connection.table_exists?(model_class.table_name) + all_attributes = model_class.column_names (included_attributes + excluded_attributes).each do |attr|