summaryrefslogtreecommitdiff
path: root/db/migrate/20111104114634_add_polymorphic_to_phone_number.rb
blob: 29400cfd8d0a5bdd3540a3d898f29d4f73787de1 (plain)
1
2
3
4
5
6
7
8
class AddPolymorphicToPhoneNumber < ActiveRecord::Migration
  def change
    add_column :phone_numbers, :phone_numberable_type, :string
    add_column :phone_numbers, :phone_numberable_id, :integer

    remove_column :phone_numbers, :phone_book_entry_id
  end
end