diff --git a/app/models/communication/website/category.rb b/app/models/communication/website/category.rb index a05f65c5f4c9c8b5688fc56b73efc68fc32396e0..0f15d3786ea10f454c2830066ff6523ce33ab9c0 100644 --- a/app/models/communication/website/category.rb +++ b/app/models/communication/website/category.rb @@ -5,7 +5,6 @@ # id :uuid not null, primary key # featured_image_alt :string # featured_image_credit :text -# github_path :text # is_programs_root :boolean default(FALSE) # meta_description :text # name :string diff --git a/app/models/communication/website/menu.rb b/app/models/communication/website/menu.rb index 0f1354f3829d7ee422dcb1448b6e6ea63aa96dd4..8f4435ce04d301f6338c2c10256be89ad6a4363f 100644 --- a/app/models/communication/website/menu.rb +++ b/app/models/communication/website/menu.rb @@ -3,7 +3,6 @@ # Table name: communication_website_menus # # id :uuid not null, primary key -# github_path :text # identifier :string # title :string # created_at :datetime not null diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index a187feac9d7cfa415e2bc973d5825e147f0b5e46..05fbdc247a4ae08e63a2f8a0d8d06ad50f04ff13 100644 --- a/app/models/communication/website/page.rb +++ b/app/models/communication/website/page.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/accessibility.rb b/app/models/communication/website/page/accessibility.rb index d9217a714fe93cb9e0162eed78cb4790b0116f89..c18349324c1ad87cec6e451ea17e0d3647d3e57c 100644 --- a/app/models/communication/website/page/accessibility.rb +++ b/app/models/communication/website/page/accessibility.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/administrator.rb b/app/models/communication/website/page/administrator.rb index a58eeadb4b78d366ac353aa8dd132c6be6d75964..f0e98c21bc2eedb8c6309ebc5aa9b06a4a65b621 100644 --- a/app/models/communication/website/page/administrator.rb +++ b/app/models/communication/website/page/administrator.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/author.rb b/app/models/communication/website/page/author.rb index 4b3ef3d5822d2534d79c632ff7b75af1fda65edd..0214f5deab7a6c0b16d8fbfcdad474bd3f52e9c3 100644 --- a/app/models/communication/website/page/author.rb +++ b/app/models/communication/website/page/author.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/communication_post.rb b/app/models/communication/website/page/communication_post.rb index 873ab16260fdfa2df353b72df08c0e8ead98efc7..a999ac5c6cf26d077923f90033a0662b108bc523 100644 --- a/app/models/communication/website/page/communication_post.rb +++ b/app/models/communication/website/page/communication_post.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/education_diploma.rb b/app/models/communication/website/page/education_diploma.rb index d210fe531cadac646bc7d091bc1f140053d6e219..a66482d0313d9fa0dc04e8678b8f97f72dc39c1c 100644 --- a/app/models/communication/website/page/education_diploma.rb +++ b/app/models/communication/website/page/education_diploma.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/education_program.rb b/app/models/communication/website/page/education_program.rb index 9c21eb8fe28631ff9c2c0309eda146eb3d2aa0df..b9d4fe227d9c1681dab5a8c3674d03c4814028d5 100644 --- a/app/models/communication/website/page/education_program.rb +++ b/app/models/communication/website/page/education_program.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/home.rb b/app/models/communication/website/page/home.rb index f7e48dd76699736f501aa7aa55414cde3c5cce4d..751a63f99b83df8e07c6f3c87b1e5e3002ef6297 100644 --- a/app/models/communication/website/page/home.rb +++ b/app/models/communication/website/page/home.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/legal_term.rb b/app/models/communication/website/page/legal_term.rb index cc33f3bb6a3aa33ce8f6cc3acc04e01ec1f1ad52..c5c5fe46a97168e3e964f56e56a8b99ea0c9a2c0 100644 --- a/app/models/communication/website/page/legal_term.rb +++ b/app/models/communication/website/page/legal_term.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/organization.rb b/app/models/communication/website/page/organization.rb index 9eae6c0b8e0dda8c92702dd0c3314ef619f1e833..1c58702dc5b9afa8f861320c0ce2a6f6bd758e56 100644 --- a/app/models/communication/website/page/organization.rb +++ b/app/models/communication/website/page/organization.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/person.rb b/app/models/communication/website/page/person.rb index 62f3b33709b7b5d7ad8737a3f565849e608116bf..4c064e2f980282121502dc2053c30938a3ecb1a2 100644 --- a/app/models/communication/website/page/person.rb +++ b/app/models/communication/website/page/person.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/privacy_policy.rb b/app/models/communication/website/page/privacy_policy.rb index 478783031efce361ff29e566fe8b37532f38bb3a..8ab378817f65934bb453ca2769b300e18ef05d61 100644 --- a/app/models/communication/website/page/privacy_policy.rb +++ b/app/models/communication/website/page/privacy_policy.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/research_paper.rb b/app/models/communication/website/page/research_paper.rb index be477bb28f0299a6557e84b7fc61330e41958c94..5dcd4ee29db65291417800744600aa567fb44e9a 100644 --- a/app/models/communication/website/page/research_paper.rb +++ b/app/models/communication/website/page/research_paper.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/research_volume.rb b/app/models/communication/website/page/research_volume.rb index e348a1d91891610c883b2851d80909c6f5725b23..8f754c60c6cf1597ef1280b534c003fee1af757d 100644 --- a/app/models/communication/website/page/research_volume.rb +++ b/app/models/communication/website/page/research_volume.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/researcher.rb b/app/models/communication/website/page/researcher.rb index 640edb89dad04af600a9f071a927128faf3973f8..f0f8e6a2f7555c3f7056d0fe8fc75b0154682a30 100644 --- a/app/models/communication/website/page/researcher.rb +++ b/app/models/communication/website/page/researcher.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/sitemap.rb b/app/models/communication/website/page/sitemap.rb index 3675c8417c7b17d5dead1738be3353cd3f18113b..70b355d3d68b290af0312f9d0760b7bd295be64a 100644 --- a/app/models/communication/website/page/sitemap.rb +++ b/app/models/communication/website/page/sitemap.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/page/teacher.rb b/app/models/communication/website/page/teacher.rb index aa07af6dbd960ae71d9461f57dfd7960878317ac..891543e4f08d0160dd0da35e68df7840960cff26 100644 --- a/app/models/communication/website/page/teacher.rb +++ b/app/models/communication/website/page/teacher.rb @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index 6eff1aa4d165151d96455ebbdd87fa641c87348a..3ea612696bfbd80db02c311bce5b8e0f93890f2d 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -5,7 +5,6 @@ # id :uuid not null, primary key # featured_image_alt :string # featured_image_credit :text -# github_path :text # meta_description :text # pinned :boolean default(FALSE) # published :boolean default(FALSE) diff --git a/db/migrate/20230703142438_remove_github_paths.rb b/db/migrate/20230703142438_remove_github_paths.rb new file mode 100644 index 0000000000000000000000000000000000000000..c2b5821a315e7b7d094cc65ac22121f47d109e78 --- /dev/null +++ b/db/migrate/20230703142438_remove_github_paths.rb @@ -0,0 +1,8 @@ +class RemoveGithubPaths < ActiveRecord::Migration[7.0] + def change + remove_column :communication_website_categories, :github_path + remove_column :communication_website_menus, :github_path + remove_column :communication_website_pages, :github_path + remove_column :communication_website_posts, :github_path + end +end diff --git a/db/schema.rb b/db/schema.rb index 5dac26fc942d4302fe69dd3fb97915a5aa4b1f00..547544b729fd027f74d520b8a9f1a49ff5ff466b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_07_03_103209) do +ActiveRecord::Schema[7.0].define(version: 2023_07_03_142438) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" @@ -105,8 +105,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_03_103209) do t.datetime "updated_at", null: false t.string "title" t.boolean "published", default: true - t.uuid "heading_id" t.uuid "communication_website_id" + t.uuid "heading_id" t.index ["about_type", "about_id"], name: "index_communication_website_blocks_on_about" t.index ["communication_website_id"], name: "index_communication_blocks_on_communication_website_id" t.index ["heading_id"], name: "index_communication_blocks_on_heading_id" @@ -223,6 +223,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_03_103209) do t.text "home_sentence" t.text "sass" t.text "css" + t.boolean "allow_experiences_modification", default: true t.index ["about_type", "about_id"], name: "index_communication_extranets_on_about" t.index ["university_id"], name: "index_communication_extranets_on_university_id" end @@ -237,7 +238,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_03_103209) do t.datetime "updated_at", null: false t.string "slug" t.uuid "parent_id" - t.text "github_path" t.uuid "program_id" t.boolean "is_programs_root", default: false t.string "path" @@ -423,7 +423,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_03_103209) do t.string "identifier" t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.text "github_path" t.uuid "original_id" t.uuid "language_id", null: false t.index ["communication_website_id"], name: "idx_comm_website_menus_on_communication_website_id" @@ -444,7 +443,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_03_103209) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.boolean "published", default: false - t.text "github_path" t.string "featured_image_alt" t.text "text" t.text "summary" @@ -464,7 +462,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_03_103209) do t.index ["university_id"], name: "index_communication_website_pages_on_university_id" end - create_table "communication_website_permalinks", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_permalinks", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "website_id", null: false t.string "about_type", null: false @@ -488,7 +486,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_07_03_103209) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.text "slug" - t.text "github_path" t.uuid "author_id" t.boolean "pinned", default: false t.string "featured_image_alt" diff --git a/test/fixtures/communication/website/menus.yml b/test/fixtures/communication/website/menus.yml index 51d442523ed21780b78d5634352551aa4485d8cc..5ede2b15cbd4a1b3734191cb65fe4b41d17c226f 100644 --- a/test/fixtures/communication/website/menus.yml +++ b/test/fixtures/communication/website/menus.yml @@ -3,7 +3,6 @@ # Table name: communication_website_menus # # id :uuid not null, primary key -# github_path :text # identifier :string # title :string # created_at :datetime not null diff --git a/test/fixtures/communication/website/pages.yml b/test/fixtures/communication/website/pages.yml index 3b5f4804fbf1127ddef50d76be7d22e58b40c788..42deb86c3da78dc9a0c3211933b3881ea3deda66 100644 --- a/test/fixtures/communication/website/pages.yml +++ b/test/fixtures/communication/website/pages.yml @@ -8,7 +8,6 @@ # featured_image_alt :string # featured_image_credit :text # full_width :boolean default(FALSE) -# github_path :text # header_text :text # kind :integer # meta_description :text diff --git a/test/fixtures/communication/website/posts.yml b/test/fixtures/communication/website/posts.yml index 9c76a0dea5f7076cde26b7f3f4595857db1f4691..b63bfa60e1f8eaee67ae1e474eef151de45a1c5f 100644 --- a/test/fixtures/communication/website/posts.yml +++ b/test/fixtures/communication/website/posts.yml @@ -5,7 +5,6 @@ # id :uuid not null, primary key # featured_image_alt :string # featured_image_credit :text -# github_path :text # meta_description :text # pinned :boolean default(FALSE) # published :boolean default(FALSE)