Add description as comment on topic.

This commit is contained in:
taitus
2017-08-07 15:48:43 +02:00
parent d8b4323555
commit bc95b6f28d
5 changed files with 17 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ class CreateTopics < ActiveRecord::Migration
def change
create_table :topics do |t|
t.string :title, null: false
t.text :description_as_comment
t.integer :author_id
t.integer "comments_count", default: 0
t.references :community, index: true