Advertisement
xkeshav

2014_10_02_114459_create_users.php

Oct 2nd, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2. //php artisan migrate:make create_users --create=users
  3.  
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Database\Migrations\Migration;
  6.  
  7. class CreateUsers extends Migration {
  8.  
  9.     /**
  10.      * Run the migrations.
  11.      *
  12.      * @return void
  13.      */
  14.     public function up()
  15.     {
  16.         Schema::create('users', function(Blueprint $table)
  17.         {
  18.             $table->increments('id');
  19.             $table->timestamps();
  20.         });
  21.     }
  22.  
  23.     /**
  24.      * Reverse the migrations.
  25.      *
  26.      * @return void
  27.      */
  28.     public function down()
  29.     {
  30.         Schema::drop('users');
  31.     }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement