Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #883 from skorpa/fix-documentation
Fix - removeColumn in change() instead of up()
  • Loading branch information
rquadling committed Jun 29, 2016
2 parents 35c4fdc + 089515b commit 0b87181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/migrations.rst
Expand Up @@ -897,13 +897,13 @@ To drop a column, use the ``removeColumn()`` method.
class MyNewMigration extends AbstractMigration
{
/**
* Change Method.
* Migrate up.
*/
public function change()
public function up()
{
$table = $this->table('users');
$table->removeColumn('short_name')
->update();
->save();
}
}
Expand Down

0 comments on commit 0b87181

Please sign in to comment.