aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2013-06-02 08:44:31 +0900
committerkennyj <kennyj@gmail.com>2013-06-02 08:44:31 +0900
commite185ba24c83bc87fec3de808311c68b15a6ff16d (patch)
tree383aa69098709b0a291485c4ad2fc4936a73bd73 /activerecord/test/cases/migration
parentbc5314a10231983c46ab81488935b259cdf36a04 (diff)
downloadrails-e185ba24c83bc87fec3de808311c68b15a6ff16d.tar.gz
rails-e185ba24c83bc87fec3de808311c68b15a6ff16d.tar.bz2
rails-e185ba24c83bc87fec3de808311c68b15a6ff16d.zip
Remove behavior that deals with a string as third argument of `add_index`, because this was deprecated.
Some testcases is failed, so I replaced nil to empty hash in add_reference.
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r--activerecord/test/cases/migration/index_test.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/migration/index_test.rb b/activerecord/test/cases/migration/index_test.rb
index 0e375af6e8..04521a5f5a 100644
--- a/activerecord/test/cases/migration/index_test.rb
+++ b/activerecord/test/cases/migration/index_test.rb
@@ -109,16 +109,6 @@ module ActiveRecord
end
end
- def test_deprecated_type_argument
- message = "Passing a string as third argument of `add_index` is deprecated and will" +
- " be removed in Rails 4.1." +
- " Use add_index(:testings, [:foo, :bar], unique: true) instead"
-
- assert_deprecated message do
- connection.add_index :testings, [:foo, :bar], "UNIQUE"
- end
- end
-
def test_unique_index_exists
connection.add_index :testings, :foo, :unique => true