diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-02-13 01:35:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 01:35:20 -0300 |
commit | e0d0dc6ec1ea9f690f2f354381c0ddf1c3c2ab0b (patch) | |
tree | 93e036d4454a9f8b96a73560250ac8bec57cff14 /activerecord/test/cases/adapters/postgresql/schema_test.rb | |
parent | 2f60a7525e8727f6c6d111637221b22898179fc5 (diff) | |
parent | 28dc6d76ab302340e98fad7f8718c440e5b1e2d8 (diff) | |
download | rails-e0d0dc6ec1ea9f690f2f354381c0ddf1c3c2ab0b.tar.gz rails-e0d0dc6ec1ea9f690f2f354381c0ddf1c3c2ab0b.tar.bz2 rails-e0d0dc6ec1ea9f690f2f354381c0ddf1c3c2ab0b.zip |
Merge pull request #26930 from kamipo/index_name_exists_default
The `default` arg of `index_name_exists?` makes to optional
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/schema_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/schema_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/schema_test.rb b/activerecord/test/cases/adapters/postgresql/schema_test.rb index 237e9ff6a5..8756507531 100644 --- a/activerecord/test/cases/adapters/postgresql/schema_test.rb +++ b/activerecord/test/cases/adapters/postgresql/schema_test.rb @@ -301,13 +301,13 @@ class SchemaTest < ActiveRecord::PostgreSQLTestCase def test_index_name_exists with_schema_search_path(SCHEMA_NAME) do - assert @connection.index_name_exists?(TABLE_NAME, INDEX_A_NAME, true) - assert @connection.index_name_exists?(TABLE_NAME, INDEX_B_NAME, true) - assert @connection.index_name_exists?(TABLE_NAME, INDEX_C_NAME, true) - assert @connection.index_name_exists?(TABLE_NAME, INDEX_D_NAME, true) - assert @connection.index_name_exists?(TABLE_NAME, INDEX_E_NAME, true) - assert @connection.index_name_exists?(TABLE_NAME, INDEX_E_NAME, true) - assert_not @connection.index_name_exists?(TABLE_NAME, "missing_index", true) + assert @connection.index_name_exists?(TABLE_NAME, INDEX_A_NAME) + assert @connection.index_name_exists?(TABLE_NAME, INDEX_B_NAME) + assert @connection.index_name_exists?(TABLE_NAME, INDEX_C_NAME) + assert @connection.index_name_exists?(TABLE_NAME, INDEX_D_NAME) + assert @connection.index_name_exists?(TABLE_NAME, INDEX_E_NAME) + assert @connection.index_name_exists?(TABLE_NAME, INDEX_E_NAME) + assert_not @connection.index_name_exists?(TABLE_NAME, "missing_index") end end |