From 485e7f25f29ca1ca23bb214b802cf68840dabbb6 Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Sun, 17 Apr 2016 13:35:16 -0700 Subject: Database comments: switch to keyword args for new table options * Switch to keyword args where we can without breaking compat. * Use add_table_options! for :options, too. * Some code polish. --- activerecord/test/cases/comment_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/comment_test.rb b/activerecord/test/cases/comment_test.rb index 53a490cf21..cb6f07c925 100644 --- a/activerecord/test/cases/comment_test.rb +++ b/activerecord/test/cases/comment_test.rb @@ -26,8 +26,7 @@ class CommentTest < ActiveRecord::TestCase @connection.drop_table 'commenteds', if_exists: true end - if current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter) - + if ActiveRecord::Base.connection.supports_comments? def test_column_created_in_block Commented.reset_column_information column = Commented.columns_hash['name'] @@ -86,6 +85,5 @@ class CommentTest < ActiveRecord::TestCase 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 end - end end -- cgit v1.2.3