demarches-normaliennes/db/migrate/20231212133643_create_agent_connect_informations.rb

20 lines
531 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class CreateAgentConnectInformations < ActiveRecord::Migration[7.0]
def change
create_table :agent_connect_informations do |t|
t.references :instructeur, null: false, foreign_key: true
t.string :given_name, null: false
t.string :usual_name, null: false
t.string :email, null: false
t.string :sub, null: false
t.string :siret
t.string :organizational_unit
t.string :belonging_population
t.string :phone
t.timestamps
end
end
end