|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema.define(version: 2020_12_30_115654) do |
| 13 | +ActiveRecord::Schema.define(version: 2020_12_31_171047) do |
14 | 14 |
|
15 | 15 | # These are extensions that must be enabled in order to support this database |
16 | 16 | enable_extension "plpgsql" |
|
71 | 71 | t.index ["user_id"], name: "index_likes_on_user_id" |
72 | 72 | end |
73 | 73 |
|
| 74 | + create_table "notifications", force: :cascade do |t| |
| 75 | + t.bigint "user_id", null: false |
| 76 | + t.string "notifiable_type", null: false |
| 77 | + t.bigint "notifiable_id", null: false |
| 78 | + t.boolean "read", default: false, null: false |
| 79 | + t.datetime "created_at", precision: 6, null: false |
| 80 | + t.datetime "updated_at", precision: 6, null: false |
| 81 | + t.index ["notifiable_type", "notifiable_id"], name: "index_notifications_on_notifiable_type_and_notifiable_id" |
| 82 | + t.index ["user_id"], name: "index_notifications_on_user_id" |
| 83 | + end |
| 84 | + |
74 | 85 | create_table "snippet_folders", force: :cascade do |t| |
75 | 86 | t.bigint "snippet_id", null: false |
76 | 87 | t.bigint "folder_id", null: false |
|
118 | 129 | add_foreign_key "comments", "users" |
119 | 130 | add_foreign_key "likes", "snippets" |
120 | 131 | add_foreign_key "likes", "users" |
| 132 | + add_foreign_key "notifications", "users" |
121 | 133 | add_foreign_key "snippet_folders", "folders" |
122 | 134 | add_foreign_key "snippet_folders", "snippets" |
123 | 135 | end |
0 commit comments