demarches-normaliennes/db/migrate/20230929091948_add_ancestry_to_groupe_gestionnaires.rb

9 lines
294 B
Ruby
Raw Normal View History

2023-10-01 12:52:05 +02:00
class AddAncestryToGroupeGestionnaires < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
add_column :groupe_gestionnaires, :ancestry, :string, collation: 'C', null: false, default: '/'
add_index :groupe_gestionnaires, :ancestry, algorithm: :concurrently
end
end