method

add_reference

rails latest stable - Class: ActiveRecord::Migration::Compatibility::V5_0
add_reference(table_name, ref_name, **options)
public

No documentation available.

# File activerecord/lib/active_record/migration/compatibility.rb, line 391
        def add_reference(table_name, ref_name, **options)
          super(table_name, ref_name, type: :integer, **options)
        end