1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove deprecated String constructor from ActiveRecord::Migrator.

This commit is contained in:
Yves Senn 2013-07-04 09:49:03 +02:00
parent c95911023c
commit 685631285f
3 changed files with 4 additions and 9 deletions

View file

@ -1,3 +1,7 @@
* Remove deprecated String constructor from `ActiveRecord::Migrator`.
*Yves Senn*
* Remove deprecated `scope` use without passing a callable object.
*Arun Agrawal*

View file

@ -869,9 +869,6 @@ module ActiveRecord
if Array(migrations).grep(String).empty?
@migrations = migrations
else
ActiveSupport::Deprecation.warn "instantiate this class with a list of migrations"
@migrations = self.class.migrations(migrations)
end
validate(@migrations)

View file

@ -91,12 +91,6 @@ module ActiveRecord
assert_equal 'AddExpressions', migrations[0].name
end
def test_deprecated_constructor
assert_deprecated do
ActiveRecord::Migrator.new(:up, MIGRATIONS_ROOT + "/valid")
end
end
def test_relative_migrations
list = Dir.chdir(MIGRATIONS_ROOT) do
ActiveRecord::Migrator.migrations("valid/")