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:
parent
15e623fd3d
commit
b9e7bdc01e
1 changed files with 16 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue