Small fixes and updates. [skip ci]

This commit is contained in:
James Cole
2014-07-23 16:44:20 +02:00
parent 1a9c44f7f9
commit 30553ed7a3
6 changed files with 84 additions and 16 deletions

View File

@@ -22,6 +22,8 @@ class CreateLimitsTable extends Migration {
$table->boolean('repeats');
$table->enum('repeat_freq', ['daily', 'weekly','monthly','quarterly','half-year','yearly']);
$table->unique(['component_id','startdate','repeat_freq']);
// connect component
$table->foreign('component_id')
->references('id')->on('components')