Commit 70d00c60e22bb9d1c295d20eea50d240a8f5b752
1 parent
d931c15f
test
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
console/migrations/m160425_130026_create_feedback.php
@@ -22,6 +22,9 @@ | @@ -22,6 +22,9 @@ | ||
22 | 'answer' => $this->string() | 22 | 'answer' => $this->string() |
23 | ->notNull(), | 23 | ->notNull(), |
24 | 'file' => $this->string(), | 24 | 'file' => $this->string(), |
25 | + 'date_add' => $this->timestamp() | ||
26 | + ->notNull() | ||
27 | + ->defaultExpression('NOW()'), | ||
25 | ]); | 28 | ]); |
26 | } | 29 | } |
27 | 30 |