Method: ActiveRecord::Migration::Compatibility::V6_0#add_reference
- Defined in:
- activerecord/lib/active_record/migration/compatibility.rb
#add_reference(table_name, ref_name, **options) ⇒ Object Also known as: add_belongs_to
248 249 250 251 252 253 254 255 |
# File 'activerecord/lib/active_record/migration/compatibility.rb', line 248 def add_reference(table_name, ref_name, **) if connection.adapter_name == "SQLite" [:type] = :integer end [:_uses_legacy_reference_index_name] = true super end |