<commit_before><?php

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

class AddActionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('actions', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 255)->index()->comment('The action name of the post.');
            $table->unsignedInteger('campaign_id')->index()->comment('The campaign id the post is associated to.');
            $table->foreign('campaign_id')->references('id')->on('campaigns')->index()->comment('The campaign id the post is associated to.');
            $table->string('post_type', 255)->index()->comment('The type of post the post is (e.g. photo, text, voter-reg, etc).');
            $table->boolean('reportback')->comment('Whether or not the post should count as a reportback.');
            $table->boolean('civic_action')->comment('Whether or not the post should count as a civic action.');
            $table->boolean('scholarship_entry')->comment('Whether or not the post should count as a scholarship entry.');
            $table->boolean('active')->comment('Whether or not the action is active.');
            $table->string('noun', 255)->nullable()->comment('The noun of the post (e.g. jeans).');
            $table->string('verb', 255)->nullable()->comment('The verb of of the post (e.g. donated).');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()<commit_msg>adds timestamps and softdeletes to the actions table<commit_after><?php

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

class AddActionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('actions', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 255)->index()->comment('The action name of the post.');
            $table->unsignedInteger('campaign_id')->index()->comment('The campaign id the post is associated to.');
            $table->foreign('campaign_id')->references('id')->on('campaigns')->index()->comment('The campaign id the post is associated to.');
            $table->string('post_type', 255)->index()->comment('The type of post the post is (e.g. photo, text, voter-reg, etc).');
            $table->boolean('reportback')->comment('Whether or not the post should count as a reportback.');
            $table->boolean('civic_action')->comment('Whether or not the post should count as a civic action.');
            $table->boolean('scholarship_entry')->comment('Whether or not the post should count as a scholarship entry.');
            $table->boolean('active')->comment('Whether or not the action is active.');
            $table->string('noun', 255)->nullable()->comment('The noun of the post (e.g. jeans).');
            $table->string('verb', 255)->nullable()->comment('The verb of of the post (e.g. donated).');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
{'fraction_non_alphanumeric': 0.16294117647058823, 'fraction_numerical': 0.007058823529411765, 'mean_word_length': 2.9363425925925926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6813955', 'n_tokens_mistral': 931, 'n_tokens_neox': 910, 'n_words': 256}