Skip to content

Commit

Permalink
🧹 Journal: Entry#summary fits better than Entry#description
Browse files Browse the repository at this point in the history
- zinc-collective#8
- zinc-collective#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`]: zinc-collective#9
[system test]: zinc-collective#9
[changes to the data layer]: zinc-collective#8
  • Loading branch information
zspencer committed Jan 29, 2024
1 parent a163c0b commit ad40ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ad40ec6

Please sign in to comment.