10 lines
205 B
Ruby
10 lines
205 B
Ruby
class AddChildrenCountToComments < ActiveRecord::Migration
|
|
def up
|
|
add_column :comments, :children_count, :integer, default: 0
|
|
end
|
|
|
|
def down
|
|
remove_column :comments, :children_count
|
|
end
|
|
end
|