class CreateRecordings < ActiveRecord::Migration[7.0] def change create_table :recordings do |t| t.string :title, null: false t.string :start_time, null: false t.string :recording_uuid, null: false t.references :course, null: false, foreign_key: true t.timestamps end add_index :recordings, :recording_uuid, unique: true end end