Skip to content

Commit 9a617e3

Browse files
committed
4977_added_minor_fix_to_delete_item_category
1 parent 550e1e5 commit 9a617e3

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

app/views/items/_item_categories.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<td class="text-right">
3131
<%= view_button_to item_category_path(item_category) %>
3232
<%= edit_button_to edit_item_category_path(item_category.id) %>
33-
<%= delete_button_to(item_category_path(item_category.id), { confirm: confirm_delete_msg(item_category.name) }) if (item_category.items.count <= 1) %>
33+
<%= delete_button_to(item_category_path(item_category.id), { confirm: confirm_delete_msg(item_category.name) }) if (item_category.items.count <= 0) %>
3434
</td>
3535
</tr>
3636
<% end %>

db/schema.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,21 @@
231231
t.index ["user_id"], name: "index_deprecated_feedback_messages_on_user_id"
232232
end
233233

234+
create_table "diaper_drive_participants", id: :serial, force: :cascade do |t|
235+
t.string "contact_name"
236+
t.string "email"
237+
t.string "phone"
238+
t.string "comment"
239+
t.integer "organization_id"
240+
t.datetime "created_at", precision: nil, null: false
241+
t.datetime "updated_at", precision: nil, null: false
242+
t.string "address"
243+
t.string "business_name"
244+
t.float "latitude"
245+
t.float "longitude"
246+
t.index ["latitude", "longitude"], name: "index_diaper_drive_participants_on_latitude_and_longitude"
247+
end
248+
234249
create_table "distributions", id: :serial, force: :cascade do |t|
235250
t.text "comment"
236251
t.datetime "created_at", precision: nil, null: false
@@ -326,6 +341,16 @@
326341
t.index ["partner_id"], name: "index_families_on_partner_id"
327342
end
328343

344+
create_table "feedback_messages", force: :cascade do |t|
345+
t.bigint "user_id"
346+
t.string "message"
347+
t.string "path"
348+
t.datetime "created_at", precision: nil, null: false
349+
t.datetime "updated_at", precision: nil, null: false
350+
t.boolean "resolved"
351+
t.index ["user_id"], name: "index_feedback_messages_on_user_id"
352+
end
353+
329354
create_table "flipper_features", force: :cascade do |t|
330355
t.string "key", null: false
331356
t.datetime "created_at", precision: nil, null: false

0 commit comments

Comments
 (0)