Skip to content

Commit cce5551

Browse files
committed
Fix "Specified key was too long; max key length is 1000 bytes (Mysql2::Error)"
1 parent 1447ed8 commit cce5551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/schema/mysql2_specific_schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
t.index :var_binary
4848
end
4949

50-
create_table :key_tests, force: true, options: "ENGINE=MyISAM" do |t|
50+
create_table :key_tests, force: true, options: "CHARSET=utf8 ENGINE=MyISAM" do |t|
5151
t.string :awesome
5252
t.string :pizza
5353
t.string :snacks

0 commit comments

Comments
 (0)