demarches-normaliennes/db/migrate/20190809073736_link_user_and_administrateur.rb
2024-08-22 09:26:48 +02:00

8 lines
217 B
Ruby

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