diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-31 01:07:02 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-31 01:07:02 +0900 |
commit | d0054b490848fa80f6c2036bd4e4b45293d16394 (patch) | |
tree | 16f7fca0abb89bac6776be92f1c33e3f7805e604 /activerecord/lib | |
parent | c4d85dfbc71043e2a746acd310e32f4f04db801a (diff) | |
download | rails-d0054b490848fa80f6c2036bd4e4b45293d16394.tar.gz rails-d0054b490848fa80f6c2036bd4e4b45293d16394.tar.bz2 rails-d0054b490848fa80f6c2036bd4e4b45293d16394.zip |
Fix `bigint?` for Enum columns in MySQL
Follow up to #22896.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/column.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index 81de7c03fb..10f908538f 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -30,7 +30,7 @@ module ActiveRecord end def bigint? - /bigint/ === sql_type + /\Abigint\b/ === sql_type end # Returns the human name of the column name. |