abstract_mysql2_adapter
Behebt Problem beim Erstellen der Datenbank https://stackoverflow.com/questions/37315546/uninitialized-constant-activerecordconnectionadaptersmysql2adapternative-d
This commit is contained in:
parent
ee92f74cef
commit
4951de8358
6
config/initializers/abstract_mysql2_adapter.rb
Normal file
6
config/initializers/abstract_mysql2_adapter.rb
Normal 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"
|
||||||
|
}
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user