Skip to content

Not creating revisions table on Laravel 5.5 #11

@jayzyaj

Description

@jayzyaj

I followed the instructions as said in the documentation I have a revisionable in my config. But when I try to migrate it. It does not create a revisions table.

Here is some samle code.

use JohannesSchobel\Revisionable\Traits\Revisionable;

class AnalysisRequest extends Model
{
    use SoftDeletes;
    use Revisionable;
    
        public $table = 'analysis_requests';
        
        protected $revisionable = [
            'sample_description',
            'special_instruction',
            'rushable',
            'status'
        ];

        protected $revisionLimitCleanup = true; // only works with revisionLimit
        protected $revisionLimit = 50;  // keep 50 instead of 20 revisions of this model
    
        protected $dates = ['deleted_at', 'date_analyzed'];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions