Move migration defaults to ActiveRecord migration strategy

Remove redundant defaults
This commit is contained in:
2026-05-05 20:09:20 +02:00
parent 78639b4c1e
commit 4a36ffc8bf
7 changed files with 51 additions and 15 deletions

View File

@@ -18,6 +18,8 @@ require "rails/test_unit/railtie"
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
require_relative '../lib/default_settings_strategy'
module FixinMe
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
@@ -39,6 +41,9 @@ module FixinMe
config.action_dispatch.rescue_responses['ApplicationController::AccessForbidden'] = :forbidden
config.action_dispatch.rescue_responses['ApplicationController::ParameterInvalid'] = :unprocessable_entity
# Set default migrations parameters.
config.active_record.migration_strategy = DefaultSettingsStrategy
# SETUP: Below settings need to be updated on a per-installation basis.
#
# Set host to be used by links generated in mailer templates.