When trying to db:migrate after db:create against MySQL, I get the following complaint :
Mysql2::Error: Invalid default value for 'parent_ids': CREATE TABLE
standards(
idint(11) auto_increment PRIMARY KEY,
jurisdiction_idint(11) NOT NULL,
csp_idvarchar(255),
parent_idsint(11) DEFAULT NULL NOT NULL,
education_levelsvarchar(255) DEFAULT '--- []\n' NOT NULL,
titlevarchar(255),
subjectvarchar(255),
documentvarchar(255),
indexedtinyint(1) DEFAULT 0 NOT NULL,
chi ld_countint(11) DEFAULT 0) ENGINE=InnoDB
After looking at file standards-importer/db/migrate/20150708101057_create_initial_tables.rb :
t.column :parent_ids, :integer, array: true, null: false, default: []
t.column :education_levels, :string, array: true, null: false, default: []
The susmentioned code creates arrays which are not handle gracefully in MySQL world.
Did you already run your scripts over a MySQL DB ?
Perhaps, if you give me an overview of your schema I can fork and create what's needed for it ?