demarches-normaliennes/db/migrate/20210422101149_add_expert_id_to_commentaires.rb

6 lines
162 B
Ruby
Raw Normal View History

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