<?php

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

class AddEnableVotingToSettings extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
  public function up()
  {
    DB::table('settings')->insert([
      'key' => 'enable_voting',
      'type' => 'boolean',
      'description' => 'Enable this setting to allow users to vote. If disabled, vote buttons & forms will be removed.',
      'value' => 'on'
    ]);
  }


  /**
   * Reverse the migrations.
   *
   * @return void
   */
  public function down()
  {
    DB::table('settings')->delete(['key' => 'enable_voting']);
  }

}

Add 'enable voting' setting, defaulted to true.
Add 'enable voting' setting, defaulted to true.
