2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-01-11 18:10:23 +00:00
|
|
|
class ChangeCommentableId < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
change_column :comments, :commentable_id, :string
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
change_column :comments, :commentable_id, :integer
|
|
|
|
end
|
|
|
|
end
|