|
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: 2021_09_15_030031) do |
| 13 | +ActiveRecord::Schema.define(version: 2021_10_07_234707) do |
14 | 14 |
|
15 | 15 | create_table "active_storage_attachments", force: :cascade do |t| |
16 | 16 | t.string "name", null: false |
|
165 | 165 | t.datetime "created_at" |
166 | 166 | t.datetime "updated_at" |
167 | 167 | t.datetime "deleted_at" |
| 168 | + t.integer "word_count_cache" |
168 | 169 | t.index ["attribute_field_id", "deleted_at", "entity_id", "entity_type"], name: "attributes_afi_deleted_at_entity_id_entity_type" |
169 | 170 | t.index ["attribute_field_id", "deleted_at"], name: "index_attributes_on_attribute_field_id_and_deleted_at" |
170 | 171 | t.index ["attribute_field_id", "user_id", "entity_type", "entity_id", "deleted_at"], name: "attributes_afi_ui_et_ei_da" |
|
3636 | 3637 | t.integer "habitat_id" |
3637 | 3638 | end |
3638 | 3639 |
|
| 3640 | + create_table "word_count_updates", force: :cascade do |t| |
| 3641 | + t.integer "user_id", null: false |
| 3642 | + t.string "entity_type", null: false |
| 3643 | + t.integer "entity_id", null: false |
| 3644 | + t.integer "word_count" |
| 3645 | + t.date "for_date" |
| 3646 | + t.datetime "created_at", precision: 6, null: false |
| 3647 | + t.datetime "updated_at", precision: 6, null: false |
| 3648 | + t.index ["entity_type", "entity_id"], name: "index_word_count_updates_on_entity_type_and_entity_id" |
| 3649 | + t.index ["user_id"], name: "index_word_count_updates_on_user_id" |
| 3650 | + end |
| 3651 | + |
3639 | 3652 | add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" |
3640 | 3653 | add_foreign_key "api_keys", "users" |
3641 | 3654 | add_foreign_key "api_requests", "application_integrations" |
|
4047 | 4060 | add_foreign_key "vehicles", "users" |
4048 | 4061 | add_foreign_key "votes", "users" |
4049 | 4062 | add_foreign_key "votes", "votables" |
| 4063 | + add_foreign_key "word_count_updates", "users" |
4050 | 4064 | end |
0 commit comments