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

8 lines
193 B
Ruby
Raw Normal View History

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