Skip to content

Commit 4aee42b

Browse files
The down method is hidden by default when creating actions
1 parent 80c8f6d commit 4aee42b

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ The new action will be placed in your `database/actions` directory. Each action
7979
> At the first start, you need to create a table by running the `migrate:actions:install` command.
8080
>
8181
> If you execute `migrate:actions` with the first command, the `migrate:actions:install` command will be called automatically.
82+
>
83+
> 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.
8284
8385
#### Automatically Generate A File Name
8486

resources/stubs/action-anonymous.stub

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,4 @@ return new class extends Actionable {
1212
{
1313
//
1414
}
15-
16-
/**
17-
* Reverse the actions.
18-
*
19-
* @return void
20-
*/
21-
public function down(): void
22-
{
23-
//
24-
}
2515
};

resources/stubs/action-named.stub

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,4 @@ class DummyClass extends Actionable
1313
{
1414
//
1515
}
16-
17-
/**
18-
* Reverse the actions.
19-
*
20-
* @return void
21-
*/
22-
public function down(): void
23-
{
24-
//
25-
}
2616
}

0 commit comments

Comments
 (0)