diff --git a/db/migrate/20240204130739_add_archived_to_course.rb b/db/migrate/20240204130739_add_archived_to_course.rb new file mode 100644 index 0000000..11e95be --- /dev/null +++ b/db/migrate/20240204130739_add_archived_to_course.rb @@ -0,0 +1,5 @@ +class AddArchivedToCourse < ActiveRecord::Migration[7.1] + def change + add_column :courses, :archived, :boolean, default: false, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 09cac86..3eef21f 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.1].define(version: 2023_10_08_153855) do +ActiveRecord::Schema[7.1].define(version: 2024_02_04_130739) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -23,6 +23,7 @@ ActiveRecord::Schema[7.1].define(version: 2023_10_08_153855) do t.datetime "updated_at", null: false t.date "semester_start_date", default: "2023-10-02" t.string "homepage" + t.boolean "archived", default: false, null: false end create_table "lectures", force: :cascade do |t|