safe-pg-migrations icon indicating copy to clipboard operation
safe-pg-migrations copied to clipboard

Make your PostgreSQL migrations safe

Results 12 safe-pg-migrations issues
Sort by recently updated
recently updated
newest added

That is practically achievable by providing a `SafeMigration` concern that users could include in their migrations. It will: - provide updated helpers - set lock and statement timeouts - disable...

I've posted the description [here](https://github.com/ankane/strong_migrations/issues/160). Is it a flawed idea? Would you be interested in a PR with such helpers?

enhancement

@mochnatiy can you hand over please? :)

I had a migration which was: ``` add_column :video_chats, :source, :string, default: 'patient', null: false ``` And it added the column, added the default but failed when adding the null...

enhancement

Ruby 2.5 and 2.6 as well as ActiveRecord under 5.2 are EOL. Maintaining them complexifies our code

Starting from ActiveRecord 7.1, there's a built-in helper equivalent to what `BatchOver` does, let's use it instead of maintaining our own implementation forever. We need to keep `BatchOver` as long...

~~Fix for #122~~ ~~If you have a nicer solution feel free :)~~ ### Edit Solved by the latest bump. I've just left the test, feel free to close if you...

Steps to reproduce: - Set safe-pg-migrations to 2.2.1+ version - In a migration do a `safety_assured` and within the block call a remove_column with 4 arguments. e.g: ``` safety_assured do...

Hi! Some migrations unfortunately cannot be run safely and are then impossible to run. When using a partitioned table on PostgreSQL, this migration, where `slots` is the partitioned table, will...

Bumps [rdoc](https://github.com/ruby/rdoc) from 6.6.2 to 6.6.3.1. Commits ffbf8ae Bump up 6.6.3.1 e4a0e71 Fix NoMethodError for start_with d98baf4 Bump up 6.6.3 da7a0c7 Filter marshaled objets See full diff in compare view...

dependencies