<?php

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

class CreateRatesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('rates', function (Blueprint $table) {
            $table->id();
            $table->string('date');
            $table->string('name');
            $table->string('rate');
        });
    }

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

{'avg_line_length': 19.058823529411764, 'max_line_length': 61, 'alphanum_fraction': 0.5447530864197531, 'licenses': ['MIT'], 'repository_name': 'chistowick/pumpkin', 'path': 'database/migrations/2020_10_25_145453_create_rates_table.php', 'size': 648, 'lang': 'PHP'}