diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-05 07:16:08 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-05 07:16:08 +0900 |
commit | 7f0567b43b73b1bd1a16bfac9cd32fcbf1321b51 (patch) | |
tree | 294f8ae04fe61c55315077faf6f4febf7f54e150 /activerecord/test | |
parent | 66076f381aad7383568bf28ae1279b0bc570319c (diff) | |
download | rails-7f0567b43b73b1bd1a16bfac9cd32fcbf1321b51.tar.gz rails-7f0567b43b73b1bd1a16bfac9cd32fcbf1321b51.tar.bz2 rails-7f0567b43b73b1bd1a16bfac9cd32fcbf1321b51.zip |
Fix that `change_column` lose a comment
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/comment_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/comment_test.rb b/activerecord/test/cases/comment_test.rb index 262ad319be..a625299e8d 100644 --- a/activerecord/test/cases/comment_test.rb +++ b/activerecord/test/cases/comment_test.rb @@ -2,7 +2,6 @@ require "cases/helper" require "support/schema_dumping_helper" if ActiveRecord::Base.connection.supports_comments? - class CommentTest < ActiveRecord::TestCase include SchemaDumpingHelper @@ -102,6 +101,7 @@ if ActiveRecord::Base.connection.supports_comments? # Do all the stuff from other tests @connection.add_column :commenteds, :rating, :integer, comment: "I am running out of imagination" @connection.change_column :commenteds, :content, :string, comment: "Whoa, content describes itself!" + @connection.change_column :commenteds, :content, :string @connection.change_column :commenteds, :obvious, :string, comment: nil @connection.add_index :commenteds, :obvious, name: "idx_obvious", comment: "We need to see obvious comments" @@ -135,5 +135,4 @@ if ActiveRecord::Base.connection.supports_comments? assert_no_match %r[t\.string\s+"absent_comment", comment:\n], output end end - end |