diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-01-19 03:36:09 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-04-20 10:24:18 +0900 |
commit | 74b5112282f0ae796800ed6533e0930681310b10 (patch) | |
tree | 9417e56e79fd687fd45c04ee88700e568bad1f83 /activerecord/test/cases/comment_test.rb | |
parent | e86c5f09c4aaa533bd33c47bfe0bbf9303afeed8 (diff) | |
download | rails-74b5112282f0ae796800ed6533e0930681310b10.tar.gz rails-74b5112282f0ae796800ed6533e0930681310b10.tar.bz2 rails-74b5112282f0ae796800ed6533e0930681310b10.zip |
Dump indexes in `create_table` for generates SQL in one query
If the adapter supports indexes in create table, it generates SQL
in one query.
Diffstat (limited to 'activerecord/test/cases/comment_test.rb')
-rw-r--r-- | activerecord/test/cases/comment_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/comment_test.rb b/activerecord/test/cases/comment_test.rb index 298d171cdf..37d951ad88 100644 --- a/activerecord/test/cases/comment_test.rb +++ b/activerecord/test/cases/comment_test.rb @@ -103,8 +103,8 @@ class CommentTest < ActiveRecord::TestCase assert_match %r[t\.string\s+"obvious"\n], output assert_match %r[t\.string\s+"content",\s+comment: "Whoa, content describes itself!"], output assert_match %r[t\.integer\s+"rating",\s+comment: "I am running out of imagination"], output - assert_match %r[add_index\s+.+\s+comment: "\\\"Very important\\\" index that powers all the performance.\\nAnd it's fun!"], output - assert_match %r[add_index\s+.+\s+name: "idx_obvious",.+\s+comment: "We need to see obvious comments"], output + assert_match %r[t\.index\s+.+\s+comment: "\\\"Very important\\\" index that powers all the performance.\\nAnd it's fun!"], output + assert_match %r[t\.index\s+.+\s+name: "idx_obvious",.+\s+comment: "We need to see obvious comments"], output end def test_schema_dump_omits_blank_comments |