Built a routine that will allow you to completely delete an account.

This commit is contained in:
James Cole
2015-04-22 07:54:56 +02:00
parent 0d3213a379
commit fe714e9989
6 changed files with 121 additions and 1 deletions

View File

@@ -41,6 +41,9 @@ class CreateAccountMetaTable extends Migration
$table->unique(['account_id', 'name']);
// link to account!
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');
}
);