10 lines
208 B
Ruby
10 lines
208 B
Ruby
|
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
|