Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('customer_contacts', function (Blueprint $table) { |
||
17 | $table->increments('cont_id'); |
||
18 | $table->integer('cust_id')->unsigned(); |
||
19 | $table->text('name'); |
||
20 | $table->text('email')->nullable(); |
||
21 | $table->timestamps(); |
||
22 | $table->foreign('cust_id')->references('cust_id')->on('customers')->onUpdate('cascade')->onDelete('cascade'); |
||
23 | }); |
||
36 |