From 1ef3c83a0a6fccecc4336812e8ef8e0b817d0c57 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 17 Jul 2022 01:33:43 +0200 Subject: [PATCH] Remove workaround for schema.rb We don't have the schema.rb anymore in the repo, so we don't need it compatible with both databases anymore. See 5b1be7d8dac07eb133250835bce12e36f8e4908a --- config/application.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/config/application.rb b/config/application.rb index 36b801b9d..a798f40ce 100644 --- a/config/application.rb +++ b/config/application.rb @@ -10,22 +10,6 @@ require_relative "bundler_helper" # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups(BundlerHelper.database)) -# Do not dump the limit of boolean fields on MySQL, -# since that generates a db/schema.rb that's incompatible -# with PostgreSQL -require 'active_record/connection_adapters/abstract_mysql_adapter' -module ActiveRecord - module ConnectionAdapters - class Mysql2Adapter < AbstractMysqlAdapter - def prepare_column_options(column, *_) - super.tap {|spec| - spec.delete(:limit) if column.type == :boolean - } - end - end - end -end - # Load asset_sync early require_relative 'asset_sync'