diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-01-06 03:21:14 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-01-06 03:21:14 -0200 |
commit | 059820c09afaf18e2d29da61db0e0a3215989b89 (patch) | |
tree | 54f344f1c36ef5d9e91e5a35b14c919ffd7b211e /activerecord/CHANGELOG.md | |
parent | ced9612b59d1a8fdd38ac1669cf1e6bd43220a24 (diff) | |
parent | 4d4239f980a42d78d3a11b78401c211f0420040d (diff) | |
download | rails-059820c09afaf18e2d29da61db0e0a3215989b89.tar.gz rails-059820c09afaf18e2d29da61db0e0a3215989b89.tar.bz2 rails-059820c09afaf18e2d29da61db0e0a3215989b89.zip |
Merge pull request #21688 from kamipo/add_text_and_blob_shorthand_methods
Add short-hand methods for text and blob types in MySQL
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 63f930e2ea..5790528e97 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,22 @@ +* Add short-hand methods for text and blob types in MySQL. + + In Pg and Sqlite3, `:text` and `:binary` have variable unlimited length. + But in MySQL, these have limited length for each types (ref #21591, #21619). + This change adds short-hand methods for each text and blob types. + + Example: + + create_table :foos do |t| + t.tinyblob :tiny_blob + t.mediumblob :medium_blob + t.longblob :long_blob + t.tinytext :tiny_text + t.mediumtext :medium_text + t.longtext :long_text + end + + *Ryuta Kamizono* + * Take into account UTC offset when assigning string representation of timestamp with offset specified to attribute of time type. |