My Rails 5 schema.rbhas a section options:for everyone create_tablethat I don't want. I have:
create_table "accounts", id: false, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
but I want:
create_table "accounts", id: false, force: :cascade do |t|
Since this is a generated file, I do not want to manually edit it.
The reason I don't want the section to optionsbe caused is because for the TDD fast loop I want to use SQLite in memory when RAILS_ENV=test, but MySQL is in development and production.
How can I predefine certain parameters of a DB database adapter and put into a schema?
source
share