Skip to content

Commit 419e06b

Browse files
committed
Remove deprecated #load_schema_for
1 parent e7381d2 commit 419e06b

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎activerecord/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `#load_schema_for`.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated conditions parameter from `#destroy_all` and `#delete_all`.
26

37
*Rafael Mendonça França*

‎activerecord/lib/active_record/tasks/database_tasks.rb‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,6 @@ def load_schema(configuration, format = ActiveRecord::Base.schema_format, file =
241241
ActiveRecord::InternalMetadata[:environment] = ActiveRecord::Migrator.current_environment
242242
end
243243

244-
def load_schema_for(*args)
245-
ActiveSupport::Deprecation.warn(<<-MSG.squish)
246-
This method was renamed to `#load_schema` and will be removed in the future.
247-
Use `#load_schema` instead.
248-
MSG
249-
load_schema(*args)
250-
end
251-
252244
def schema_file(format = ActiveRecord::Base.schema_format)
253245
case format
254246
when :ruby

0 commit comments

Comments
 (0)