Add lecture kinds

This commit is contained in:
2023-10-02 16:37:52 +01:00
parent 9a5116f29e
commit fe15365524
4 changed files with 18 additions and 3 deletions
@@ -0,0 +1,5 @@
class AddLectureKind < ActiveRecord::Migration[7.0]
def change
add_column :lectures, :kind, :integer, default: 0
end
end
Generated
+2 -1
View File
@@ -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_10_02_150348) do
ActiveRecord::Schema[7.0].define(version: 2023_10_02_152546) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -42,6 +42,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_02_150348) do
t.bigint "course_id"
t.string "event_uuid"
t.boolean "cancelled", default: false
t.integer "kind", default: 0
t.index ["course_id"], name: "index_lectures_on_course_id"
end