demarches-normaliennes/db/migrate/20210422101149_add_expert_id_to_commentaires.rb
2021-04-22 15:10:47 +01:00

5 lines
162 B
Ruby

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