From 86df167cf2ae75696e0e9bc55a7f183de440043a Mon Sep 17 00:00:00 2001 From: Xavier J Date: Thu, 24 Dec 2015 10:02:30 +0100 Subject: [PATCH] Migration for FranceConnect Particulier --- ...1_add_france_connect_particulier_attributs_to_user.rb | 9 +++++++++ ...hange_type_of_loged_in_with_france_connect_to_user.rb | 5 +++++ db/migrate/20151223101322_add_openid_to_user.rb | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 db/migrate/20151221164041_add_france_connect_particulier_attributs_to_user.rb create mode 100644 db/migrate/20151222105558_change_type_of_loged_in_with_france_connect_to_user.rb create mode 100644 db/migrate/20151223101322_add_openid_to_user.rb diff --git a/db/migrate/20151221164041_add_france_connect_particulier_attributs_to_user.rb b/db/migrate/20151221164041_add_france_connect_particulier_attributs_to_user.rb new file mode 100644 index 000000000..0a1411152 --- /dev/null +++ b/db/migrate/20151221164041_add_france_connect_particulier_attributs_to_user.rb @@ -0,0 +1,9 @@ +class AddFranceConnectParticulierAttributsToUser < ActiveRecord::Migration + def change + add_column :users, :gender, :string + add_column :users, :given_name, :string + add_column :users, :family_name, :string + add_column :users, :birthdate, :date + add_column :users, :birthplace, :string + end +end diff --git a/db/migrate/20151222105558_change_type_of_loged_in_with_france_connect_to_user.rb b/db/migrate/20151222105558_change_type_of_loged_in_with_france_connect_to_user.rb new file mode 100644 index 000000000..f3bf38d37 --- /dev/null +++ b/db/migrate/20151222105558_change_type_of_loged_in_with_france_connect_to_user.rb @@ -0,0 +1,5 @@ +class ChangeTypeOfLogedInWithFranceConnectToUser < ActiveRecord::Migration + def change + change_column :users, :loged_in_with_france_connect, :string + end +end diff --git a/db/migrate/20151223101322_add_openid_to_user.rb b/db/migrate/20151223101322_add_openid_to_user.rb new file mode 100644 index 000000000..455305495 --- /dev/null +++ b/db/migrate/20151223101322_add_openid_to_user.rb @@ -0,0 +1,5 @@ +class AddOpenidToUser < ActiveRecord::Migration + def change + add_column :users, :france_connect_particulier_id, :string + end +end