|
@@ -10,7 +10,33 @@
|
|
|
#
|
|
|
# It's strongly recommended that you check this file into your version control system.
|
|
|
|
|
|
-ActiveRecord::Schema.define(version: 20171222122058) do
|
|
|
+ActiveRecord::Schema.define(version: 20171222171109) do
|
|
|
+
|
|
|
+ create_table "conversation_participations", force: :cascade do |t|
|
|
|
+ t.integer "user_id"
|
|
|
+ t.integer "conversation_id"
|
|
|
+ t.datetime "viewed_at"
|
|
|
+ t.datetime "created_at", null: false
|
|
|
+ t.datetime "updated_at", null: false
|
|
|
+ t.index ["user_id", "conversation_id"], name: "index_participation_user_conversation", unique: true
|
|
|
+ end
|
|
|
+
|
|
|
+ create_table "conversations", force: :cascade do |t|
|
|
|
+ t.string "name"
|
|
|
+ t.datetime "created_at", null: false
|
|
|
+ t.datetime "updated_at", null: false
|
|
|
+ end
|
|
|
+
|
|
|
+ create_table "messages", force: :cascade do |t|
|
|
|
+ t.integer "user_id"
|
|
|
+ t.integer "conversation_id"
|
|
|
+ t.text "content"
|
|
|
+ t.datetime "created_at", null: false
|
|
|
+ t.datetime "updated_at", null: false
|
|
|
+ t.index ["conversation_id", "created_at"], name: "index_messages_on_conversation_id_and_created_at"
|
|
|
+ t.index ["conversation_id"], name: "index_messages_on_conversation_id"
|
|
|
+ t.index ["user_id"], name: "index_messages_on_user_id"
|
|
|
+ end
|
|
|
|
|
|
create_table "users", force: :cascade do |t|
|
|
|
t.string "name"
|