aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-02-04 07:30:05 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-02-04 07:30:05 +0900
commit8b8ee6539cb4d4b5389db084014aa8da4fa997a7 (patch)
tree20589ebff3d986360ada4348f9e4f02eba609de9 /activerecord
parent13b918d1e9ebe2c609b5479550a35f3665c2acd2 (diff)
downloadrails-8b8ee6539cb4d4b5389db084014aa8da4fa997a7.tar.gz
rails-8b8ee6539cb4d4b5389db084014aa8da4fa997a7.tar.bz2
rails-8b8ee6539cb4d4b5389db084014aa8da4fa997a7.zip
InnoDB supports FULLTEXT and Spatial Indexes [ci skip]
https://dev.mysql.com/doc/refman/5.7/en/innodb-fulltext-index.html https://dev.mysql.com/doc/refman/5.7/en/creating-spatial-indexes.html
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index cc245587c1..65087f35a8 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -700,7 +700,7 @@ module ActiveRecord
#
# CREATE FULLTEXT INDEX index_developers_on_name ON developers (name) -- MySQL
#
- # Note: only supported by MySQL. Supported: <tt>:fulltext</tt> and <tt>:spatial</tt> on MyISAM tables.
+ # Note: only supported by MySQL.
def add_index(table_name, column_name, options = {})
index_name, index_type, index_columns, index_options = add_index_options(table_name, column_name, options)
execute "CREATE #{index_type} INDEX #{quote_column_name(index_name)} ON #{quote_table_name(table_name)} (#{index_columns})#{index_options}"