2020-04-19 09:10:31 -07:00
|
|
|
class RenameColumnsInAnswers < ActiveRecord::Migration[4.2]
|
2014-11-30 10:43:22 -08:00
|
|
|
def change
|
|
|
|
rename_column :answers, :comments, :comment_count
|
|
|
|
remove_column :answers, :likes
|
|
|
|
change_column :answers, :comment_count, :integer, default: 0, null: false
|
|
|
|
end
|
|
|
|
end
|