Class: ClickhouseRuby::ActiveRecord::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/clickhouse_ruby/active_record/railtie.rb

Overview

Rails integration for ClickhouseRuby ClickHouse adapter

This Railtie hooks into Rails to:

  • Register the ClickHouse adapter with ActiveRecord

  • Configure default settings for Rails environments

  • Set up logging integration

Examples:

database.yml

development:
  adapter: clickhouse
  host: localhost
  port: 8123
  database: myapp_development

production:
  adapter: clickhouse
  host: <%= ENV['CLICKHOUSE_HOST'] %>
  port: 8443
  database: myapp_production
  ssl: true
  ssl_verify: true