abstract_mysql2_adapter

Behebt Problem beim Erstellen der Datenbank
https://stackoverflow.com/questions/37315546/uninitialized-constant-activerecordconnectionadaptersmysql2adapternative-d
This commit is contained in:
Christian Meyer 2023-05-24 19:09:38 +02:00
parent ee92f74cef
commit 4951de8358

View File

@ -0,0 +1,6 @@
require 'active_record/connection_adapters/mysql2_adapter'
NativeDbTypesOverride.configure({
ActiveRecord::ConnectionAdapters::Mysql2Adapter => {
primary_key: "int(11) auto_increment PRIMARY KEY"
}
})