This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Create a migration | |
### rails g migration make_unicode_friendly | |
class MakeUnicodeFriendly < ActiveRecord::Migration | |
def change | |
alter_database_and_tables_charsets "utf8", "utf8_general_ci" | |
end | |
private | |
def alter_database_and_tables_charsets charset = default_charset, collation = default_collation |