demarches-normaliennes/db/migrate/20170523092900_add_claimant_to_avis.rb

6 lines
169 B
Ruby
Raw Normal View History

class AddClaimantToAvis < ActiveRecord::Migration[5.0]
def change
add_reference :avis, :claimant, foreign_key: { to_table: :gestionnaires }, null: false
end
end