Skip to content

Commit 059503d

Browse files
thomasleesestevehook
authored andcommitted
Remove performed_at column
This column is no longer being used so it can be safely removed. Jira-Issue: MAV-3158
1 parent 01cc917 commit 059503d

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

app/models/vaccination_record.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@
7575
# fk_rails_... (vaccine_id => vaccines.id)
7676
#
7777
class VaccinationRecord < ApplicationRecord
78-
self.ignored_columns = %w[performed_at]
79-
8078
include BelongsToProgramme
8179
include Confirmable
8280
include Discard::Model
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
class RemovePerformedAtFromVaccinationRecords < ActiveRecord::Migration[8.1]
4+
def change
5+
remove_column :vaccination_records, :performed_at, :datetime
6+
end
7+
end

db/schema.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,6 @@
945945
t.integer "outcome", null: false
946946
t.bigint "patient_id", null: false
947947
t.jsonb "pending_changes", default: {}, null: false
948-
t.datetime "performed_at"
949948
t.date "performed_at_date", null: false
950949
t.time "performed_at_time"
951950
t.string "performed_by_family_name"

0 commit comments

Comments
 (0)