demarches-normaliennes/db/migrate/20230929091948_add_ancestry_to_groupe_gestionnaires.rb
2024-08-22 09:26:48 +02:00

10 lines
325 B
Ruby

# frozen_string_literal: true
class AddAncestryToGroupeGestionnaires < ActiveRecord::Migration[7.0]
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