method

add_reference

add_reference(table_name, ref_name, **options)
public

No documentation available.

# File activerecord/lib/active_record/migration/compatibility.rb, line 133
        def add_reference(table_name, ref_name, **options)
          ReferenceDefinition.new(ref_name, **options)
            .add_to(connection.update_table_definition(table_name, self))
        end