Permalink
Browse files

Remove deprecated #load_schema_for

  • Loading branch information...
rafaelfranca committed Dec 29, 2016
1 parent e7381d2 commit 419e06b56c3b0229f0c72d3e4cdf59d34d8e5545
Showing with 4 additions and 8 deletions.
  1. +4 −0 activerecord/CHANGELOG.md
  2. +0 −8 activerecord/lib/active_record/tasks/database_tasks.rb
@@ -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

0 comments on commit 419e06b

Please sign in to comment.