Schemafile in Xwitter-0.3.0.1 vs Schemafile in Xwitter-0.4.0

- old
+ new

@@ -30,9 +30,18 @@ t.datetime "created_at", null: false t.index ["user_id"] end add_foreign_key "messages", "users" +create_table "user_subscribe_topics", force: :cascade do |t| + t.bigint "user_id", null: false + t.string "topic", null: false + t.index ["user_id", "topic"], unique: true + t.index ["topic"] + t.datetime "created_at", null: false +end +add_foreign_key "user_subscribe_topics", "users" + create_table "message_topics", force: :cascade, id: false do |t| t.string "topic", null: false t.bigint "message_id", null: false t.index ["topic", "message_id"], unique: true t.index ["message_id"]