class CreateTrainingVideos < ActiveRecord::Migration[6.0]
  def change
    create_table :training_videos do |t|
      t.references :category, null: false, foreign_key: { to_table: :training_categories }

      t.string :name, limit: 128, null: false
      t.text :description
      t.string :url, null: false

      t.timestamps
    end
  end
end
