`add_column :repos, :task_name, String, null: true` at the top level would do the same thing, and be one line rather than three.