Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 387 Bytes

AddTimestampsMigration.md

File metadata and controls

17 lines (11 loc) · 387 Bytes

How to add timestamps with Laravel Migration Shortcut

Use this shortcut to add timestamps:

use Abagayev\Laravel\MigrationShortcuts\Migrations\AddTimestampsMigration;

class AddTimestampsToTableMigration extends AddTimestampsMigration
{
    protected $table = 'table_name';
}

Rollback strategy

Timestamp column is going to be dropped on the migration rollback.