Cleaned out most of the "reminders" code.

This commit is contained in:
Sander Dorigo
2014-10-12 09:45:57 +02:00
parent 7c97c558ab
commit 65a2e07d24
6 changed files with 8 additions and 89 deletions

View File

@@ -28,25 +28,11 @@ class CreateRemindersTable extends Migration
$table->increments('id');
$table->timestamps();
$table->string('class', 40);
$table->integer('piggybank_id')->unsigned()->nullable();
$table->integer('recurring_transaction_id')->unsigned()->nullable();
$table->integer('user_id')->unsigned();
$table->date('startdate');
$table->date('enddate')->nullable();
$table->boolean('active');
// connect reminders to piggy banks.
$table->foreign('piggybank_id')
->references('id')->on('piggybanks')
->onDelete('set null');
// connect reminders to recurring transactions.
$table->foreign('recurring_transaction_id')
->references('id')->on('recurring_transactions')
->onDelete('set null');
// connect reminders to users
$table->foreign('user_id')
->references('id')->on('users')