Open AlexKichkailo opened 8 months ago
temp fix
ClickhouseActiverecord::Tasks.class_eval do
def initialize(configuration)
# sometimes configuration is an instance of ActiveRecord::DatabaseConfigurations::HashConfig
# and sometimes it's a Hash
@configuration = if configuration.respond_to?(:configuration_hash)
configuration.configuration_hash.with_indifferent_access
else
configuration.with_indifferent_access
end
end
end
When running
bin/rails clickhouse:structure:dump
I am getting the following errorthrows NoMethodError: undefined method `with_indifferent_access' for #<ActiveRecord::DatabaseConfigurations::HashConfig
Appears to be an issue in rails_70 branch.