ActiveRecord Migrations

Flashcard 5 of 6

What simplification could you make to the following migration?

class AddAddressToUsers < ActiveRecord::Migration
  def up
    add_column :users, :address, :string
  end

  def down
    remove_column :users, :address
  end
end

Answer:

Reveal Answer