diff options
author | Ken Mazaika <kenmazaika@gmail.com> | 2013-03-27 00:30:11 -0400 |
---|---|---|
committer | Ken Mazaika <kenmazaika@gmail.com> | 2013-03-27 23:35:54 -0400 |
commit | 9600e0b02973ce5dd36642511d542a6b62983a5e (patch) | |
tree | 9f8317610a85ef1e74b49ac08cbc329a03be6908 /activerecord/test/cases/schema_dumper_test.rb | |
parent | 0739d146bcd31247391d64b852885634d78e576d (diff) | |
download | rails-9600e0b02973ce5dd36642511d542a6b62983a5e.tar.gz rails-9600e0b02973ce5dd36642511d542a6b62983a5e.tar.bz2 rails-9600e0b02973ce5dd36642511d542a6b62983a5e.zip |
Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL.
Diffstat (limited to 'activerecord/test/cases/schema_dumper_test.rb')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index a50a138fb0..6e03a2bd67 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -225,6 +225,12 @@ class SchemaDumperTest < ActiveRecord::TestCase assert_match %r{t.text\s+"medium_text",\s+limit: 16777215$}, output assert_match %r{t.text\s+"long_text",\s+limit: 2147483647$}, output end + + def test_schema_dumps_index_type + output = standard_dump + assert_match %r{add_index "key_tests", \["awesome"\], name: "index_key_tests_on_awesome", type: :fulltext}, output + assert_match %r{add_index "key_tests", \["pizza"\], name: "index_key_tests_on_pizza", using: :btree}, output + end end def test_schema_dump_includes_decimal_options |