Class: ActiveRecord::Migration::Compatibility::V6_0
Direct Known Subclasses
Defined Under Namespace
Modules: TableDefinition Classes: ReferenceDefinition
Instance Method Summary collapse
- #add_reference(table_name, ref_name, **options) ⇒ Object (also: #add_belongs_to)
Methods inherited from V6_1
Methods inherited from V7_0
#add_column, #add_foreign_key, #add_index, #change_column, #change_column_null, #create_table, #disable_extension, #rename_table
Methods included from ActiveRecord::Migration::Compatibility::V8_0::RemoveForeignKeyColumnMatch
Instance Method Details
#add_reference(table_name, ref_name, **options) ⇒ Object Also known as: add_belongs_to
271 272 273 274 275 276 277 278 |
# File 'lib/active_record/migration/compatibility.rb', line 271 def add_reference(table_name, ref_name, **) if connection.adapter_name == "SQLite" [:type] = :integer end [:_uses_legacy_reference_index_name] = true super end |