diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-01-30 12:19:00 -0500 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-01-30 12:19:00 -0500 |
commit | b789f6dff4e67204f66175155a74c5f74d93c92e (patch) | |
tree | f555e323f7847860c156d980d93b3105c5af2dbf /activerecord/lib | |
parent | 7d18de3bb57fc2f2e392cc424bbaf13d49870caf (diff) | |
parent | d0054b490848fa80f6c2036bd4e4b45293d16394 (diff) | |
download | rails-b789f6dff4e67204f66175155a74c5f74d93c92e.tar.gz rails-b789f6dff4e67204f66175155a74c5f74d93c92e.tar.bz2 rails-b789f6dff4e67204f66175155a74c5f74d93c92e.zip |
Merge pull request #23355 from kamipo/fix_bigint_for_enum_columns
Fix `bigint?` for Enum columns in MySQL
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. |