mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
10 lines
370 B
Ruby
10 lines
370 B
Ruby
class AddTimestampsToSurveyItemResponses < ActiveRecord::Migration[6.1]
|
|
def change
|
|
now = Time.zone.now
|
|
change_table :survey_item_responses do |t|
|
|
t.timestamps default: now
|
|
end
|
|
change_column_default :survey_item_responses, :created_at, from: now, to: nil
|
|
change_column_default :survey_item_responses, :updated_at, from: now, to: nil
|
|
end
|
|
end
|