Skip to content

Commit

Permalink
Rename initial migration for files table
Browse files Browse the repository at this point in the history
  • Loading branch information
roboc committed Jul 27, 2017
1 parent ab804f1 commit 673837e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CreateArboryFilesTable extends Migration
*/
public function up()
{
Schema::create( 'arbory_files', function ( Blueprint $table )
Schema::create( 'files', function ( Blueprint $table )
{
$table->uuid( 'id' );
$table->string( 'owner_id' );
Expand All @@ -32,6 +32,6 @@ public function up()
*/
public function down()
{
Schema::drop( 'arbory_files' );
Schema::drop( 'files' );
}
}
2 changes: 2 additions & 0 deletions src/Files/ArboryFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class ArboryFile extends Model
{
use UuidModelTrait;

protected $table = 'files';

/**
* @var array
*/
Expand Down

0 comments on commit 673837e

Please sign in to comment.