diff --git a/app/views/employers/index.html.erb b/app/views/employers/index.html.erb
index 35ee8a0..ecb01d0 100644
--- a/app/views/employers/index.html.erb
+++ b/app/views/employers/index.html.erb
@@ -10,10 +10,7 @@
Address |
Phone |
Email |
-
DOB |
-
-
Actions |
@@ -24,10 +21,7 @@
<%= employer.address %> |
<%= employer.phone %> |
<%= employer.email %> |
-
- <%= employer.dob %> |
-
-
+ <%= employer.dob.strftime('%B %d, %Y') if employer.dob %> |
<%= link_to 'Show', employer, class: 'btn btn-sm btn-info' %>
<%= link_to 'Edit', edit_employer_path(employer), class: 'btn btn-sm btn-warning' %>
diff --git a/app/views/participants/index.html.erb b/app/views/participants/index.html.erb
index edc7567..a70cd1a 100644
--- a/app/views/participants/index.html.erb
+++ b/app/views/participants/index.html.erb
@@ -12,8 +12,6 @@
| Program |
MCI |
DOB |
- SSN |
- Gender |
|
@@ -27,9 +25,8 @@
<%= participant.email %> |
<%= participant.programs.map(&:name).join(", ") %> |
<%= participant.mci %> |
- <%= participant.dob.strftime('%B, %d, %Y') if participant.dob %> |
- <%= participant.ssn %> |
- <%= participant.gender %> |
+ <%= participant.dob.strftime('%B %d, %Y') if participant.dob %> |
+
<%= link_to participant, class: 'btn btn-sm btn-info' do %>
diff --git a/app/views/workers/index.html.erb b/app/views/workers/index.html.erb
index 3359b6d..55a7c90 100644
--- a/app/views/workers/index.html.erb
+++ b/app/views/workers/index.html.erb
@@ -9,8 +9,6 @@
| Phone |
Email |
DOB |
- SSN |
- Gender |
Actions |
@@ -21,13 +19,10 @@
<%= worker.address %> |
<%= worker.phone %> |
<%= worker.email %> |
- <%= worker.dob %> |
- <%= worker.ssn %> |
- <%= worker.gender %> |
+ <%= worker.dob.strftime('%B %d, %Y') if worker.dob %> |
- <%= link_to 'Show', worker_path(worker), class: 'btn btn-sm btn-info' %> |
- <%= link_to 'Edit', edit_worker_path(worker), class: 'btn btn-sm btn-primary' %> |
- <%= link_to 'Destroy', worker_path(worker), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger' %>
+ <%= link_to 'Show', worker_path(worker), class: 'btn btn-sm btn-info' %>
+ <%= link_to 'Edit', edit_worker_path(worker), class: 'btn btn-sm btn-primary' %>
|
<% end %>
diff --git a/db/migrate/20240122040719_add_contact_to_vendors.rb b/db/migrate/20240122040719_add_contact_to_vendors.rb
new file mode 100644
index 0000000..28ee288
--- /dev/null
+++ b/db/migrate/20240122040719_add_contact_to_vendors.rb
@@ -0,0 +1,5 @@
+class AddContactToVendors < ActiveRecord::Migration[7.1]
+ def change
+ add_column :vendors, :contact, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 3f4caa4..0b57394 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_01_20_060936) do
+ActiveRecord::Schema[7.1].define(version: 2024_01_22_040719) do
create_table "employers", force: :cascade do |t|
t.string "name"
t.string "address"
@@ -85,6 +85,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_01_20_060936) do
t.string "contact_name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.string "contact"
end
create_table "workers", force: :cascade do |t|