aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-07-01 12:07:31 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-07-05 18:42:41 +0900
commit52729fb5f24ff96c812327ff045b9a1921d37a7c (patch)
treefa6c96849ed9d53272d1399411e8884d8083b203 /activerecord/test/schema
parenta59b2305792dd7012a8abc2e4b1a7d9037e8e208 (diff)
downloadrails-52729fb5f24ff96c812327ff045b9a1921d37a7c.tar.gz
rails-52729fb5f24ff96c812327ff045b9a1921d37a7c.tar.bz2
rails-52729fb5f24ff96c812327ff045b9a1921d37a7c.zip
MySQL: Fix schema dumping `enum` and `set` columns correctly
`enum` and `set` are typed cast as `:string`, but currently the `:string` type is incorrectly reused for schema dumping. A cast type on columns is not always the same with `sql_type`, this fixes schema dumping `enum` and `set` columns to use `sql_type` instead of `type` correctly.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/mysql2_specific_schema.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/test/schema/mysql2_specific_schema.rb b/activerecord/test/schema/mysql2_specific_schema.rb
index b143035213..911ac808c6 100644
--- a/activerecord/test/schema/mysql2_specific_schema.rb
+++ b/activerecord/test/schema/mysql2_specific_schema.rb
@@ -62,10 +62,6 @@ ActiveRecord::Schema.define do
t.binary :binary_column, limit: 1
end
- create_table :enum_tests, id: false, force: true do |t|
- t.column :enum_column, "ENUM('text','blob','tiny','medium','long','unsigned','bigint')"
- end
-
execute "DROP PROCEDURE IF EXISTS ten"
execute <<~SQL