Skip to content

Commit 14b1d73

Browse files
authored
Merge pull request rails#46511 from RubyElders/charset-optional-collation
Support optional collation in create_table output.
2 parents 4da49fa + e4ca7d7 commit 14b1d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/adapters/mysql2/table_options_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def teardown
3232
test "table options with CHARSET" do
3333
@connection.create_table "mysql_table_options", force: true, options: "CHARSET=latin1"
3434
output = dump_table_schema("mysql_table_options")
35-
expected = /create_table "mysql_table_options", charset: "latin1", force: :cascade/
35+
expected = /create_table "mysql_table_options", charset: "latin1"(?:, collation: "\w+")?, force: :cascade/
3636
assert_match expected, output
3737
end
3838

0 commit comments

Comments
 (0)