Add data column to champ

This commit is contained in:
Paul Chavard 2021-01-13 18:57:10 +01:00
parent 6ca9daab0f
commit a1643dad84
33 changed files with 38 additions and 1 deletions

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -3,6 +3,7 @@
# Table name: champs
#
# id :integer not null, primary key
# data :jsonb
# private :boolean default(FALSE), not null
# row :integer
# type :string

View file

@ -0,0 +1,5 @@
class AddDataToChamps < ActiveRecord::Migration[6.0]
def change
add_column :champs, :data, :jsonb
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_11_17_122923) do
ActiveRecord::Schema.define(version: 2021_01_13_150013) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -143,6 +143,7 @@ ActiveRecord::Schema.define(version: 2020_11_17_122923) do
t.integer "etablissement_id"
t.bigint "parent_id"
t.integer "row"
t.jsonb "data"
t.index ["dossier_id"], name: "index_champs_on_dossier_id"
t.index ["parent_id"], name: "index_champs_on_parent_id"
t.index ["private"], name: "index_champs_on_private"