Merge pull request #2661 from betagouv/fix-1722

[Fix #1722] Drop the entreprises table
This commit is contained in:
gregoirenovel 2018-09-25 13:57:04 +02:00 committed by GitHub
commit 1f26ffdf51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 20 deletions

View file

@ -0,0 +1,5 @@
class DropEntreprises < ActiveRecord::Migration[5.2]
def change
drop_table :entreprises
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: 2018_09_19_084403) do
ActiveRecord::Schema.define(version: 2018_09_24_074121) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -251,25 +251,6 @@ ActiveRecord::Schema.define(version: 2018_09_19_084403) do
t.index ["type_de_champ_id"], name: "index_drop_down_lists_on_type_de_champ_id"
end
create_table "entreprises", id: :serial, force: :cascade do |t|
t.string "siren"
t.bigint "capital_social"
t.string "numero_tva_intracommunautaire"
t.string "forme_juridique"
t.string "forme_juridique_code"
t.string "nom_commercial"
t.string "raison_sociale"
t.string "siret_siege_social"
t.string "code_effectif_entreprise"
t.datetime "date_creation"
t.string "nom"
t.string "prenom"
t.integer "dossier_id"
t.datetime "created_at"
t.datetime "updated_at"
t.index ["dossier_id"], name: "index_entreprises_on_dossier_id"
end
create_table "etablissements", id: :serial, force: :cascade do |t|
t.string "siret"
t.boolean "siege_social"