2012-01-11 18:10:23 +00:00
|
|
|
class ChangeCommentableId < ActiveRecord::Migration
|
|
|
|
def self.up
|
2014-08-20 21:49:26 +01:00
|
|
|
change_column :comments, :commentable_id, :string, references: nil
|
2012-01-11 18:10:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
change_column :comments, :commentable_id, :integer
|
|
|
|
end
|
|
|
|
end
|