Skip to content

Commit

Permalink
Merge pull request #1 from codeATbusiness/master
Browse files Browse the repository at this point in the history
A simple closing double quotes added
  • Loading branch information
JeffreyWay committed Feb 26, 2015
2 parents 81a26e0 + da250ba commit c7838b8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ class CreateUsersTable extends Migration {
public function up()
{
Schema::create('users', function(Blueprint $table) {
$table->increments('id');
$table->string('username');
$table->string('email')->unique();
$table->timestamps();
});
$table->increments('id');
$table->string('username');
$table->string('email')->unique();
$table->timestamps();
});
}

/**
Expand Down Expand Up @@ -132,8 +132,8 @@ class RemoveUserIdFromPostsTable extends Migration {
public function up()
{
Schema::table('posts', function(Blueprint $table) {
$table->dropColumn('user_id');
});
$table->dropColumn('user_id');
});
}

/**
Expand All @@ -144,8 +144,8 @@ class RemoveUserIdFromPostsTable extends Migration {
public function down()
{
Schema::table('posts', function(Blueprint $table) {
$table->integer('user_id');
});
$table->integer('user_id');
});
}

}
Expand All @@ -154,7 +154,7 @@ class RemoveUserIdFromPostsTable extends Migration {
Here's a few other examples of commands that you might write:

- `php artisan make:migration:schema create_posts_table`
- `php artisan make:migration:schema create_posts_table --schema="title:string, body:text, excerpt:string:nullable`
- `php artisan make:migration:schema create_posts_table --schema="title:string, body:text, excerpt:string:nullable"`
- `php artisan make:migration:schema remove_excerpt_from_posts_table --schema="excerpt:string:nullable"`


Expand Down Expand Up @@ -234,10 +234,10 @@ use Laracasts\TestDummy\Factory as TestDummy;

class PostsTableSeeder extends Seeder {

public function run()
{
public function run()
{
// TestDummy::times(20)->create('App\Post');
}
}

}
```

0 comments on commit c7838b8

Please sign in to comment.