Created
July 19, 2013 13:43
-
-
Save mateusgf/6039189 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Create_Users_Table { | |
/** | |
* Make changes to the database. | |
* | |
* @return void | |
*/ | |
public function up() | |
{ | |
Schema::create('users', function($table){ | |
$table->increments('id'); | |
$table->string('username'); | |
$table->string('password'); | |
$table->timestamps(); | |
}); | |
} | |
/** | |
* Revert the changes to the database. | |
* | |
* @return void | |
*/ | |
public function down() | |
{ | |
Schema::drop('users'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment