Skip to content

Instantly share code, notes, and snippets.

@evercode1
Created November 16, 2015 03:11
Show Gist options
  • Save evercode1/5838c6da66b91a3a56d0 to your computer and use it in GitHub Desktop.
Save evercode1/5838c6da66b91a3a56d0 to your computer and use it in GitHub Desktop.
chapter 10 up method
public function up()
{
Schema::create('marketing_images', function(Blueprint $table)
{
$table->increments('id');
$table->boolean('is_active')->default(false);
$table->boolean('is_featured')->default(false);
$table->string('image_name')->unique();
$table->string('image_extension', 10);
$table->timestamps();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment