File tree Expand file tree Collapse file tree 3 files changed +8
-14
lines changed
lib/active_record/connection_adapters Expand file tree Collapse file tree 3 files changed +8
-14
lines changed Original file line number Diff line number Diff line change
1
+ * Remove deprecated ` ActiveRecord::ConnectionAdapters::SchemaCache.load_from ` .
2
+
3
+ * Rafael Mendonça França*
4
+
1
5
* Remove deprecated ` #all_foreign_keys_valid? ` from database adapters.
2
6
3
7
* Rafael Mendonça França*
Original file line number Diff line number Diff line change @@ -225,18 +225,6 @@ def dump_to(filename)
225
225
226
226
# = Active Record Connection Adapters Schema Cache
227
227
class SchemaCache
228
- class << self
229
- def new ( connection )
230
- BoundSchemaReflection . new ( SchemaReflection . new ( nil ) , connection . pool )
231
- end
232
- deprecate new : "use ActiveRecord::ConnectionAdapters::SchemaReflection instead" , deprecator : ActiveRecord . deprecator
233
-
234
- def load_from ( filename ) # :nodoc:
235
- BoundSchemaReflection . new ( SchemaReflection . new ( filename ) , nil )
236
- end
237
- deprecate load_from : "use ActiveRecord::ConnectionAdapters::SchemaReflection instead" , deprecator : ActiveRecord . deprecator
238
- end
239
-
240
228
def self . _load_from ( filename ) # :nodoc:
241
229
return unless File . file? ( filename )
242
230
@@ -264,7 +252,7 @@ def self.read(filename, &block)
264
252
end
265
253
private_class_method :read
266
254
267
- def initialize
255
+ def initialize # :nodoc:
268
256
@columns = { }
269
257
@columns_hash = { }
270
258
@primary_keys = { }
@@ -290,7 +278,7 @@ def encode_with(coder) # :nodoc:
290
278
coder [ "version" ] = @version
291
279
end
292
280
293
- def init_with ( coder )
281
+ def init_with ( coder ) # :nodoc:
294
282
@columns = coder [ "columns" ]
295
283
@columns_hash = coder [ "columns_hash" ]
296
284
@primary_keys = coder [ "primary_keys" ]
Original file line number Diff line number Diff line change @@ -144,6 +144,8 @@ Please refer to the [Changelog][active-record] for detailed changes.
144
144
145
145
* Remove deprecated ` #all_foreign_keys_valid? ` from database adapters.
146
146
147
+ * Remove deprecated ` ActiveRecord::ConnectionAdapters::SchemaCache.load_from ` .
148
+
147
149
### Deprecations
148
150
149
151
* Deprecate ` Rails.application.config.active_record.allow_deprecated_singular_associations_name `
You can’t perform that action at this time.
0 commit comments