aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJames Pearson <james@needcode.co.uk>2019-07-29 12:04:07 +0100
committerJames Pearson <james@needcode.co.uk>2019-07-29 15:53:29 +0100
commit92c265b3ad89303e53e64f7ead4499066966c722 (patch)
tree313f573fdbddf65bf6624b7fe9ee39318bd3ad83 /activerecord/CHANGELOG.md
parent682f6648193a7d166d8f54be98af19c62b4e938f (diff)
downloadrails-92c265b3ad89303e53e64f7ead4499066966c722.tar.gz
rails-92c265b3ad89303e53e64f7ead4499066966c722.tar.bz2
rails-92c265b3ad89303e53e64f7ead4499066966c722.zip
Enabled matches_regex for MySql
Previously matches_regex was only availble on PostgreSql, this will enable it for MySql Usage example: users = User.arel_table; users = User.arel_table; User.where(users[:email].matches_regexp('(.*)\@gmail.com')) Update activerecord/test/cases/arel/visitors/mysql_test.rb Co-Authored-By: Ryuta Kamizono <kamipo@gmail.com>
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 7f2071189b..919905e884 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Allow matches_regex on MySQL
+
+ *James Pearson*
+
* Allow specifying fixtures to be ignored by setting `ignore` in YAML file's '_fixture' section.
*Tongfei Gao*