socialforge/db/migrate/20160720094503_add_column_t...

8 lines
234 B
Ruby

class AddColumnToJournal < ActiveRecord::Migration
def change
add_column :journals, :parent_id, :integer
add_column :journals, :comments_count, :integer, :default => 0
add_column :journals, :reply_id, :integer
end
end