Skip to content

Commit b52a308

Browse files
committed
Add alias rake task for db:* defined by actual schema
1 parent 9f2d073 commit b52a308

File tree

2 files changed

+189
-170
lines changed

2 files changed

+189
-170
lines changed

lib/tasks/actual_db_schema.rake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# frozen_string_literal: true
22

33
namespace :actual_db_schema do # rubocop:disable Metrics/BlockLength
4+
desc "Rollback migrations that were run inside not a merged branch."
5+
task rollback_branches: "db:rollback_branches"
6+
7+
namespace :rollback_branches do
8+
desc "Manually rollback phantom migrations one by one"
9+
task manual: "db:rollback_branches:manual"
10+
end
11+
12+
desc "List all phantom migrations - non-relevant migrations that were run inside not a merged branch."
13+
task phantom_migrations: "db:phantom_migrations"
14+
415
desc "Install ActualDbSchema initializer and post-checkout git hook."
516
task :install do
617
extend ActualDbSchema::OutputFormatter

0 commit comments

Comments
 (0)