1 2 3 4 5 6 7 8 9
class ChangeNoteableIdForNote < ActiveRecord::Migration def up change_column :notes, :noteable_id, :string end def down change_column :notes, :noteable_id, :integer end end