chore(schema): +procedures#sva_svr

This commit is contained in:
Colin Darie 2023-05-25 19:06:43 +02:00
parent e2a9978c26
commit bb4a6e22ce
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
4 changed files with 9 additions and 0 deletions

View file

@ -47,6 +47,7 @@
# published_at :datetime
# routing_criteria_name :text default("Votre ville")
# routing_enabled :boolean
# sva_svr :jsonb not null
# tags :text default([]), is an Array
# unpublished_at :datetime
# web_hook_url :string

View file

@ -15,6 +15,8 @@ ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.acronym 'JSON'
inflect.acronym 'RNA'
inflect.acronym 'URL'
inflect.acronym 'SVA'
inflect.acronym 'SVR'
inflect.irregular 'type_de_champ', 'types_de_champ'
inflect.irregular 'type_de_champ_private', 'types_de_champ_private'
inflect.irregular 'procedure_revision_type_de_champ', 'procedure_revision_types_de_champ'

View file

@ -0,0 +1,5 @@
class AddSVASVRToProcedures < ActiveRecord::Migration[7.0]
def change
add_column :procedures, :sva_svr, :jsonb, default: {}, null: false
end
end

View file

@ -762,6 +762,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_29_102031) do
t.text "routing_criteria_name", default: "Votre ville"
t.boolean "routing_enabled"
t.bigint "service_id"
t.jsonb "sva_svr", default: {}, null: false
t.text "tags", default: [], array: true
t.datetime "test_started_at", precision: 6
t.datetime "unpublished_at", precision: 6