Class: ActiveRecord::Migration::Compatibility::V5_2
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
self,
V6_0,
V6_1,
V7_0,
V7_0::LegacyIndexName,
V7_1,
V7_2,
V8_0,
V8_0::RemoveForeignKeyColumnMatch,
V8_1,
::ActiveRecord::Migration::Current,
Migration
|
|
| Inherits: |
ActiveRecord::Migration::Compatibility::V6_0
|
| Defined in: | activerecord/lib/active_record/migration/compatibility.rb |
Instance Method Summary
V6_0 - Inherited
| #add_belongs_to | Alias for V6_0#add_reference. |
| #add_reference | |
V6_1 - Inherited
V7_0 - Inherited
| #add_belongs_to | Alias for V7_0#add_reference. |
| #add_column, #add_foreign_key, #add_index, #add_reference, #change_column, #change_column_null, #create_table, #disable_extension, #rename_table | |
V7_0::LegacyIndexName - Included
V8_0::RemoveForeignKeyColumnMatch - Included
::ActiveRecord::Migration::Current - Inherited
| #change_table, | |
| #compatible_table_definition | Ancestors are walked oldest-version-first, so the newest version's module ends up first in method lookup — the same order the per-class overrides produced. |
| #create_join_table, #create_table, #drop_table | |
Instance Method Details
#add_timestamps(table_name, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 295
def (table_name, **) [:precision] ||= nil super end
#command_recorder (private)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 301
def command_recorder recorder = super recorder.singleton_class.prepend(CommandRecorder) recorder end