Skip to content

Instantly share code, notes, and snippets.

@mateusgf
Created July 19, 2013 13:43
Show Gist options
  • Save mateusgf/6039189 to your computer and use it in GitHub Desktop.
Save mateusgf/6039189 to your computer and use it in GitHub Desktop.
<?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