Skip to content

Commit

Permalink
chore: convert to anonymous class migration (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvroroy authored May 3, 2023
1 parent 2897d2b commit 1e83906
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCustomersTable extends Migration
return new class extends Migration
{
public function up(): void
{
Expand All @@ -19,4 +19,4 @@ public function up(): void
$table->index(['billable_id', 'billable_type']);
});
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSubscriptionsTable extends Migration
return new class extends Migration
{
public function up(): void
{
Expand All @@ -29,4 +29,4 @@ public function up(): void
$table->index(['billable_id', 'billable_type']);
});
}
}
};

0 comments on commit 1e83906

Please sign in to comment.