added require_serial to model factory
This commit is contained in:
@@ -33,6 +33,7 @@ class AssetModelFactory extends Factory
|
||||
'category_id' => Category::factory(),
|
||||
'model_number' => $this->faker->creditCardNumber(),
|
||||
'notes' => 'Created by demo seeder',
|
||||
'require_serial' => 0,
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ return new class extends Migration
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('models', function (Blueprint $table) {
|
||||
$table->boolean( 'require_serial')->after('category_id')->default(0)->nullable();
|
||||
$table->boolean( 'require_serial')->after('category_id')->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user