diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-27 22:16:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 22:16:05 +0900 |
commit | 376e19c93e8bd03a19005ab04f5a8832182058e0 (patch) | |
tree | 36aadd3db67f71f48e28eda39d2c41e2c6c32ea6 /activerecord/test/cases/comment_test.rb | |
parent | 6f1c18308ebffc97d51440cdeed7be71de58f26a (diff) | |
download | rails-376e19c93e8bd03a19005ab04f5a8832182058e0.tar.gz rails-376e19c93e8bd03a19005ab04f5a8832182058e0.tar.bz2 rails-376e19c93e8bd03a19005ab04f5a8832182058e0.zip |
Prefer to place a table options before `force: :cascade` (#28005)
I was added a table options after `force: :cascade` in #17569 for not
touching existing tests (reducing diff). But `force: :cascade` is not an
important information. So I prefer to place a table options before
`force: :cascade`.
Diffstat (limited to 'activerecord/test/cases/comment_test.rb')
-rw-r--r-- | activerecord/test/cases/comment_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/comment_test.rb b/activerecord/test/cases/comment_test.rb index f2ec5d6518..1bcafd4b55 100644 --- a/activerecord/test/cases/comment_test.rb +++ b/activerecord/test/cases/comment_test.rb @@ -111,7 +111,7 @@ if ActiveRecord::Base.connection.supports_comments? # And check that these changes are reflected in dump output = dump_table_schema "commenteds" - assert_match %r[create_table "commenteds",.+\s+comment: "A table with comment"], output + assert_match %r[create_table "commenteds",.*\s+comment: "A table with comment"], output assert_match %r[t\.string\s+"name",\s+comment: "Comment should help clarify the column purpose"], output assert_match %r[t\.string\s+"obvious"\n], output assert_match %r[t\.string\s+"content",\s+comment: "Whoa, content describes itself!"], output |