Class: ActiveRecord::Migration::Compatibility::V6_1
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
|
Classes:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
self,
V7_0,
V7_0::LegacyIndexName,
V7_1,
V7_2,
V8_0,
V8_0::RemoveForeignKeyColumnMatch,
V8_1,
::ActiveRecord::Migration::Current,
Migration
|
|
| Inherits: |
ActiveRecord::Migration::Compatibility::V7_0
|
| Defined in: | activerecord/lib/active_record/migration/compatibility.rb |
Instance Method Summary
- #add_column(table_name, column_name, type, **options)
- #change_column(table_name, column_name, type, **options)
- #compatible_table_definition(t) private
V7_0 - Inherited
V7_0::LegacyIndexName - Included
V8_0 - Inherited
V8_0::RemoveForeignKeyColumnMatch - Included
::ActiveRecord::Migration::Current - Inherited
Instance Method Details
#add_column(table_name, column_name, type, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 204
def add_column(table_name, column_name, type, **) if type == :datetime [:precision] ||= nil end type = PostgreSQLCompat.(type, connection) super end
#change_column(table_name, column_name, type, **options)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 213
def change_column(table_name, column_name, type, **) if type == :datetime [:precision] ||= nil end type = PostgreSQLCompat.(type, connection) super end
#compatible_table_definition(t) (private)
[ GitHub ]# File 'activerecord/lib/active_record/migration/compatibility.rb', line 244
def compatible_table_definition(t) t.singleton_class.prepend(TableDefinition) super end