add api particulier sources to procedure
This commit is contained in:
parent
2092994fc3
commit
b000590d81
3 changed files with 11 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
# allow_expert_review :boolean default(TRUE), not null
|
# allow_expert_review :boolean default(TRUE), not null
|
||||||
# api_entreprise_token :string
|
# api_entreprise_token :string
|
||||||
# api_particulier_scopes :text default([]), is an Array
|
# api_particulier_scopes :text default([]), is an Array
|
||||||
|
# api_particulier_sources :jsonb
|
||||||
# ask_birthday :boolean default(FALSE), not null
|
# ask_birthday :boolean default(FALSE), not null
|
||||||
# auto_archive_on :date
|
# auto_archive_on :date
|
||||||
# cadre_juridique :string
|
# cadre_juridique :string
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
class AddAPIParticulierSourcesToProcedure < ActiveRecord::Migration[6.0]
|
||||||
|
def change
|
||||||
|
add_column :procedures, :api_particulier_sources, :jsonb, :default => {}
|
||||||
|
add_index :procedures, :api_particulier_sources, using: :gin
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,8 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2021_09_08_162000) do
|
ActiveRecord::Schema.define(version: 2021_09_08_170019) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
enable_extension "unaccent"
|
enable_extension "unaccent"
|
||||||
|
@ -619,6 +620,8 @@ ActiveRecord::Schema.define(version: 2021_09_08_162000) do
|
||||||
t.boolean "experts_require_administrateur_invitation", default: false
|
t.boolean "experts_require_administrateur_invitation", default: false
|
||||||
t.string "encrypted_api_particulier_token"
|
t.string "encrypted_api_particulier_token"
|
||||||
t.text "api_particulier_scopes", default: [], array: true
|
t.text "api_particulier_scopes", default: [], array: true
|
||||||
|
t.jsonb "api_particulier_sources", default: {}
|
||||||
|
t.index ["api_particulier_sources"], name: "index_procedures_on_api_particulier_sources", using: :gin
|
||||||
t.index ["declarative_with_state"], name: "index_procedures_on_declarative_with_state"
|
t.index ["declarative_with_state"], name: "index_procedures_on_declarative_with_state"
|
||||||
t.index ["draft_revision_id"], name: "index_procedures_on_draft_revision_id"
|
t.index ["draft_revision_id"], name: "index_procedures_on_draft_revision_id"
|
||||||
t.index ["hidden_at"], name: "index_procedures_on_hidden_at"
|
t.index ["hidden_at"], name: "index_procedures_on_hidden_at"
|
||||||
|
|
Loading…
Reference in a new issue