class AddDurationToVideo < ActiveRecord::Migration[5.2] def change add_column :videos, :duration, :float, default: 0 end end