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

10 lines
225 B
Ruby
Raw Permalink Normal View History

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