demarches-normaliennes/db/migrate/20150923101000_add_user_to_dossier.rb

7 lines
158 B
Ruby
Raw Normal View History

2015-09-23 12:16:21 +02:00
class AddUserToDossier < ActiveRecord::Migration
def change
add_reference :dossiers, :user, index: true
add_foreign_key :dossiers, :users
end
end