Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2022-07-17 02:33:43 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-07-20 22:26:58 +0300
commit1ef3c83a0a6fccecc4336812e8ef8e0b817d0c57 (patch)
tree524b09d456d44fc489c1b874d5fbfbd92af03fc3
parentac86c29a8559679ba444fa64b59ef0cd963ac55f (diff)
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
-rw-r--r--config/application.rb16
1 files changed, 0 insertions, 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'