Skip to content

Commit 753b71e

Browse files
fixup! fix
1 parent 2d80d6d commit 753b71e

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,6 @@ ActualDbSchema.config[:ui_enabled] = true
9191

9292
> With this option, the UI can be disabled for all environments or be enabled in specific ones.
9393
94-
## UI options
95-
96-
By default, the UI is enabled in the development environment. If you prefer to enable the UI for another environment, you can do so in two ways:
97-
98-
### 1. Using Environment Variable
99-
100-
Set the environment variable `ACTUAL_DB_SCHEMA_UI_ENABLED` to `true`:
101-
102-
```sh
103-
export ACTUAL_DB_SCHEMA_UI_ENABLED=true
104-
```
105-
106-
### 2. Using Initializer
107-
Add the following line to your initializer file (`config/initializers/actual_db_schema.rb`):
108-
109-
```ruby
110-
ActualDbSchema.config[:ui_enabled] = true
111-
```
112-
11394
## Disabling Automatic Rollback
11495

11596
By default, the automatic rollback of migrations is enabled. If you prefer to perform manual rollbacks, you can disable the automatic rollback in two ways:

config/routes.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@
1010
resources :phantom_migrations, only: %i[index show] do
1111
member do
1212
post :rollback
13-
post :migrate
14-
end
15-
end
16-
resources :phantom_migrations, only: %i[index show] do
17-
member do
18-
post :rollback
19-
end
20-
collection do
21-
post :rollback_all
2213
end
2314
collection do
2415
post :rollback_all

lib/actual_db_schema/commands/list.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ def branch_for(version)
6565
metadata.fetch(version, {})[:branch] || "unknown"
6666
end
6767

68-
def branch_for(version)
69-
metadata.fetch(version, {})[:branch] || "unknown"
70-
end
71-
7268
def longest_branch_name
7369
@longest_branch_name ||=
7470
metadata.values.map { |v| v[:branch] }.compact.max_by(&:length) || "unknown"

0 commit comments

Comments
 (0)