Skip to content

Commit 88fd12d

Browse files
committed
dups should have a required title & optional comment
1 parent 58b2ea5 commit 88fd12d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

db/migrate/20260120032240_create_dumps.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
class CreateDumps < ActiveRecord::Migration[7.2]
22
def change
33
create_table :dumps do |t|
4+
t.string :title, null: false
5+
t.string :comment
6+
47
t.timestamps
58
end
69
end

db/schema.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2025_12_21_142105) do
13+
ActiveRecord::Schema[7.2].define(version: 2026_01_20_032240) do
1414
create_table "abilities", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
1515
t.bigint "community_id"
1616
t.string "name"
@@ -267,6 +267,13 @@
267267
t.index ["user_id"], name: "index_complaints_on_user_id"
268268
end
269269

270+
create_table "dumps", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
271+
t.string "title", null: false
272+
t.string "comment"
273+
t.datetime "created_at", null: false
274+
t.datetime "updated_at", null: false
275+
end
276+
270277
create_table "email_logs", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
271278
t.string "log_type"
272279
t.string "destination"

0 commit comments

Comments
 (0)