You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 fail because of 2 Postgres errors:
Hey @guewen, thanks for taking the time to open this issue.
It's indeed not possible today.
I'd rather give a more explicit name to this method (ex: safe_pg_migrations_disable) like we already do for safe_pg_migrations_verbose.
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 fail because of 2 Postgres errors:ActiveRecord::StatementInvalid: PG::WrongObjectType: ERROR: cannot add NOT VALID foreign key on partitioned table "slots" referencing relation "variations"
: sincevalidate: false
is forcedPG::FeatureNotSupported: ERROR: cannot create index on partitioned table "stock_slots" concurrently
: sincealgorithm: :concurrently
is forcedIs there a way to explicitly disable the safeness in a block? If not, what about a block:
Telling: I know it is not safe, and then it can be caught before deployment to take appropriate measures.
The text was updated successfully, but these errors were encountered: