diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-27 22:18:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 22:18:23 +0900 |
commit | 7ff3bc125373c76e58f46463f6cff6dac15b15dd (patch) | |
tree | 8fc1011445cd1f90c6e3695085d2a22d6f2e381d /activerecord/lib | |
parent | 376e19c93e8bd03a19005ab04f5a8832182058e0 (diff) | |
download | rails-7ff3bc125373c76e58f46463f6cff6dac15b15dd.tar.gz rails-7ff3bc125373c76e58f46463f6cff6dac15b15dd.tar.bz2 rails-7ff3bc125373c76e58f46463f6cff6dac15b15dd.zip |
Omit the default limit for float columns (#28041)
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 3683522a0c..7cd086084a 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -33,7 +33,7 @@ module ActiveRecord string: { name: "varchar", limit: 255 }, text: { name: "text", limit: 65535 }, integer: { name: "int", limit: 4 }, - float: { name: "float" }, + float: { name: "float", limit: 24 }, decimal: { name: "decimal" }, datetime: { name: "datetime" }, timestamp: { name: "timestamp" }, |