Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e5df9dcd8a
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.353 kb
class ChangePhoneNumbersToRelateToPolymorphicContacts < ActiveRecord::Migration
def self.up
PhoneNumber.destroy_all
remove_column :phone_numbers, :person_id
add_column :phone_numbers, :contact_id, :integer
add_column :phone_numbers, :contact_type, :string
end
def self.down
raise ActiveRecord::IrreversibleMigration
end
end
Jump to Line
Something went wrong with that request. Please try again.