rosa-build/db/migrate/20120111080234_change_comme...

10 lines
225 B
Ruby

class ChangeCommentableId < ActiveRecord::Migration
def self.up
change_column :comments, :commentable_id, :string, references: nil
end
def self.down
change_column :comments, :commentable_id, :integer
end
end