mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:09:52 +01:00
9 lines
281 B
Ruby
9 lines
281 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RenameColumnsInAnswers < ActiveRecord::Migration[4.2]
|
|
def change
|
|
rename_column :answers, :comments, :comment_count
|
|
remove_column :answers, :likes
|
|
change_column :answers, :comment_count, :integer, default: 0, null: false
|
|
end
|
|
end
|