|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[7.0].define(version: 2026_02_02_160000) do |
| 13 | +ActiveRecord::Schema[7.0].define(version: 2026_02_02_163145) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
15 | 15 | enable_extension "pg_stat_statements" |
16 | 16 | enable_extension "plpgsql" |
17 | 17 |
|
18 | | - create_table "data_dumps", id: :serial, force: :cascade do |t| |
| 18 | + create_table "data_dumps", force: :cascade do |t| |
19 | 19 | t.text "data" |
20 | 20 | t.datetime "created_at", precision: nil |
21 | 21 | t.datetime "updated_at", precision: nil |
22 | 22 | end |
23 | 23 |
|
24 | | - create_table "doc_assignments", id: :serial, force: :cascade do |t| |
25 | | - t.integer "repo_id" |
26 | | - t.integer "repo_subscription_id" |
27 | | - t.integer "doc_method_id" |
28 | | - t.integer "doc_class_id" |
| 24 | + create_table "doc_assignments", force: :cascade do |t| |
| 25 | + t.bigint "repo_id" |
| 26 | + t.bigint "repo_subscription_id" |
| 27 | + t.bigint "doc_method_id" |
| 28 | + t.bigint "doc_class_id" |
29 | 29 | t.datetime "created_at", precision: nil |
30 | 30 | t.datetime "updated_at", precision: nil |
31 | 31 | t.boolean "clicked", default: false |
32 | 32 | t.index ["repo_id"], name: "index_doc_assignments_on_repo_id" |
33 | 33 | t.index ["repo_subscription_id", "doc_method_id"], name: "index_doc_assignments_on_repo_subscription_id_and_doc_method_id" |
34 | 34 | end |
35 | 35 |
|
36 | | - create_table "doc_classes", id: :serial, force: :cascade do |t| |
37 | | - t.integer "repo_id" |
| 36 | + create_table "doc_classes", force: :cascade do |t| |
| 37 | + t.bigint "repo_id" |
38 | 38 | t.string "name" |
39 | 39 | t.datetime "created_at", precision: nil, null: false |
40 | 40 | t.datetime "updated_at", precision: nil, null: false |
|
45 | 45 | t.index ["repo_id", "doc_comments_count"], name: "index_doc_classes_on_repo_id_and_doc_comments_count" |
46 | 46 | end |
47 | 47 |
|
48 | | - create_table "doc_comments", id: :serial, force: :cascade do |t| |
49 | | - t.integer "doc_class_id" |
50 | | - t.integer "doc_method_id" |
| 48 | + create_table "doc_comments", force: :cascade do |t| |
| 49 | + t.bigint "doc_class_id" |
| 50 | + t.bigint "doc_method_id" |
51 | 51 | t.text "comment" |
52 | 52 | t.datetime "created_at", precision: nil |
53 | 53 | t.datetime "updated_at", precision: nil |
54 | 54 | t.index ["doc_class_id"], name: "index_doc_comments_on_doc_class_id" |
55 | 55 | t.index ["doc_method_id"], name: "index_doc_comments_on_doc_method_id" |
56 | 56 | end |
57 | 57 |
|
58 | | - create_table "doc_methods", id: :serial, force: :cascade do |t| |
59 | | - t.integer "repo_id" |
| 58 | + create_table "doc_methods", force: :cascade do |t| |
| 59 | + t.bigint "repo_id" |
60 | 60 | t.string "name" |
61 | 61 | t.integer "line" |
62 | 62 | t.datetime "created_at", precision: nil, null: false |
|
78 | 78 | t.bigint "issue_id" |
79 | 79 | t.datetime "created_at", precision: nil, null: false |
80 | 80 | t.datetime "updated_at", precision: nil, null: false |
81 | | - t.integer "repo_subscription_id" |
| 81 | + t.bigint "repo_subscription_id" |
82 | 82 | t.boolean "clicked", default: false |
83 | 83 | t.boolean "delivered", default: false |
84 | 84 | t.index ["repo_subscription_id", "delivered"], name: "index_issue_assignments_on_repo_subscription_id_and_delivered" |
|
93 | 93 | t.integer "number" |
94 | 94 | t.datetime "created_at", precision: nil, null: false |
95 | 95 | t.datetime "updated_at", precision: nil, null: false |
96 | | - t.integer "repo_id" |
| 96 | + t.bigint "repo_id" |
97 | 97 | t.text "title" |
98 | 98 | t.string "html_url" |
99 | 99 | t.string "state" |
|
121 | 121 | t.index ["repo_id"], name: "index_repo_labels_on_repo_id" |
122 | 122 | end |
123 | 123 |
|
124 | | - create_table "repo_subscriptions", id: :serial, force: :cascade do |t| |
| 124 | + create_table "repo_subscriptions", force: :cascade do |t| |
125 | 125 | t.datetime "created_at", precision: nil, null: false |
126 | 126 | t.datetime "updated_at", precision: nil, null: false |
127 | | - t.integer "user_id" |
128 | | - t.integer "repo_id" |
| 127 | + t.bigint "user_id" |
| 128 | + t.bigint "repo_id" |
129 | 129 | t.datetime "last_sent_at", precision: nil |
130 | 130 | t.integer "email_limit", default: 1 |
131 | 131 | t.boolean "write", default: false |
|
139 | 139 | t.index ["write"], name: "index_repo_subscriptions_on_write" |
140 | 140 | end |
141 | 141 |
|
142 | | - create_table "repos", id: :serial, force: :cascade do |t| |
| 142 | + create_table "repos", force: :cascade do |t| |
143 | 143 | t.string "name" |
144 | 144 | t.string "user_name" |
145 | 145 | t.integer "issues_count", default: 0, null: false |
|
165 | 165 | t.index ["user_name"], name: "index_repos_on_user_name" |
166 | 166 | end |
167 | 167 |
|
168 | | - create_table "users", id: :serial, force: :cascade do |t| |
| 168 | + create_table "users", force: :cascade do |t| |
169 | 169 | t.string "email", default: "", null: false |
170 | 170 | t.string "encrypted_password", default: "", null: false |
171 | 171 | t.string "reset_password_token" |
|
0 commit comments