diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-11-19 10:00:59 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-11-19 10:01:06 -0700 |
commit | 6b7861e8343400b85636d1f32917e463e309864a (patch) | |
tree | 8a9cfa20a2f3f4224aa8116f5670477bf84000ff /activerecord/test | |
parent | 8246b593bff71f2cebf274c133bb8917f1e094c8 (diff) | |
download | rails-6b7861e8343400b85636d1f32917e463e309864a.tar.gz rails-6b7861e8343400b85636d1f32917e463e309864a.tar.bz2 rails-6b7861e8343400b85636d1f32917e463e309864a.zip |
Revert "Allow specifying the default table options for mysql adapters"
This reverts commit 8246b593bff71f2cebf274c133bb8917f1e094c8.
There was concern about this modifying the behavior of past migrations.
We're going to add an way to modify the migration generator instead.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 58cbb80e31..c3c204cf9f 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1020,23 +1020,4 @@ class CopyMigrationsTest < ActiveRecord::TestCase ActiveRecord::Base.logger = old end - if current_adapter?(:Mysql2Adapter) - def test_default_table_options - config = ActiveRecord::Base.configurations['arunit'].merge( - encoding: 'utf8mb4', - default_table_options: "ENGINE=InnoDB CHARACTER SET utf8mb4", - ) - ActiveRecord::Base.establish_connection(config) - - ActiveRecord::Base.connection.create_table(:foos) do |t| - t.string :emoji - end - ActiveRecord::Base.connection.execute("INSERT INTO foos (emoji) VALUES ('💩')") - emoji = ActiveRecord::Base.connection.execute("SELECT emoji FROM foos").first.first - assert_equal "💩", emoji - ensure - ActiveRecord::Base.connection.drop_table(:foos, if_exists: true) - ActiveRecord::Base.establish_connection(:arunit) - end - end end |