RubyGems Navigation menu

rails-rebase-migrations 1.0.1

# Rebase Migrations Rebase Migrations is a library and command line tool to rebase Rails migrations to have the latest timestamp. ## Installation ```console $ bundle add rebase-migrations --group=development,test ``` ## Scenario Two team members, Alice and Bob, are working on the same Rails project and both are adding new database migrations. Alice realizes her migration depends on Bob's, but the migration timestamps are out of order. The `rebase-migration` command line tool can be used to reorder Alice's new migrations to have the latest timestamp in the sequence. ## Usage To rebase all new migrations with respect to the `main` git branch: ```console $ bundle exec rebase-migrations ``` To rebase all new migrations with respect to a different branch: ```console $ bundle exec rebase-migrations my-branch ``` The command has a `--check` argument that is useful for CI. To check that all new migrations are the latest in the sequence: ```console $ bundle exec rebase-migrations --check ``` It will exit with status code 1 if the check fails. The `--check` form also accepts a branch argument. ### Skipping Migrations To skip a specific migration files from the `--check` include `_skip_rebase` in its filename.

Gemfile:
=

インストール:
=

バージョン履歴:

  1. 1.3.0 November 13, 2024 (6KB)
  2. 1.2.0 March 14, 2024 (6KB)
  3. 1.1.0 March 04, 2024 (6KB)
  4. 1.0.1 October 28, 2022 (6KB)
  5. 1.0.0 October 28, 2022 (6KB)

Runtime依存関係 (1):

rails >= 6.1, < 8

所有者:

プッシュ者:

作者:

  • Pioneer Valley Books

SHA 256チェックサム:

=

累計ダウンロード数 32,135

このバージョンのみ 10,677

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 3.0

新しいバージョンはMFAを必要とします: true

MFAで投稿されたバージョン: true

リンク: