adds ancestry column to comments

This commit is contained in:
Juanjo Bazán
2015-09-02 17:24:14 +02:00
committed by Juanjo Bazán
parent eb689d7c7e
commit e0c67d8404
2 changed files with 13 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
class AddAncestryToComments < ActiveRecord::Migration
def change
add_column :comments, :ancestry, :string
add_index :comments, :ancestry
end
end