From 6bb65af39067303e6f87656b96d19337fe1520a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= Date: Sat, 25 Jan 2025 11:02:08 +0100 Subject: [PATCH] clean --- app/models/communication/website/page.rb | 1 - db/schema.rb | 54 +----------------------- 2 files changed, 2 insertions(+), 53 deletions(-) diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index 1c59e0ba0..bd8c532f9 100644 --- a/app/models/communication/website/page.rb +++ b/app/models/communication/website/page.rb @@ -4,7 +4,6 @@ # # id :uuid not null, primary key # bodyclass :string -# design_options :jsonb # full_width :boolean default(FALSE) # migration_identifier :string # position :integer default(0), not null diff --git a/db/schema.rb b/db/schema.rb index eb1dc32d2..c79e8c570 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -340,48 +340,6 @@ t.index ["university_id"], name: "index_communication_extranets_on_university_id" end - create_table "communication_media_contexts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.uuid "communication_media_id", null: false - t.uuid "active_storage_blob_id", null: false - t.string "about_type" - t.uuid "about_id" - t.uuid "university_id", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["about_type", "about_id"], name: "index_communication_media_contexts_on_about" - t.index ["active_storage_blob_id"], name: "index_communication_media_contexts_on_active_storage_blob_id" - t.index ["communication_media_id"], name: "index_communication_media_contexts_on_communication_media_id" - t.index ["university_id"], name: "index_communication_media_contexts_on_university_id" - end - - create_table "communication_media_localizations", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.string "name" - t.text "alt" - t.text "credit" - t.uuid "language_id", null: false - t.uuid "about_id", null: false - t.uuid "university_id", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["about_id"], name: "index_communication_media_localizations_on_about_id" - t.index ["language_id"], name: "index_communication_media_localizations_on_language_id" - t.index ["university_id"], name: "index_communication_media_localizations_on_university_id" - end - - create_table "communication_medias", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.integer "origin", default: 1, null: false - t.string "original_filename" - t.string "original_checksum" - t.string "original_content_type" - t.bigint "original_byte_size" - t.uuid "original_blob_id", null: false - t.uuid "university_id", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["original_blob_id"], name: "index_communication_medias_on_original_blob_id" - t.index ["university_id"], name: "index_communication_medias_on_university_id" - end - create_table "communication_website_agenda_categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| t.integer "position" t.uuid "communication_website_id", null: false @@ -631,7 +589,7 @@ t.boolean "header_cta" t.string "header_cta_label" t.string "header_cta_url" - t.string "header_text" + t.text "header_text" t.string "meta_description" t.string "migration_identifier" t.boolean "published" @@ -1777,7 +1735,7 @@ end create_table "university_person_localizations", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| - t.string "biography" + t.text "biography" t.string "first_name" t.string "last_name" t.string "linkedin" @@ -1928,14 +1886,6 @@ add_foreign_key "communication_extranet_posts", "university_people", column: "author_id" add_foreign_key "communication_extranets", "languages", column: "default_language_id" add_foreign_key "communication_extranets", "universities" - add_foreign_key "communication_media_contexts", "active_storage_blobs" - add_foreign_key "communication_media_contexts", "communication_medias" - add_foreign_key "communication_media_contexts", "universities" - add_foreign_key "communication_media_localizations", "communication_medias", column: "about_id" - add_foreign_key "communication_media_localizations", "languages" - add_foreign_key "communication_media_localizations", "universities" - add_foreign_key "communication_medias", "active_storage_blobs", column: "original_blob_id" - add_foreign_key "communication_medias", "universities" add_foreign_key "communication_website_agenda_categories", "communication_website_agenda_categories", column: "parent_id" add_foreign_key "communication_website_agenda_categories", "communication_websites" add_foreign_key "communication_website_agenda_categories", "education_programs", column: "program_id"