Remove the link between commentaire and user

This commit is contained in:
Paul Chavard 2021-04-22 14:44:58 +01:00
parent a640ec1d43
commit c20ad5ca17
7 changed files with 45 additions and 25 deletions

View file

@ -0,0 +1,5 @@
class AddExpertIdToCommentaires < ActiveRecord::Migration[6.1]
def change
add_belongs_to :commentaires, :expert, type: :bigint, foreign_key: true
end
end