diff --git a/app/javascript/controllers/hello_controller.js b/app/javascript/controllers/hello_controller.js deleted file mode 100644 index 5975c07..0000000 --- a/app/javascript/controllers/hello_controller.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Controller } from "@hotwired/stimulus" - -export default class extends Controller { - connect() { - this.element.textContent = "Hello World!" - } -} diff --git a/app/models/letter.rb b/app/models/letter.rb index 3c0dd58..b1aa27f 100644 --- a/app/models/letter.rb +++ b/app/models/letter.rb @@ -1,4 +1,3 @@ class Letter < ApplicationRecord - has_one_attached :document has_many :signatories end diff --git a/db/migrate/20240608185124_create_letters.rb b/db/migrate/20240608185124_create_letters.rb deleted file mode 100644 index b09c928..0000000 --- a/db/migrate/20240608185124_create_letters.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateLetters < ActiveRecord::Migration[7.1] - def change - create_table :letters do |t| - t.string :title - t.string :author - t.string :email - t.boolean :private_email - - t.timestamps - end - end -end diff --git a/db/migrate/20240608191006_create_signatories.rb b/db/migrate/20240608191006_create_signatories.rb deleted file mode 100644 index e773786..0000000 --- a/db/migrate/20240608191006_create_signatories.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateSignatories < ActiveRecord::Migration[7.1] - def change - create_table :signatories do |t| - t.string :name - t.string :profession - t.string :email - t.boolean :private_email - - t.timestamps - end - end -end diff --git a/db/schema.rb b/db/schema.rb index e6427a1..e3f50ea 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_06_08_194425) do +ActiveRecord::Schema[7.1].define(version: 2024_06_16_175655) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -41,18 +41,16 @@ ActiveRecord::Schema[7.1].define(version: 2024_06_08_194425) do create_table "letters", force: :cascade do |t| t.string "title" - t.string "author" - t.string "email" - t.boolean "private_email" + t.string "documentid" t.datetime "created_at", null: false t.datetime "updated_at", null: false end create_table "signatories", force: :cascade do |t| t.string "name" - t.string "profession" t.string "email" t.boolean "private_email" + t.string "profession" t.datetime "created_at", null: false t.datetime "updated_at", null: false end diff --git a/test/fixtures/letters.yml b/test/fixtures/letters.yml index 64d88ef..7e9e93f 100644 --- a/test/fixtures/letters.yml +++ b/test/fixtures/letters.yml @@ -2,6 +2,8 @@ one: title: MyString + documentid: MyString two: title: MyString + documentid: MyString diff --git a/test/fixtures/signatories.yml b/test/fixtures/signatories.yml index fde8d5a..f85db41 100644 --- a/test/fixtures/signatories.yml +++ b/test/fixtures/signatories.yml @@ -2,10 +2,12 @@ one: name: MyString - profession: MyString email: MyString + private_email: false + profession: MyString two: name: MyString - profession: MyString email: MyString + private_email: false + profession: MyString