demarches-normaliennes/db/migrate/20190809073736_link_user_and_administrateur.rb
2019-08-14 15:06:15 +02:00

6 lines
186 B
Ruby

class LinkUserAndAdministrateur < ActiveRecord::Migration[5.2]
def change
add_reference :users, :administrateur, index: true
add_foreign_key :users, :administrateurs
end
end