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

9 lines
217 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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