-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π οΈ Neighborhood
: Install strong_migrations
to catch risky operations
#1177
Comments
β for this because I hit a bad error when setting up my environment. There are two migrations that reference a
Although, after downgrading from Postgres 14 to Postgres 12 I could somehow run It sounds like this gem would prevent this problem. Relatedly, what's the best way to get rid of bad/defunct migrations? |
Maybe https://guides.rubyonrails.org/active_record_migrations.html#schema-dumping-and-you can help. |
@rosschapman if you feel moved to tackle this, go for it! πͺπΌ Generally speaking, no need to ask for permission, you can just leave a note here saying that you plan to work on it, to avoid effort duplication, and take it on. |
Neighborhood
: Install strong_migrations
to catch risky operationsNeighborhood
: Install strong_migrations
to catch risky operations
- #1177 This change is part of an effort to add guard rails for devs writing migrations and catch *unsafe* and *illegal* operations on the database. NOTE: There are other types of "bad" migrations that will not be caught by this gem. For example, referencing an Active Record model to execute DML. For those cases we should consider other static analysis methods like rubocop.
π Neighborhood: Adds strong_migrations gem - #1177 This change is part of an effort to add guard rails for devs writing migrations and catch *unsafe* and *illegal* operations on the database. NOTE: There are other types of "bad" migrations that will not be caught by this gem. For example, referencing an Active Record model to execute DML. For those cases we should consider other static analysis methods like rubocop.
Wooo !! THank you @rosschapman !!! |
installing strong_migrations were mentioned in #1169 (comment)
strong_migrations will help us catch risky operations and safely ignore and drop deprecated database columns
The text was updated successfully, but these errors were encountered: