Drop the cerfas table
This commit is contained in:
parent
6a18a22705
commit
f30a62971a
2 changed files with 6 additions and 12 deletions
5
db/migrate/20180822162952_drop_cerfas.rb
Normal file
5
db/migrate/20180822162952_drop_cerfas.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class DropCerfas < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
drop_table :cerfas
|
||||||
|
end
|
||||||
|
end
|
13
db/schema.rb
13
db/schema.rb
|
@ -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: 2018_08_08_142237) do
|
ActiveRecord::Schema.define(version: 2018_08_22_162952) 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"
|
||||||
|
@ -158,16 +158,6 @@ ActiveRecord::Schema.define(version: 2018_08_08_142237) do
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "cerfas", id: :serial, force: :cascade do |t|
|
|
||||||
t.string "content"
|
|
||||||
t.integer "dossier_id"
|
|
||||||
t.datetime "created_at"
|
|
||||||
t.integer "user_id"
|
|
||||||
t.string "original_filename"
|
|
||||||
t.string "content_secure_token"
|
|
||||||
t.index ["dossier_id"], name: "index_cerfas_on_dossier_id"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "champs", id: :serial, force: :cascade do |t|
|
create_table "champs", id: :serial, force: :cascade do |t|
|
||||||
t.string "value"
|
t.string "value"
|
||||||
t.integer "type_de_champ_id"
|
t.integer "type_de_champ_id"
|
||||||
|
@ -629,7 +619,6 @@ ActiveRecord::Schema.define(version: 2018_08_08_142237) do
|
||||||
add_foreign_key "attestation_templates", "procedures"
|
add_foreign_key "attestation_templates", "procedures"
|
||||||
add_foreign_key "attestations", "dossiers"
|
add_foreign_key "attestations", "dossiers"
|
||||||
add_foreign_key "avis", "gestionnaires", column: "claimant_id"
|
add_foreign_key "avis", "gestionnaires", column: "claimant_id"
|
||||||
add_foreign_key "cerfas", "dossiers"
|
|
||||||
add_foreign_key "closed_mails", "procedures"
|
add_foreign_key "closed_mails", "procedures"
|
||||||
add_foreign_key "commentaires", "dossiers"
|
add_foreign_key "commentaires", "dossiers"
|
||||||
add_foreign_key "dossiers", "users"
|
add_foreign_key "dossiers", "users"
|
||||||
|
|
Loading…
Add table
Reference in a new issue