fix(migration): following e764aade13 ; we still need to remove those columns otherwise destroying a procedure fails due to index on types_de_champ.revision_id

This commit is contained in:
Martin 2022-08-22 16:00:56 +02:00
parent 15e623fd3d
commit b9e7bdc01e

View file

@ -0,0 +1,16 @@
namespace :after_party do
desc 'Deployment task: remove_unused_column_on_type_de_champs'
task remove_unused_column_on_type_de_champs: :environment do
puts "Running deploy task 'remove_unused_column_on_type_de_champs'"
StrongMigrations.disable_check :remove_column
ActiveRecord::Migration.remove_column :types_de_champ, :migrated_parent
ActiveRecord::Migration.remove_column :types_de_champ, :revision_id
ActiveRecord::Migration.remove_column :types_de_champ, :parent_id
ActiveRecord::Migration.remove_column :types_de_champ, :order_place
AfterParty::TaskRecord
.create version: AfterParty::TaskRecorder.new(__FILE__).timestamp
end
end