aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migrations/missing/1000_people_have_middle_names.rb
blob: d3c9b127fb4fdb06e216e31277a94459a1227676 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class PeopleHaveMiddleNames < ActiveRecord::Migration::Current
  def self.up
    add_column "people", "middle_name", :string
  end

  def self.down
    remove_column "people", "middle_name"
  end
end