Using other MySQL Storage Engines

Try

create_table(:suppliers, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8')
if you need to make a table with a different storage engine than default on MySQL. Note that this will bind your migration to MySQL, as it simply appends whatever is in the :options string to the end of the CREATE_TABLE generated by the migration.

Avatar
Brandon Dimcheff
Chief Architect

Brandon Dimcheff is a software engineer born and raised in Ann Arbor, Michigan. He uses go for his day job, has fallen in love with Kubernetes, is an aspiring functional programming language nerd, and is an advocate of open source.

comments powered by Disqus