Files
fizzy/config/application.rb
T
Donal McBreen fc56ad9d7c Combine uuid-old and uuid branch changes
- Switch to binary 16 for UUID keys
- Remove AccountScopedRecord base class, all model use binary uuids now
- Fix the search sql to serialize uuids properly
- Patch the MySQL schema dumper to output binary lengths
2025-11-17 09:12:34 -05:00

46 lines
1.5 KiB
Ruby

require_relative "boot"
require "rails/all"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Fizzy
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 8.1
# Include the `lib` directory in autoload paths. Use the `ignore:` option
# to list subdirectories that don't contain `.rb` files or that shouldn't
# be reloaded or eager loaded.
config.autoload_lib ignore: %w[ assets tasks rails_ext ]
# Configuration for the application, engines, and railties goes here.
#
# These settings can be overridden in specific environments using the files
# in config/environments, which are processed later.
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
# enable load_async
config.active_record.async_query_executor = :global_thread_pool
# include the tenant in query logs
config.active_record.query_log_tags_enabled = true
config.active_record.query_log_tags = [ :tenant ]
# Enable debug mode for Rails event logging so we get SQL query logs.
# This was made necessary by the change in https://github.com/rails/rails/pull/55900
config.after_initialize do
Rails.event.debug_mode = true
end
# Use UUID primary keys for all new tables
config.generators do |g|
g.orm :active_record, primary_key_type: :uuid
end
end
end