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

7 lines
193 B
Ruby

# frozen_string_literal: true
class AddExpertIdToCommentaires < ActiveRecord::Migration[6.1]
def change
add_belongs_to :commentaires, :expert, type: :bigint, foreign_key: true
end
end