Skip to content

The down method is hidden by default when creating actions #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ The new action will be placed in your `database/actions` directory. Each action
> At the first start, you need to create a table by running the `migrate:actions:install` command.
>
> If you execute `migrate:actions` with the first command, the `migrate:actions:install` command will be called automatically.
>
> Starting from version 2.9 the `down` method will not be shown by default when creating actions files. If you need this method, just override it in the class.

#### Automatically Generate A File Name

Expand Down
10 changes: 0 additions & 10 deletions resources/stubs/action-anonymous.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,4 @@ return new class extends Actionable {
{
//
}

/**
* Reverse the actions.
*
* @return void
*/
public function down(): void
{
//
}
};
10 changes: 0 additions & 10 deletions resources/stubs/action-named.stub
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,4 @@ class DummyClass extends Actionable
{
//
}

/**
* Reverse the actions.
*
* @return void
*/
public function down(): void
{
//
}
}
10 changes: 0 additions & 10 deletions tests/fixtures/app/anonymous/stubs/make_example.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,4 @@ return new class extends Actionable {
{
//
}

/**
* Reverse the actions.
*
* @return void
*/
public function down(): void
{
//
}
};
10 changes: 0 additions & 10 deletions tests/fixtures/app/named/stubs/make_example.stub
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,4 @@ class MakeExample extends Actionable
{
//
}

/**
* Reverse the actions.
*
* @return void
*/
public function down(): void
{
//
}
}