diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-01-30 17:23:51 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-02-08 18:27:35 +0900 |
commit | 3bd83f016c4193f16613464f48020bdd6def32de (patch) | |
tree | ff6b76f7bd71f4c70de53252356bc8d825cacd63 /activerecord/test | |
parent | 1492e83e49f74b1d874585000bad5368d9f09218 (diff) | |
download | rails-3bd83f016c4193f16613464f48020bdd6def32de.tar.gz rails-3bd83f016c4193f16613464f48020bdd6def32de.tar.bz2 rails-3bd83f016c4193f16613464f48020bdd6def32de.zip |
Add `auto_increment?` instead of `extra == 'auto_increment'`
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/columns_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration/columns_test.rb b/activerecord/test/cases/migration/columns_test.rb index 54d3a729c3..6f65288ac0 100644 --- a/activerecord/test/cases/migration/columns_test.rb +++ b/activerecord/test/cases/migration/columns_test.rb @@ -65,7 +65,7 @@ module ActiveRecord if current_adapter?(:MysqlAdapter, :Mysql2Adapter) def test_mysql_rename_column_preserves_auto_increment rename_column "test_models", "id", "id_test" - assert_equal "auto_increment", connection.columns("test_models").find { |c| c.name == "id_test" }.extra + assert connection.columns("test_models").find { |c| c.name == "id_test" }.auto_increment? TestModel.reset_column_information ensure rename_column "test_models", "id_test", "id" |