fetch and store bilans bdf

This commit is contained in:
Christophe Robillard 2020-04-30 08:43:34 +02:00
parent 85b2e9ef44
commit b12226c667
5 changed files with 33 additions and 3 deletions

View file

@ -0,0 +1,6 @@
class AddBilansBdfToEtablissements < ActiveRecord::Migration[5.2]
def change
add_column :etablissements, :entreprise_bilans_bdf, :jsonb
add_column :etablissements, :entreprise_bilans_bdf_monnaie, :string
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_04_23_171759) do
ActiveRecord::Schema.define(version: 2020_04_29_191305) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -316,6 +316,8 @@ ActiveRecord::Schema.define(version: 2020_04_23_171759) do
t.decimal "entreprise_effectif_mensuel"
t.decimal "entreprise_effectif_annuel"
t.string "entreprise_effectif_annuel_annee"
t.jsonb "entreprise_bilans_bdf"
t.string "entreprise_bilans_bdf_monnaie"
t.index ["dossier_id"], name: "index_etablissements_on_dossier_id"
end