From 9af79aa64962fc1c66402c6c66e3d8cf7049293d Mon Sep 17 00:00:00 2001 From: pabois <pierreandre.boissinot@noesya.coop> Date: Fri, 12 Nov 2021 16:35:11 +0100 Subject: [PATCH] wip programs --- app/models/education/program.rb | 9 --------- ...12153208_remove_texts_from_education_programs.rb | 13 +++++++++++++ db/schema.rb | 11 +---------- 3 files changed, 14 insertions(+), 19 deletions(-) create mode 100644 db/migrate/20211112153208_remove_texts_from_education_programs.rb diff --git a/app/models/education/program.rb b/app/models/education/program.rb index 7273e2603..cc5935837 100644 --- a/app/models/education/program.rb +++ b/app/models/education/program.rb @@ -3,20 +3,11 @@ # Table name: education_programs # # id :uuid not null, primary key -# accessibility :text # capacity :integer -# contacts :text # continuing :boolean -# duration :text # ects :integer -# evaluation :text # level :integer # name :string -# objectives :text -# pedagogy :text -# prerequisites :text -# pricing :text -# registration :text # created_at :datetime not null # updated_at :datetime not null # university_id :uuid not null diff --git a/db/migrate/20211112153208_remove_texts_from_education_programs.rb b/db/migrate/20211112153208_remove_texts_from_education_programs.rb new file mode 100644 index 000000000..a9e5e17e2 --- /dev/null +++ b/db/migrate/20211112153208_remove_texts_from_education_programs.rb @@ -0,0 +1,13 @@ +class RemoveTextsFromEducationPrograms < ActiveRecord::Migration[6.1] + def change + remove_column :education_programs, :accessibility + remove_column :education_programs, :contacts + remove_column :education_programs, :duration + remove_column :education_programs, :evaluation + remove_column :education_programs, :objectives + remove_column :education_programs, :pedagogy + remove_column :education_programs, :prerequisites + remove_column :education_programs, :pricing + remove_column :education_programs, :registration + end +end diff --git a/db/schema.rb b/db/schema.rb index 2b2ddeffa..93b434424 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.define(version: 2021_11_09_093030) do +ActiveRecord::Schema.define(version: 2021_11_12_153208) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" @@ -333,15 +333,6 @@ ActiveRecord::Schema.define(version: 2021_11_09_093030) do t.integer "capacity" t.integer "ects" t.boolean "continuing" - t.text "prerequisites" - t.text "objectives" - t.text "duration" - t.text "registration" - t.text "pedagogy" - t.text "evaluation" - t.text "accessibility" - t.text "pricing" - t.text "contacts" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false t.index ["university_id"], name: "index_education_programs_on_university_id" -- GitLab