diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-03 08:50:46 +0900 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2017-02-09 00:30:29 -0700 |
commit | ae39b1a03d0a859be9d5342592c8936f89fcbacf (patch) | |
tree | 510e3d0ac891b035676656325b0e2f0be7bd08ec /activerecord/test/cases/adapters/mysql2/sql_types_test.rb | |
parent | e2b425bc741d19308f98fed1103bf7d66c8cad2d (diff) | |
download | rails-ae39b1a03d0a859be9d5342592c8936f89fcbacf.tar.gz rails-ae39b1a03d0a859be9d5342592c8936f89fcbacf.tar.bz2 rails-ae39b1a03d0a859be9d5342592c8936f89fcbacf.zip |
Refactor `ColumnDefinition` to contain `options` hash
Column options are passed as an hash args then used as `options` hash in
`add_column_options!`. Converting args to attributes is inconvinient for
using options as an hash.
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2/sql_types_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/sql_types_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/sql_types_test.rb b/activerecord/test/cases/adapters/mysql2/sql_types_test.rb index bee42d48f1..d6e7f29a5c 100644 --- a/activerecord/test/cases/adapters/mysql2/sql_types_test.rb +++ b/activerecord/test/cases/adapters/mysql2/sql_types_test.rb @@ -8,7 +8,7 @@ class Mysql2SqlTypesTest < ActiveRecord::Mysql2TestCase assert_equal "blob", type_to_sql(:binary) end - def type_to_sql(*args) - ActiveRecord::Base.connection.type_to_sql(*args) + def type_to_sql(type, limit = nil) + ActiveRecord::Base.connection.type_to_sql(type, limit: limit) end end |