mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 16:56:03 +01:00
8 lines
245 B
Ruby
8 lines
245 B
Ruby
|
class RenameColumnsInAnswers < ActiveRecord::Migration
|
||
|
def change
|
||
|
rename_column :answers, :comments, :comment_count
|
||
|
remove_column :answers, :likes
|
||
|
change_column :answers, :comment_count, :integer, default: 0, null: false
|
||
|
end
|
||
|
end
|