1 2 3 4 5
class AddSpoilerTextToStatuses < ActiveRecord::Migration[5.0] def change add_column :statuses, :spoiler_text, :text, default: "", null: false end end