Check if France Connect User is a mandataire social of the enterprise

This commit is contained in:
Xavier J 2016-01-06 14:17:08 +01:00
parent 3f048d0709
commit 332eab3771
4 changed files with 43 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class AddMandataireSocialToDossier < ActiveRecord::Migration
def change
add_column :dossiers, :mandataire_social, :boolean, default: false
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20151223101322) do
ActiveRecord::Schema.define(version: 20160106100227) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -69,6 +69,7 @@ ActiveRecord::Schema.define(version: 20151223101322) do
t.integer "user_id"
t.text "json_latlngs"
t.boolean "archived", default: false
t.boolean "mandataire_social", default: false
end
add_index "dossiers", ["procedure_id"], name: "index_dossiers_on_procedure_id", using: :btree