| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function up() |
||
| 18 | { |
||
| 19 | Schema::create('currency_history', function (Blueprint $table) { |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->string('code', 3) |
||
| 22 | ->comment('Currency code in ISO 4217 format'); |
||
| 23 | $table->float('rate', 10, 5) |
||
| 24 | ->comment('the exchange rate'); |
||
| 25 | $table->timestamp('imported_at') |
||
| 26 | ->useCurrent() |
||
| 27 | ->comment('Timestamp returned by the API'); |
||
| 28 | $table->timestamps(); |
||
| 29 | $table->softDeletes(); |
||
| 30 | }); |
||
| 41 |