From ad40ec681a936903fef4d822743d729b72b944be Mon Sep 17 00:00:00 2001 From: Zee Spencer <50284+zspencer@users.noreply.github.com> Date: Sun, 28 Jan 2024 19:24:56 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20`Journal`:=20`Entry#summary`=20f?= =?UTF-8?q?its=20better=20than=20`Entry#description`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - https://github.com/zinc-collective/convene-journal/pull/8 - https://github.com/zinc-collective/convene-journal/issues/10 When I started on this, I started with [changes to the data layer], because that's where my brain tends to naturally start. But when I wrote the [system test], I realized it was more of an [`Entries#summary`]. So I am renaming from `Entries#description` to `Entries#summary`. Thank you for coming to my TED Talk. [`Entries#summary`]: https://github.com/zinc-collective/convene-journal/pull/9 [system test]: https://github.com/zinc-collective/convene-journal/pull/9 [changes to the data layer]: https://github.com/zinc-collective/convene-journal/pull/8 --- db/migrate/20240129014151_journal_add_description_to_entry.rb | 2 +- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20240129014151_journal_add_description_to_entry.rb b/db/migrate/20240129014151_journal_add_description_to_entry.rb index a22df9498..03ef6878c 100644 --- a/db/migrate/20240129014151_journal_add_description_to_entry.rb +++ b/db/migrate/20240129014151_journal_add_description_to_entry.rb @@ -1,5 +1,5 @@ class JournalAddDescriptionToEntry < ActiveRecord::Migration[7.1] def change - add_column :journal_entries, :description, :text + add_column :journal_entries, :summary, :text end end diff --git a/db/schema.rb b/db/schema.rb index 8b17c6771..ea83afecc 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -116,7 +116,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "keywords", array: true - t.text "description" + t.text "summary" t.index ["journal_id"], name: "index_journal_entries_on_journal_id" end