method

foreign_key_in_create

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

foreign_key_in_create(from_table, to_table, options)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb, line 129
          def foreign_key_in_create(from_table, to_table, options)
            prefix = ActiveRecord::Base.table_name_prefix
            suffix = ActiveRecord::Base.table_name_suffix
            to_table = "#{prefix}#{to_table}#{suffix}"
            options = foreign_key_options(from_table, to_table, options)
            accept ForeignKeyDefinition.new(from_table, to_table, options)
          end