Remove deprecated #load_schema_for

This commit is contained in:
Rafael Mendonça França 2016-12-29 16:05:43 -05:00
parent e7381d289e
commit 419e06b56c
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
2 changed files with 4 additions and 8 deletions

@ -1,3 +1,7 @@
* Remove deprecated `#load_schema_for`.
*Rafael Mendonça França*
* Remove deprecated conditions parameter from `#destroy_all` and `#delete_all`.
*Rafael Mendonça França*

@ -241,14 +241,6 @@ def load_schema(configuration, format = ActiveRecord::Base.schema_format, file =
ActiveRecord::InternalMetadata[:environment] = ActiveRecord::Migrator.current_environment
end
def load_schema_for(*args)
ActiveSupport::Deprecation.warn(<<-MSG.squish)
This method was renamed to `#load_schema` and will be removed in the future.
Use `#load_schema` instead.
MSG
load_schema(*args)
end
def schema_file(format = ActiveRecord::Base.schema_format)
case format
when :ruby