diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-03 13:37:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-03 13:37:35 +0900 |
commit | a9cc5e412b17f2b98d39fadd308939aa5f840310 (patch) | |
tree | edf5f30ae7b55213e6e224949a9bb4c9677a183b | |
parent | dfa439eefc7bfaa2f00bc8d2bd712d115dd0ef33 (diff) | |
parent | 2820c90a918b0eb714b90d260bf43eb22ad31ef9 (diff) | |
download | rails-a9cc5e412b17f2b98d39fadd308939aa5f840310.tar.gz rails-a9cc5e412b17f2b98d39fadd308939aa5f840310.tar.bz2 rails-a9cc5e412b17f2b98d39fadd308939aa5f840310.zip |
Merge pull request #35455 from yahonda/revert_9395
Oracle 12.2+ supports 128 byte identifier length
-rw-r--r-- | activerecord/test/cases/migration/columns_test.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/activerecord/test/cases/migration/columns_test.rb b/activerecord/test/cases/migration/columns_test.rb index 1c66c8186f..dbbba9c5fa 100644 --- a/activerecord/test/cases/migration/columns_test.rb +++ b/activerecord/test/cases/migration/columns_test.rb @@ -109,18 +109,10 @@ module ActiveRecord add_index "test_models", ["hat_style", "hat_size"], unique: true rename_column "test_models", "hat_size", "size" - if current_adapter? :OracleAdapter - assert_equal ["i_test_models_hat_style_size"], connection.indexes("test_models").map(&:name) - else - assert_equal ["index_test_models_on_hat_style_and_size"], connection.indexes("test_models").map(&:name) - end + assert_equal ["index_test_models_on_hat_style_and_size"], connection.indexes("test_models").map(&:name) rename_column "test_models", "hat_style", "style" - if current_adapter? :OracleAdapter - assert_equal ["i_test_models_style_size"], connection.indexes("test_models").map(&:name) - else - assert_equal ["index_test_models_on_style_and_size"], connection.indexes("test_models").map(&:name) - end + assert_equal ["index_test_models_on_style_and_size"], connection.indexes("test_models").map(&:name) end def test_rename_column_does_not_rename_custom_named_index |