I just checked my MySQL tables and I have default set as latin1. Is that generally the default?
How can I make it explicit for all my tables that I want the database to be utf-8?
I know there is a db configuration that can change the default, but I think there is also a way to do it per-migration. How could I permanently set my rails migrations from now on to be utf-8?
Thanks!
create_table(:table_name, :options => 'ENGINE=InnoDB DEFAULT CHARSET=utf8')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With