demarches-normaliennes/db/migrate/20231212133643_create_agent_connect_informations.rb
2024-03-15 14:35:14 +01:00

17 lines
500 B
Ruby

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