diff --git a/app/models/education/program.rb b/app/models/education/program.rb index 7273e2603460a9a7e1349c6db0f4f94eb01368b3..cc59358375804cffaa20ccaa90ae175118ae6cfe 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 0000000000000000000000000000000000000000..a9e5e17e2f56f0de9675379371960ba5dc0d185b --- /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 2b2ddeffa2f346b1548affca3c9ceaa5363fa826..93b4344241cf59d2105628f34dbc955d3546a629 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"