demarches-normaliennes/db/migrate/20190809073736_link_user_and_administrateur.rb

7 lines
186 B
Ruby
Raw Normal View History

2019-08-09 09:45:11 +02:00
class LinkUserAndAdministrateur < ActiveRecord::Migration[5.2]
def change
add_reference :users, :administrateur, index: true
add_foreign_key :users, :administrateurs
end
end