Class: ActiveRecord::Migration::Compatibility::V6_0
- Defined in:
- lib/active_record/migration/compatibility.rb
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
Instance Method Details
#add_reference(table_name, ref_name, **options) ⇒ Object Also known as: add_belongs_to
114 115 116 117 118 119 120 121 |
# File 'lib/active_record/migration/compatibility.rb', line 114 def add_reference(table_name, ref_name, **) if connection.adapter_name == "SQLite" [:type] = :integer end [:_uses_legacy_reference_index_name] = true super end |