<?php

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

class CreateVotersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('voters', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();
			$table->string('email')->nullable()->default(null);
			$table->string('facebook_id')->nullable()->default(null);
			$table->string('twitter_id')->nullable()->default(null);
			$table->string('name')->nullable()->default(null);
			$table->string('password')->nullable()->default(null);
			$table->string('token')->nullable()->default(null);
			$table->string('remember_token', 100)->nullable();
		});
	}

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