Revert "Docu on how to ensure foreign() works"

This reverts commit b92f5bc854.
This commit is contained in:
Tobsn 2012-08-21 00:10:03 +02:00
parent b92f5bc854
commit 546c962612
1 changed files with 1 additions and 7 deletions

View File

@ -144,10 +144,4 @@ ## Foreign Keys
You may also easily drop a foreign key constraint. The default foreign key names follow the [same convention](#dropping-indexes) as the other indexes created by the Schema builder. Here's an example:
$table->drop_foreign('posts_user_id_foreign');
> **Note:** The field referenced in the foreign key is very likely an auto increment and therefore automatically an unsigned integer. Please make sure to create the foreign key field with **unsigned()** as both fields have to be the exact same type, the engine on both tables has to be set to **InnoDB**, and the referenced table must be created **before** the table with the foreign key.
$table->engine = 'InnoDB';
$table->integer('user_id')->unsigned();
$table->drop_foreign('posts_user_id_foreign');