method
add_reference
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::Migration::Compatibility::V6_0
add_reference(table_name, ref_name, **options)public
No documentation available.
# File activerecord/lib/active_record/migration/compatibility.rb, line 248
def add_reference(table_name, ref_name, **options)
if connection.adapter_name == "SQLite"
options[:type] = :integer
end
options[:_uses_legacy_reference_index_name] = true
super
end