Skip to content

Commit

Permalink
Remove deprecated #load_schema_for
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Dec 29, 2016
1 parent e7381d2 commit 419e06b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
* Remove deprecated `#load_schema_for`.

*Rafael Mendonça França*

* Remove deprecated conditions parameter from `#destroy_all` and `#delete_all`. * Remove deprecated conditions parameter from `#destroy_all` and `#delete_all`.


*Rafael Mendonça França* *Rafael Mendonça França*
Expand Down
8 changes: 0 additions & 8 deletions activerecord/lib/active_record/tasks/database_tasks.rb
Expand Up @@ -241,14 +241,6 @@ def load_schema(configuration, format = ActiveRecord::Base.schema_format, file =
ActiveRecord::InternalMetadata[:environment] = ActiveRecord::Migrator.current_environment ActiveRecord::InternalMetadata[:environment] = ActiveRecord::Migrator.current_environment
end 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) def schema_file(format = ActiveRecord::Base.schema_format)
case format case format
when :ruby when :ruby
Expand Down

0 comments on commit 419e06b

Please sign in to comment.