|
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: 2022_09_08_011235) do |
| 13 | +ActiveRecord::Schema.define(version: 2022_10_04_010749) do |
14 | 14 |
|
15 | 15 | # These are extensions that must be enabled in order to support this database |
16 | 16 | enable_extension "pg_stat_statements" |
|
106 | 106 | t.index ["updated_at"], name: "index_issues_on_updated_at", where: "((state)::text = 'open'::text)" |
107 | 107 | end |
108 | 108 |
|
| 109 | + create_table "labels", force: :cascade do |t| |
| 110 | + t.string "name", null: false |
| 111 | + t.datetime "created_at", precision: 6, null: false |
| 112 | + t.datetime "updated_at", precision: 6, null: false |
| 113 | + end |
| 114 | + |
| 115 | + create_table "repo_labels", force: :cascade do |t| |
| 116 | + t.bigint "repo_id", null: false |
| 117 | + t.bigint "label_id", null: false |
| 118 | + t.datetime "created_at", precision: 6, null: false |
| 119 | + t.datetime "updated_at", precision: 6, null: false |
| 120 | + t.index ["label_id"], name: "index_repo_labels_on_label_id" |
| 121 | + t.index ["repo_id", "label_id"], name: "index_repo_labels_on_repo_id_and_label_id", unique: true |
| 122 | + t.index ["repo_id"], name: "index_repo_labels_on_repo_id" |
| 123 | + end |
| 124 | + |
109 | 125 | create_table "repo_subscriptions", id: :serial, force: :cascade do |t| |
110 | 126 | t.datetime "created_at", null: false |
111 | 127 | t.datetime "updated_at", null: false |
|
190 | 206 | t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true |
191 | 207 | end |
192 | 208 |
|
| 209 | + add_foreign_key "repo_labels", "labels" |
| 210 | + add_foreign_key "repo_labels", "repos" |
193 | 211 | add_foreign_key "repo_subscriptions", "repos" |
194 | 212 | add_foreign_key "repo_subscriptions", "users" |
195 | 213 | end |
0 commit comments