diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-24 16:04:26 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-24 16:04:26 -0300 |
commit | 2bc72ae29c660a2d9bf6b1b42db4fe18f0d1492f (patch) | |
tree | 78648c8e13758e4ca517f39c70728d8383862073 /activerecord/lib/active_record/connection_adapters | |
parent | a0580e974b4a058a983de6c593e4573bd94b76f0 (diff) | |
parent | ee87dbe0480db6f936ad07addf9f6e64068457ef (diff) | |
download | rails-2bc72ae29c660a2d9bf6b1b42db4fe18f0d1492f.tar.gz rails-2bc72ae29c660a2d9bf6b1b42db4fe18f0d1492f.tar.bz2 rails-2bc72ae29c660a2d9bf6b1b42db4fe18f0d1492f.zip |
Merge pull request #19066 from courtenay/mysql_boolean_limit_19065
Fix mysql's schema.rb dumper so it does not include limit on emulated booleans
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 1 |
1 files changed, 1 insertions, 0 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 8ec26bc109..98009da2bd 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -98,6 +98,7 @@ module ActiveRecord def prepare_column_options(column) spec = super spec.delete(:precision) if /time/ === column.sql_type && column.precision == 0 + spec.delete(:limit) if :boolean === column.type spec end |