diff --git a/app/Models/Capacidad.php b/app/Models/Capacidad.php index f495253..43eb662 100644 --- a/app/Models/Capacidad.php +++ b/app/Models/Capacidad.php @@ -5,6 +5,7 @@ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; + class Capacidad extends Model { use HasFactory; diff --git a/database/factories/CapacidadFactory.php b/database/factories/CapacidadFactory.php index 89e59f8..42a3a1e 100644 --- a/database/factories/CapacidadFactory.php +++ b/database/factories/CapacidadFactory.php @@ -17,7 +17,7 @@ class CapacidadFactory extends Factory public function definition(): array { return [ - + // ]; } diff --git a/database/migrations/2025_03_13_050724_add_tipo_combustible_to_tipos_veiculos_table.php b/database/migrations/2025_03_13_050724_add_tipo_combustible_to_tipos_veiculos_table.php deleted file mode 100644 index 07722dc..0000000 --- a/database/migrations/2025_03_13_050724_add_tipo_combustible_to_tipos_veiculos_table.php +++ /dev/null @@ -1,28 +0,0 @@ -string('tipo_combustible')->after('nombre')->nullable(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::table('tipos_veiculos', function (Blueprint $table) { - $table->dropColumn('tipo_combustible'); - }); - } -}; diff --git a/database/migrations/2025_03_13_133629_create_capacidads_table.php b/database/migrations/2025_03_13_133629_create_capacidads_table.php index 87eb55b..59d6557 100644 --- a/database/migrations/2025_03_13_133629_create_capacidads_table.php +++ b/database/migrations/2025_03_13_133629_create_capacidads_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('capacidades', function (Blueprint $table) { $table->id(); - $table->integer('capacidad')->unique(); + $table->integer('capacidad'); $table->timestamps(); }); }