Skip to content

Commit 0562ee5

Browse files
Merge pull request #67 from TheDragonCode/2.x
The down method is hidden by default when creating actions
2 parents 46fa9d6 + 4a98ddd commit 0562ee5

File tree

5 files changed

+2
-40
lines changed

5 files changed

+2
-40
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
}

tests/fixtures/app/anonymous/stubs/make_example.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
};

tests/fixtures/app/named/stubs/make_example.stub

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,4 @@ class MakeExample 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)