feat(revisions): add rebased_at to champs

This commit is contained in:
Paul Chavard 2021-10-20 17:26:09 +02:00
parent 67e98f79c9
commit 09a09d3fcf
34 changed files with 39 additions and 1 deletions

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -6,6 +6,7 @@
# data :jsonb # data :jsonb
# fetch_external_data_exceptions :string is an Array # fetch_external_data_exceptions :string is an Array
# private :boolean default(FALSE), not null # private :boolean default(FALSE), not null
# rebased_at :datetime
# row :integer # row :integer
# type :string # type :string
# value :string # value :string

View file

@ -0,0 +1,5 @@
class AddRebasedAtToChamps < ActiveRecord::Migration[6.1]
def change
add_column :champs, :rebased_at, :datetime
end
end

View file

@ -10,7 +10,7 @@
# #
# 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_10_20_104237) do ActiveRecord::Schema.define(version: 2021_10_20_114237) 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"
@ -190,6 +190,7 @@ ActiveRecord::Schema.define(version: 2021_10_20_104237) do
t.string "external_id" t.string "external_id"
t.string "fetch_external_data_exceptions", array: true t.string "fetch_external_data_exceptions", array: true
t.jsonb "value_json" t.jsonb "value_json"
t.datetime "rebased_at"
t.index ["dossier_id"], name: "index_champs_on_dossier_id" t.index ["dossier_id"], name: "index_champs_on_dossier_id"
t.index ["etablissement_id"], name: "index_champs_on_etablissement_id" t.index ["etablissement_id"], name: "index_champs_on_etablissement_id"
t.index ["parent_id"], name: "index_champs_on_parent_id" t.index ["parent_id"], name: "index_champs_on_parent_id"