<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMetasTable extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('metas', function(Blueprint $table)
        {
            $table->increments('id');
            $table->unsignedInteger('metable_id')->nullable();
            $table->string('metable_type')->nullable();
            $table->string('identifier')->nullable()->index();
            $table->boolean('default')->default(false);
            $table->unsignedInteger('groupable_id')->nullable();
            $table->string('groupable_type')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('metas');
    }

}

<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMetasTable extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('metas', function(Blueprint $table)
        {
            $table->increments('id');
            $table->unsignedInteger('metable_id')->nullable();
            $table->string('metable_type')->nullable();
            $table->string('identifier')->nullable()->index();
            $table->boolean('default')->default(false);
            $table->unsignedInteger('variant_id')->nullable();
            $table->string('variant_type')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('metas');
    }

}

Add variant columns to the metas table
Add variant columns to the metas table
