Updated API per Silver's requirements

This commit is contained in:
nelsonlaquet 2014-05-28 02:22:34 -05:00
parent 2684107095
commit 56f477f6de
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,15 @@
<?php
use Illuminate\Database\Migrations\Migration;
class UpdateTrackHash extends Migration {
public function up() {
foreach (Track::with('user')->get() as $track) {
$track->updateHash();
$track->save();
}
}
public function down() {
}
}