Create lecture model

This commit is contained in:
2023-09-29 18:14:31 +01:00
parent 86b8846f20
commit a496965d81
4 changed files with 41 additions and 0 deletions
@@ -0,0 +1,12 @@
class CreateLectures < ActiveRecord::Migration[7.0]
def change
create_table :lectures do |t|
t.string :title, null: false
t.datetime :start_time, null: false
t.integer :status, null: false
t.string :recording_id, null: false
t.timestamps
end
end
end