Skip to content

Commit

Permalink
Add post-install instructions for git hook setup (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-darbinyan authored Dec 24, 2024
1 parent a8b4d93 commit 7324f26
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions actual_db_schema.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rails"
spec.add_development_dependency "sqlite3"

spec.post_install_message = <<~MSG
Thank you for installing ActualDbSchema!
To enable automatic rollback of phantom migrations when switching branches, follow these steps:
1. Set `export ACTUAL_DB_SCHEMA_GIT_HOOKS_ENABLED=true` in your environment, OR
add `ActualDbSchema.config[:git_hooks_enabled] = true` to your initializer.
2. Run `rake actual_db_schema:install_git_hooks` to install the post-checkout Git hook.
For more information, see the README.
MSG

# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
end

0 comments on commit 7324f26

Please sign in to comment.