Files
grecia/db/migrate/20150811161459_add_children_count_to_comments.rb
2015-08-12 14:59:54 +02:00

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