<?php

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

class CreateDiscussionsKarmaTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('discussions_karma', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('user_id');
			$table->integer('discussion_id');
			$table->enum('type', array('thumbsup', 'banned', 'favorite'));
			$table->string('status');
			$table->timestamps();
			$table->softDeletes();
		});
	}


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

}
