aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/mysql2/connection_test.rb
diff options
context:
space:
mode:
authorDinah Shi <dinahshi28@gmail.com>2017-12-02 14:30:10 +0800
committerDinah Shi <dinahshi28@gmail.com>2017-12-02 14:30:10 +0800
commitdd6338a0699f2301d4b2fc8653688b4c4183cee5 (patch)
tree18d2dfa8292fd57367ce0360407c9883ad787dfa /activerecord/test/cases/adapters/mysql2/connection_test.rb
parent11720c23476a49c6c75239182f096847172b1683 (diff)
downloadrails-dd6338a0699f2301d4b2fc8653688b4c4183cee5.tar.gz
rails-dd6338a0699f2301d4b2fc8653688b4c4183cee5.tar.bz2
rails-dd6338a0699f2301d4b2fc8653688b4c4183cee5.zip
Extract sql fragment generators for alter table from PostgreSQL adapter
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2/connection_test.rb')
-rw-r--r--activerecord/test/cases/adapters/mysql2/connection_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/connection_test.rb b/activerecord/test/cases/adapters/mysql2/connection_test.rb
index e61c70848a..13b4096671 100644
--- a/activerecord/test/cases/adapters/mysql2/connection_test.rb
+++ b/activerecord/test/cases/adapters/mysql2/connection_test.rb
@@ -174,10 +174,10 @@ class Mysql2ConnectionTest < ActiveRecord::Mysql2TestCase
assert_equal "SCHEMA", @subscriber.logged[0][1]
end
- def test_logs_name_rename_column_sql
+ def test_logs_name_rename_column_for_alter
@connection.execute "CREATE TABLE `bar_baz` (`foo` varchar(255))"
@subscriber.logged.clear
- @connection.send(:rename_column_sql, "bar_baz", "foo", "foo2")
+ @connection.send(:rename_column_for_alter, "bar_baz", "foo", "foo2")
assert_equal "SCHEMA", @subscriber.logged[0][1]
ensure
@connection.execute "DROP TABLE `bar_baz`"