Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/controllers/dumps_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class DumpsController < ApplicationController
end
2 changes: 2 additions & 0 deletions app/helpers/dumps_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module DumpsHelper
end
3 changes: 3 additions & 0 deletions app/models/dump.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Dump < ApplicationRecord
has_one_attached :file
end
Empty file added app/views/dumps/index.htrml.erb
Empty file.
10 changes: 10 additions & 0 deletions db/migrate/20260120032240_create_dumps.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class CreateDumps < ActiveRecord::Migration[7.2]
def change
create_table :dumps do |t|
t.string :title, null: false
t.string :comment

t.timestamps
end
end
end
9 changes: 8 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

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

create_table "dumps", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
t.string "title", null: false
t.string "comment"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "email_logs", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t|
t.string "log_type"
t.string "destination"
Expand Down
7 changes: 7 additions & 0 deletions test/controllers/dumps_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class DumpsControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end
8 changes: 8 additions & 0 deletions test/fixtures/dumps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html

without_comment:
title: Data dump without a comment

with_comment:
title: Data dump with comment
comment: we decided to include a helpful comment this time
7 changes: 7 additions & 0 deletions test/models/dump_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class DumpTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end