diff --git a/app/models/administration/qualiopi/indicator.rb b/app/models/administration/qualiopi/indicator.rb index 300286f22c2b5b35c92568f4cde1b0c4b2bd6691..6e06a027333a734dbc6b5b039d18b1b21626969a 100644 --- a/app/models/administration/qualiopi/indicator.rb +++ b/app/models/administration/qualiopi/indicator.rb @@ -20,7 +20,7 @@ # # Foreign Keys # -# fk_rails_31f1a0a2c9 (criterion_id => administration_qualiopi_criterions.id) +# fk_rails_eed87f7acf (criterion_id => administration_qualiopi_criterions.id) # class Administration::Qualiopi::Indicator < ApplicationRecord include Sanitizable diff --git a/app/models/communication/website.rb b/app/models/communication/website.rb index 7f32cf185681e23ed00331f2f3965d38c16e1a1b..ec8ffed12ad4f46f3cac69fb9e2a8e1264d54b47 100644 --- a/app/models/communication/website.rb +++ b/app/models/communication/website.rb @@ -25,7 +25,7 @@ # # Foreign Keys # -# fk_rails_94b0abd85b (university_id => universities.id) +# fk_rails_bb6a496c08 (university_id => universities.id) # class Communication::Website < ApplicationRecord include WithUniversity diff --git a/app/models/communication/website/configs/base_url.rb b/app/models/communication/website/configs/base_url.rb index a28371ae484a8eea0cbfadf4b1c6a6f3d0a3b79e..2daeee8a29469d9f54419c721df481893f9f4e46 100644 --- a/app/models/communication/website/configs/base_url.rb +++ b/app/models/communication/website/configs/base_url.rb @@ -25,7 +25,7 @@ # # Foreign Keys # -# fk_rails_94b0abd85b (university_id => universities.id) +# fk_rails_bb6a496c08 (university_id => universities.id) # class Communication::Website::Configs::BaseUrl < Communication::Website diff --git a/app/models/communication/website/configs/permalinks.rb b/app/models/communication/website/configs/permalinks.rb index 7ba504bbb39f709ea6ef47af7825e4a2ad26d59f..df46d3c8fecc75aba6cf25a7418402a7e225dbca 100644 --- a/app/models/communication/website/configs/permalinks.rb +++ b/app/models/communication/website/configs/permalinks.rb @@ -25,7 +25,7 @@ # # Foreign Keys # -# fk_rails_94b0abd85b (university_id => universities.id) +# fk_rails_bb6a496c08 (university_id => universities.id) # class Communication::Website::Configs::Permalinks < Communication::Website diff --git a/app/models/education/program.rb b/app/models/education/program.rb index 8a9ebf684731b179be924b511517c6d1e4ee6620..6606cc0a800220c485453fdbf0551abdcb757c4c 100644 --- a/app/models/education/program.rb +++ b/app/models/education/program.rb @@ -45,7 +45,7 @@ # # Foreign Keys # -# fk_rails_6e16107511 (university_id => universities.id) +# fk_rails_08b351087c (university_id => universities.id) # fk_rails_ec1f16f607 (parent_id => education_programs.id) # class Education::Program < ApplicationRecord diff --git a/app/views/admin/education/programs/_form.html.erb b/app/views/admin/education/programs/_form.html.erb index 457d085315c098c51f8c0f96fbd46ddb5b4362c3..af38dc28ad8c928ca2b431e71a790bb89a40775f 100644 --- a/app/views/admin/education/programs/_form.html.erb +++ b/app/views/admin/education/programs/_form.html.erb @@ -110,7 +110,7 @@ <%= render 'admin/education/programs/forms/input_with_inheritance', f: f, property: :prerequisites %> <%= render 'admin/education/programs/forms/input_with_inheritance', - f: f, property: :accessibility %> + f: f, property: :registration %> <%= render 'admin/education/programs/forms/input_with_inheritance', f: f, property: :other %> </div> @@ -118,7 +118,7 @@ <%= render 'admin/education/programs/forms/input_with_inheritance', f: f, property: :pricing %> <%= render 'admin/education/programs/forms/input_with_inheritance', - f: f, property: :registration %> + f: f, property: :accessibility %> <%= render 'admin/education/programs/forms/input_with_inheritance', f: f, property: :contacts %> </div> diff --git a/app/views/admin/education/programs/show.html.erb b/app/views/admin/education/programs/show.html.erb index 7c6c2659641c685fd2c61a792013a301489c99bc..7ae4601e87127f4c63b8bb3d8d2f3ce4a8c2c088 100644 --- a/app/views/admin/education/programs/show.html.erb +++ b/app/views/admin/education/programs/show.html.erb @@ -57,9 +57,7 @@ </div> </div> <% end %> - <%= render 'admin/education/programs/forms/part', - part: :presentation, - collapsed: true do %> + <%= render 'admin/education/programs/forms/part', part: :presentation, collapsed: true do %> <div class="row"> <div class="col-xxl-6"> <h3 class="h5"> @@ -68,75 +66,44 @@ <p><%= @program.presentation %></p> </div> <div class="col-xxl-6"> - <%= render 'admin/application/property/text', - object: @program, - property: :objectives %> + <%= render 'admin/application/property/text', object: @program, property: :objectives %> </div> </div> <% end %> <%= render 'admin/communication/blocks/list', about: @program %> - <%= render 'admin/education/programs/forms/part', - part: :pedagogy, - collapsed: true do %> + <%= render 'admin/education/programs/forms/part', part: :pedagogy, collapsed: true do %> <div class="row"> <div class="col-xxl-6"> - <%= render 'admin/application/property/text', - object: @program, - property: :content %> + <%= render 'admin/application/property/text', object: @program, property: :content %> </div> <div class="col-xxl-6"> - <%= render 'admin/application/property/text', - object: @program, - property: :pedagogy %> - <%= render 'admin/application/property/text', - object: @program, - property: :evaluation %> + <%= render 'admin/application/property/text', object: @program, property: :pedagogy %> + <%= render 'admin/application/property/text', object: @program, property: :evaluation %> </div> </div> - <%= render 'admin/education/programs/show/teachers', - involvements: @teacher_involvements %> + <%= render 'admin/education/programs/show/teachers', involvements: @teacher_involvements %> <% end %> - <%= render 'admin/education/programs/forms/part', - part: :results, - collapsed: true do %> + <%= render 'admin/education/programs/forms/part', part: :results, collapsed: true do %> <div class="row"> <div class="col-xxl-6"> - <%= render 'admin/application/property/text', - object: @program, - property: :opportunities %> + <%= render 'admin/application/property/text', object: @program, property: :opportunities %> </div> <div class="col-xxl-6"> - <%= render 'admin/application/property/text', - object: @program, - property: :results %> + <%= render 'admin/application/property/text', object: @program, property: :results %> </div> </div> <% end %> - <%= render 'admin/education/programs/forms/part', - part: :admission, - collapsed: true do %> + <%= render 'admin/education/programs/forms/part', part: :admission, collapsed: true do %> <div class="row"> <div class="col-xxl-6"> - <%= render 'admin/application/property/text', - object: @program, - property: :prerequisites %> - <%= render 'admin/application/property/text', - object: @program, - property: :accessibility %> - <%= render 'admin/application/property/text', - object: @program, - property: :other %> + <%= render 'admin/application/property/text', object: @program, property: :prerequisites %> + <%= render 'admin/application/property/text', object: @program, property: :registration %> + <%= render 'admin/application/property/text', object: @program, property: :other %> </div> <div class="col-xxl-6"> - <%= render 'admin/application/property/text', - object: @program, - property: :pricing %> - <%= render 'admin/application/property/text', - object: @program, - property: :registration %> - <%= render 'admin/application/property/text', - object: @program, - property: :contacts %> + <%= render 'admin/application/property/text', object: @program, property: :pricing %> + <%= render 'admin/application/property/text', object: @program, property: :accessibility %> + <%= render 'admin/application/property/text', object: @program, property: :contacts %> </div> </div> <%= render 'admin/education/programs/show/roles', roles: @roles %> diff --git a/db/schema.rb b/db/schema.rb index 3a8420e9472bf89d4c66b57b80fd563e0be2fd80..8ef9ad8ebf9fe4e9f57ee8a12456e8caea5cc19c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -17,7 +17,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do enable_extension "plpgsql" enable_extension "unaccent" - create_table "action_text_rich_texts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "action_text_rich_texts", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "name", null: false t.text "body" t.string "record_type", null: false @@ -27,7 +27,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["record_type", "record_id", "name"], name: "index_action_text_rich_texts_uniqueness", unique: true end - create_table "active_storage_attachments", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "active_storage_attachments", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false t.uuid "record_id", null: false @@ -37,7 +37,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true end - create_table "active_storage_blobs", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "active_storage_blobs", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "key", null: false t.string "filename", null: false t.string "content_type" @@ -51,13 +51,13 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_active_storage_blobs_on_university_id" end - create_table "active_storage_variant_records", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "active_storage_variant_records", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "blob_id", null: false t.string "variation_digest", null: false t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true end - create_table "administration_qualiopi_criterions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "administration_qualiopi_criterions", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.integer "number" t.text "name" t.text "description" @@ -65,7 +65,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.datetime "updated_at", precision: 6, null: false end - create_table "administration_qualiopi_indicators", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "administration_qualiopi_indicators", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "criterion_id", null: false t.integer "number" t.text "name" @@ -79,7 +79,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["criterion_id"], name: "index_administration_qualiopi_indicators_on_criterion_id" end - create_table "communication_blocks", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_blocks", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "about_type" t.uuid "about_id" @@ -94,7 +94,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_communication_blocks_on_university_id" end - create_table "communication_extranets", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_extranets", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "name" t.uuid "university_id", null: false t.string "domain" @@ -106,7 +106,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_communication_extranets_on_university_id" end - create_table "communication_website_categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_categories", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "communication_website_id", null: false t.string "name" @@ -136,7 +136,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["communication_website_post_id", "communication_website_category_id"], name: "post_category" end - create_table "communication_website_git_files", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_git_files", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "previous_path" t.string "about_type", null: false t.uuid "about_id", null: false @@ -148,7 +148,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["website_id"], name: "index_communication_website_git_files_on_website_id" end - create_table "communication_website_imported_authors", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_imported_authors", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "website_id", null: false t.uuid "author_id" @@ -164,7 +164,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["website_id"], name: "idx_communication_website_imported_auth_on_website" end - create_table "communication_website_imported_categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_imported_categories", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "website_id", null: false t.uuid "category_id" @@ -182,7 +182,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["website_id"], name: "idx_communication_website_imported_cat_on_website" end - create_table "communication_website_imported_media", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_imported_media", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "identifier" t.jsonb "data" t.text "file_url" @@ -197,7 +197,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["website_id"], name: "index_communication_website_imported_media_on_website_id" end - create_table "communication_website_imported_pages", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_imported_pages", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "website_id", null: false t.uuid "page_id" @@ -221,7 +221,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["website_id"], name: "index_communication_website_imported_pages_on_website_id" end - create_table "communication_website_imported_posts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_imported_posts", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "website_id", null: false t.uuid "post_id" @@ -246,7 +246,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["website_id"], name: "index_communication_website_imported_posts_on_website_id" end - create_table "communication_website_imported_websites", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_imported_websites", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "website_id", null: false t.integer "status", default: 0 @@ -256,7 +256,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["website_id"], name: "index_communication_website_imported_websites_on_website_id" end - create_table "communication_website_menu_items", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_menu_items", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "website_id", null: false t.uuid "menu_id", null: false @@ -276,7 +276,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["website_id"], name: "index_communication_website_menu_items_on_website_id" end - create_table "communication_website_menus", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_menus", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "communication_website_id", null: false t.string "title" @@ -288,7 +288,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_communication_website_menus_on_university_id" end - create_table "communication_website_pages", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_pages", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "communication_website_id", null: false t.string "title" @@ -316,7 +316,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_communication_website_pages_on_university_id" end - create_table "communication_website_posts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_website_posts", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "communication_website_id", null: false t.string "title" @@ -340,7 +340,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_communication_website_posts_on_university_id" end - create_table "communication_websites", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "communication_websites", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "name" t.string "url" @@ -387,7 +387,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["priority", "run_at"], name: "delayed_jobs_priority" end - create_table "education_academic_years", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "education_academic_years", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.integer "year" t.datetime "created_at", precision: 6, null: false @@ -402,7 +402,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_person_id", "education_academic_year_id"], name: "index_person_academic_year" end - create_table "education_cohorts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "education_cohorts", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "program_id", null: false t.uuid "academic_year_id", null: false @@ -421,7 +421,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_person_id", "education_cohort_id"], name: "index_person_cohort" end - create_table "education_diplomas", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "education_diplomas", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "name" t.string "short_name" t.integer "level", default: 0 @@ -434,7 +434,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_education_diplomas_on_university_id" end - create_table "education_programs", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "education_programs", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "name" t.integer "level" @@ -493,7 +493,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["education_program_id", "user_id"], name: "index_education_programs_users_on_program_id_and_user_id" end - create_table "education_schools", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "education_schools", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "name" t.string "address" @@ -508,7 +508,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_education_schools_on_university_id" end - create_table "imports", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "imports", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.integer "number_of_lines" t.jsonb "processing_errors" t.integer "kind" @@ -521,14 +521,14 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["user_id"], name: "index_imports_on_user_id" end - create_table "languages", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "languages", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "name" t.string "iso_code" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "research_journal_articles", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "research_journal_articles", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "title" t.datetime "published_at" t.uuid "university_id", null: false @@ -558,7 +558,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["researcher_id"], name: "index_research_journal_articles_researchers_on_researcher_id" end - create_table "research_journal_volumes", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "research_journal_volumes", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "research_journal_id", null: false t.string "title" @@ -577,7 +577,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_research_journal_volumes_on_university_id" end - create_table "research_journals", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "research_journals", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "title" t.text "description" @@ -589,7 +589,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_research_journals_on_university_id" end - create_table "research_laboratories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "research_laboratories", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "name" t.string "address" @@ -601,7 +601,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_research_laboratories_on_university_id" end - create_table "research_laboratory_axes", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "research_laboratory_axes", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "research_laboratory_id", null: false t.string "name" @@ -615,7 +615,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_research_laboratory_axes_on_university_id" end - create_table "research_theses", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "research_theses", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "research_laboratory_id", null: false t.uuid "author_id", null: false @@ -633,7 +633,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_research_theses_on_university_id" end - create_table "universities", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "universities", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.string "name" t.string "identifier" t.string "address" @@ -657,7 +657,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.jsonb "sso_mapping" end - create_table "university_organizations", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "university_organizations", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "name" t.string "long_name" @@ -680,7 +680,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_university_organizations_on_university_id" end - create_table "university_people", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "university_people", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "user_id" t.string "last_name" @@ -716,7 +716,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["user_id"], name: "index_university_people_on_user_id" end - create_table "university_person_experiences", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "university_person_experiences", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "person_id", null: false t.uuid "organization_id", null: false @@ -730,7 +730,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_university_person_experiences_on_university_id" end - create_table "university_person_involvements", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "university_person_involvements", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.uuid "person_id", null: false t.integer "kind" @@ -745,7 +745,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_university_person_involvements_on_university_id" end - create_table "university_roles", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "university_roles", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "target_type" t.uuid "target_id" @@ -757,7 +757,7 @@ ActiveRecord::Schema.define(version: 2022_07_04_164321) do t.index ["university_id"], name: "index_university_roles_on_university_id" end - create_table "users", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| + create_table "users", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t| t.uuid "university_id", null: false t.string "first_name" t.string "last_name" diff --git a/test/fixtures/communication/websites.yml b/test/fixtures/communication/websites.yml index 6b436633f64b74d0481604586bfe3dd4e1ae18c3..78817fa75f2494d30e61980d680f224d40cc6ccb 100644 --- a/test/fixtures/communication/websites.yml +++ b/test/fixtures/communication/websites.yml @@ -25,7 +25,7 @@ # # Foreign Keys # -# fk_rails_94b0abd85b (university_id => universities.id) +# fk_rails_bb6a496c08 (university_id => universities.id) # website_with_github: university: default_university