diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-25 20:11:39 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-25 20:11:39 -0300 |
commit | eb2a8e317d7989bc209a669afd101d940b7e573f (patch) | |
tree | 107269eb2758b2516eed10d41a6f9edc9c1d563b /activerecord/test | |
parent | 5c5d9417ca4f6dedd47565bb41b6cdcacde11099 (diff) | |
parent | 3239b6a98ad7c99b6bd8cd6345c59430e5d38083 (diff) | |
download | rails-eb2a8e317d7989bc209a669afd101d940b7e573f.tar.gz rails-eb2a8e317d7989bc209a669afd101d940b7e573f.tar.bz2 rails-eb2a8e317d7989bc209a669afd101d940b7e573f.zip |
Merge pull request #17601 from kamipo/support_any_unicode_charsets
Add `SchemaMigration.create_table` support any unicode charsets for MySQL.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/schema_migrations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/schema_migrations_test.rb b/activerecord/test/cases/adapters/mysql2/schema_migrations_test.rb index 271b570eb5..417ccf6d11 100644 --- a/activerecord/test/cases/adapters/mysql2/schema_migrations_test.rb +++ b/activerecord/test/cases/adapters/mysql2/schema_migrations_test.rb @@ -2,7 +2,7 @@ require "cases/helper" module ActiveRecord module ConnectionAdapters - class Mysql2Adapter + class AbstractMysqlAdapter class SchemaMigrationsTest < ActiveRecord::TestCase def test_renaming_index_on_foreign_key connection.add_index "engines", "car_id" @@ -28,7 +28,7 @@ module ActiveRecord connection.initialize_schema_migrations_table - assert connection.column_exists?(smtn, :version, :string, limit: Mysql2Adapter::MAX_INDEX_LENGTH_FOR_UTF8MB4) + assert connection.column_exists?(smtn, :version, :string, limit: AbstractMysqlAdapter::MAX_INDEX_LENGTH_FOR_CHARSETS_OF_4BYTES_MAXLEN) ensure execute("ALTER DATABASE #{database_name} DEFAULT CHARACTER SET #{original_charset} COLLATE #{original_collation}") end |