You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
370 B
11 lines
370 B
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
|